Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Android support library 23.2.1 #4903

Closed
samueltardieu opened this issue Apr 22, 2015 · 15 comments
Closed

Switch to Android support library 23.2.1 #4903

samueltardieu opened this issue Apr 22, 2015 · 15 comments
Labels
Feature Request A request for a new feature/function

Comments

@samueltardieu
Copy link
Member

http://android-developers.blogspot.com/2015/04/android-support-library-221.html

@samueltardieu samueltardieu added the Feature Request A request for a new feature/function label Apr 22, 2015
@Bananeweizen
Copy link
Member

Is #4860 solved by that?

@samueltardieu
Copy link
Member Author

I haven't tested.

@Bananeweizen
Copy link
Member

I don't get that to work. Overriding the compat project is fine, when setting the compile level to 21, but afterwards I have 2 theme errors in our theme definition and there I'm just lost.

@rsudev
Copy link
Contributor

rsudev commented Apr 24, 2015

I think I was able to locate the adequate replacements for the missing themes and also for three missing drawables.
But after that I get a crash in CGeoMap, as seemingly no ActionBar is present anymor in the map activities (MapsForge and Google).
I did some fiddling with requesting window features but to no avail. Of course is it possible to switch back to the old action bar in the map for all versions, but that looks really ugly...
I will continue my research tomorrow.

@Bananeweizen
Copy link
Member

That is with the current maps implementation, right? I thought that it might be the best strategy to first focus on your new mapsforge map, a new Google map and only afterwards to switch the support library.

@rsudev
Copy link
Contributor

rsudev commented Apr 25, 2015

I think switching to a new map implementation is a while down the road still, so it might nevertheless be worthwhile to dig a little deeper here. I assume that there is just some fiddling with themes/styles necessary to make this work.
That said is of course the other question what we gain from switching (besides perhaps looking more 'material').

@rsudev
Copy link
Contributor

rsudev commented Apr 25, 2015

I tried back and forth with layouts and window features to no avail.
My current state of things is available under https://github.com/rsudev/c-geo-opensource/tree/issue-4903 for other to continue if so wished, I'll lay it aside for the moment.

@kumy
Copy link
Member

kumy commented Mar 29, 2016

new version v23.2.1 is available. I tried an upgrade this week end and failed at the same point as @rsudev on 24 Apr 2015.
(Just found this issue today :))

@kumy kumy changed the title Switch to Android support library 22.1 Switch to Android support library 23.2.1 Mar 29, 2016
@Lineflyer
Copy link
Member

@kumy Aren't we now on a newer version already?

@kumy
Copy link
Member

kumy commented Aug 31, 2016

@Lineflyer I don't think we've upgraded the dependency and mostly the code. We're still using com.android.support:appcompat-v7:20.0.0

@bekuno
Copy link
Member

bekuno commented Jan 5, 2020

@kumy @rsudev
In the meantime we use androidx.appcompat:appcompat:1.1.0 .
So can we close this issue or should it be renamed to "Migrate to AppCompat" instead?

@jonas-koeritz
Copy link
Member

This should be closed. AndroidX and the Support libraries are mutually exclusive so this is no longer applicable.

@moving-bits
Copy link
Member

c:geo itself does not use the old Support libraries anymore, but the viewpagerindicator does (in several files). Would this be a problem? Can we either upgrade the viewpagerindicator to AndroidX or replace it (there is already an issue for that one)?

@bekuno
Copy link
Member

bekuno commented Jan 6, 2020

The article describes two main points - the Support V4 Library and the AppCompat Support Library.
The first one is wide used in c:geo, but the second one only partly.
Both are now part of androidx.

Using the AppCompat library should using older android versions as the current.
The AS Task "Migrate to AppCompat" shows 610 references in 112 files.
When testing the proposed changes only in cgeo contacts (2 files, 16 references) it does not work on my Samsung S6 (Android 7.0) (app crash).
Therefore I propose also to close this issue now and switch to AppCompat within other planed changes.

@moving-bits
Copy link
Member

Thanks for the replies. Then let's close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request A request for a new feature/function
Projects
None yet
Development

No branches or pull requests

8 participants