-
Notifications
You must be signed in to change notification settings - Fork 61
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
Remove the need to update the version in two places #80
Conversation
@@ -1,2 +1,17 @@ | |||
## For more details on how to configure your build environment visit |
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.
The changes in this file were added by Android Studio automatically to fix some warnings.
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.
Those changes look good and are sensible.
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip |
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.
Upping the gradle version because there appears to be no side effects from doing so.
@@ -44,7 +44,7 @@ flutter { | |||
} | |||
|
|||
dependencies { | |||
compile 'com.android.support:multidex:1.0.3' | |||
implementation 'com.android.support:multidex:1.0.3' |
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.
compile
is deprecated
@@ -1,2 +1,17 @@ | |||
## For more details on how to configure your build environment visit |
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.
Those changes look good and are sensible.
Co-authored-by: David Schreiber-Ranner <davidschreiber@users.noreply.github.com>
|
||
- Fixes versioning system to not require a manual update in two places. (#80) | ||
- Updates Gradle version and enable AndroidX for Android plugin and example. (#80) | ||
- Changes open source license to modified BSD instead of Apache. (#79) |
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.
Unrelated but missing from the changelog.
@@ -31,10 +43,17 @@ if (pspdfkitVersion == null || pspdfkitVersion == '') { | |||
|
|||
ext.pspdfkitMavenModuleName = 'pspdfkit' | |||
|
|||
ext.pspdfkitFlutterVersion = '1.10.3' | |||
// Get our library version from the top level pubspec.yaml file. |
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.
❤️
Details
When doing a version bump, we should keep the values in
pubspec.yaml
andconfig.gradle
for android the same.This PR uses a gradle Yaml library to parse the pubspec version and use it in the gradle config step.
I am also updating the gradle version and have applied some auto generated android studio fixes (commented) related to migrating to AndroidX.
Acceptance Criteria