-
Notifications
You must be signed in to change notification settings - Fork 300
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
Update JDK, Gradle and libraries #492
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
602b2ee
Update android-browser-helper
erikrodriguez-se 114afa0
Quick fix updates
erikrodriguez-se 518308d
Update java version in github workflow
orbital17 c094e01
Update minSdkVersion
orbital17 b962539
Revert play billing back to v6
orbital17 728b716
Fix custom-tabs-example-app demo
orbital17 7f1d757
Remove build config from playbilling
orbital17 f7568b9
Fix twa-post-message
orbital17 72fbba2
Add aidl to buildFeatures in playbilling
orbital17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,13 +20,14 @@ apply plugin: 'maven-publish' | |
def VERSION = "2.5.0"; | ||
|
||
android { | ||
compileSdkVersion 31 | ||
namespace "com.google.androidbrowserhelper" | ||
compileSdk 35 | ||
|
||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 31 | ||
minSdkVersion 21 | ||
versionCode 1 | ||
versionName VERSION | ||
targetSdkVersion 35 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a big jump, are we sure that we covered all changes? |
||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
@@ -39,8 +40,8 @@ android { | |
} | ||
|
||
compileOptions { | ||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
sourceCompatibility JavaVersion.VERSION_17 | ||
targetCompatibility JavaVersion.VERSION_17 | ||
} | ||
|
||
testOptions { | ||
|
@@ -51,23 +52,23 @@ android { | |
} | ||
|
||
dependencies { | ||
api 'androidx.browser:browser:1.4.0' | ||
api 'androidx.browser:browser:1.8.0' | ||
|
||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation 'androidx.annotation:annotation:1.1.0' | ||
implementation 'androidx.core:core:1.0.2' | ||
implementation 'androidx.annotation:annotation:1.9.1' | ||
implementation 'androidx.core:core:1.15.0' | ||
|
||
testImplementation 'junit:junit:4.12' | ||
testImplementation 'org.mockito:mockito-core:3.0.0' | ||
testImplementation 'org.robolectric:robolectric:4.4' | ||
testImplementation 'junit:junit:4.13.2' | ||
testImplementation 'org.mockito:mockito-core:3.12.4' | ||
testImplementation 'org.robolectric:robolectric:4.11' | ||
|
||
androidTestImplementation 'androidx.test:runner:1.2.0' | ||
androidTestImplementation 'androidx.test:rules:1.2.0' | ||
androidTestImplementation 'androidx.test.ext:junit:1.1.1' | ||
androidTestImplementation 'org.mockito:mockito-core:3.0.0' | ||
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:2.19.0' | ||
androidTestImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'androidx.test:runner:1.6.2' | ||
androidTestImplementation 'androidx.test:rules:1.6.1' | ||
androidTestImplementation 'androidx.test.ext:junit:1.2.1' | ||
androidTestImplementation 'org.mockito:mockito-core:3.12.4' | ||
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:2.28.3' | ||
androidTestImplementation 'junit:junit:4.13.2' | ||
} | ||
|
||
publishing { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I assume minSdk has raised because
targetCompatibility
is Java 17. Can we update jdk version that runs gradle, but keep existing build configuration for demos and especially androidbrowserhelper? AFAIK, most of the AndroidX libraries use jdk 1.8, so we should be fine with updating only gradle.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.
@orbital17 as I remember these changes would cause bubblewrap update, right?