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
Improved code style, comments, bumped compileSdkVersion etc. #117
base: master
Are you sure you want to change the base?
Conversation
hiya - this looks nice and doesn't change the behavior. however, the checkstyle stuff is failing. @aalmiray wdyt? |
@@ -1 +0,0 @@ | |||
sdk.dir = ./android-sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have to check if this change works with our CI build
Reviewed 43 of 43 files at r1. subprojects/jdeferred-android/jdeferred-android.gradle, line 48 at r1 (raw file):
as @saturnism mentioned the project needs to have a lower number for compatibility's sake subprojects/jdeferred-android/src/main/AndroidManifest.xml, line 24 at r1 (raw file):
see comment about compatibility subprojects/jdeferred-android/src/main/java/org/jdeferred/android/AndroidDeferredManager.java, line 89 at r1 (raw file):
@saturnism do we still need this check? subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredManager.java, line 26 at r1 (raw file):
why were these import statements added? subprojects/jdeferred-core/src/main/java/org/jdeferred/DonePipe.java, line 30 at r1 (raw file):
please remove this empty line :-) subprojects/jdeferred-core/src/main/java/org/jdeferred/Promise.java, line 160 at r1 (raw file):
@saturnism I think these Noop classes should be part of the public API, that is, move them out from Comments from Reviewable |
@mrmaffen thank you for taking the time to make these improvements 😄 |
Should we slate this for 2.0? I.e., a lot of the code changed here will be pretty difficult to merge into the 2.x branch. That being said, since multiple contributors will be submitting to this branch, would it be possible to get smaller piece-meal changes at a time? :) would really appreciate it! |
+1 on moving the updates to the |
As for the targetSdkVersion ... I think the best way to maintain compatibility is to always target the latest API level and test it thoroughly. I am using my own compiled version with the targetSdkVersion set to 26 and haven't run into any issues so far. The minSdkVersion was kind of ambigous before my changes. The AndroidManifest declared it to be 8, while your gradle build file was set to 15. I think your gradle build file takes precedent in this case. The official Android docs state something similar wrt the targetSdkVersion (https://developer.android.com/guide/topics/manifest/uses-sdk-element.html):
|
Hey there,
I'm loving this project and so I thought I'd put some work in and go through the lint warnings and fix some stuff. I have fixed and improved some comments. I've also removed some redundant scope modifiers and bumped up the gradle build tools version, buildToolsVersion, compileSdkVersion and targetSdkVersion. I've also removed local.properties and added it to .gitignore since it's essentially useless for people forking your repo since well ... there's only local properties in there.
No code logic has been changed in this PR.
I have compiled and tested jdeferred in my Android App project.
This change is