-
Notifications
You must be signed in to change notification settings - Fork 69
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
Move to Java 8 #186
Comments
Needed to check if it would break any mobile app. @Priegle Any insight here? |
@winder is anyone working on this item currently? |
@srayhunter no. Is there a specific reason you would like to see us remove Java7 support? |
Just FYI: I've found an issue when you target minSdkVersion = 24 and run on Android 7. I'm seeing:
which stems from the Using Java 8 Base64 would fix this. (I cant find a non hacky way to stop my app loading the broken commons code) |
Please keep it Java 7 compatible. We still need this to run on ancient android 4 runtimes. |
I suggest we update to use the BouncyCastle Base64 class, since it's already on this projects classpath. It will also solve another issue with namespace clashing I'm having on Android 4. |
If this works in the old BouncyCastle that's bundled in old Android? |
For BouncyCastle you can force the usage of the compile dependency using
which guarantees ( I think) it uses the one you want and not the old BouncyCastle that's bundled in old Android. This isn't an issue with Java 8 though because you can force the update during runtime. However there are OTHER issues that I've run into that updating to Java 8 can cause on Android 4, which there are only painful fixes for:
to name a couple. Once you allow Java8, people start using this stuff and then you get crashes usually in production because of some obscure phone that you don't have in hand to test with. I'm not trying to start an argument, just providing a counter argument. Too bad we just can't update all the phone out there! |
I think that changing the provider makes it use the correct provider for |
Yeah, maybe you're right about that. I'm still learning about this specific issue.... ;) |
We should deprecate support for Java 7 and move to Java 8.
Java 7 has almost no market share these days, especially in the security conscious crypto space.
If that isn't enough, there are a handful of Android security fixes in Java 8, so requiring that version could protect algorand users.
The text was updated successfully, but these errors were encountered: