Skip to content

Commit

Permalink
Update gradle and add namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
orbital17 committed Jan 14, 2025
1 parent 653bfd2 commit 61c0886
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 17
- name: Build with Gradle
run: ./gradlew build
1 change: 1 addition & 0 deletions androidbrowserhelper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ apply plugin: 'maven-publish'
def VERSION = "2.5.0";

android {
namespace "com.google.androidbrowserhelper"
compileSdkVersion 31

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:8.7.3'
}
}

Expand Down
2 changes: 1 addition & 1 deletion demos/custom-tabs-example-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "org.chromium.customtabsdemos"
compileSdkVersion 33
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "org.chromium.customtabsdemos"
Expand Down
2 changes: 1 addition & 1 deletion demos/custom-tabs-headers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.androidbrowserhelper.demos.customtabsheaders"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabsheaders"
Expand Down
2 changes: 1 addition & 1 deletion demos/custom-tabs-navigation-callbacks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.androidbrowserhelper.demos.customtabsnavigationcallbacks"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabsnavigationcallbacks"
Expand Down
2 changes: 1 addition & 1 deletion demos/custom-tabs-oauth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.androidbrowserhelper.demos.customtabsoauth"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabsoauth"
Expand Down
2 changes: 1 addition & 1 deletion demos/custom-tabs-session/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.androidbrowserhelper.demos.customtabssession"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabssession"
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-basic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.browser.examples.twa_basic"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.browser.examples.twa_basic"
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-custom-launcher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.androidbrowserhelper.launchtwa"
compileSdkVersion 31
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.google.androidbrowserhelper"
minSdkVersion 23
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-firebase-analytics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ buildscript {
}

android {
namespace "com.google.androidbrowserhelper.demos.twa_firebase_analytics"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.twa_firebase_analytics"
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-location-delegation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.browser.examples.twa_location_delegation"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.browser.examples.twa_location_delegation"
Expand Down
4 changes: 2 additions & 2 deletions demos/twa-multi-domain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.browser.examples.twa_multi_domain"
compileSdkVersion 31
buildToolsVersion "30.0.3"



defaultConfig {
applicationId "com.google.browser.examples.twa_multi_domain"
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-notification-delegation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'com.android.application'

android {
namespace 'com.google.androidbrowserhelper.demos.twa_notification_delegation'
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.twa_notification_delegation"
Expand Down
1 change: 1 addition & 0 deletions demos/twa-offline-first/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ plugins {
}

android {
namespace "com.google.androidbrowserhelper.demos.twa_offline_first"
compileSdkVersion 31

defaultConfig {
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-orientation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.browser.examples.twa_orientation"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.browser.examples.twa_orientation"
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-play-billing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def appId = "com.google.androidbrowserhelper.demos.playbilling"
// def appId = "dev.conn.drink"

android {
namespace "com.google.androidbrowserhelper.demos.playbilling"
compileSdkVersion 31
buildToolsVersion "30.0.3"
defaultConfig {
applicationId appId
minSdkVersion 21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public void launch(View view) {
Intent intent = new Intent(this, LauncherActivity.class);

intent.setData(
Uri.parse("https://beer.conn.dev?client_version=" + BuildConfig.VERSION_CODE));
Uri.parse("https://beer.conn.dev")
);

startActivity(intent);
}
Expand Down
1 change: 1 addition & 0 deletions demos/twa-post-message/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ plugins {
}

android {
namespace "com.google.androidbrowserhelper.demos.twapostmessage"
// If you are changing this to below 31 you will need to ask for Permission
// for notification to work.
compileSdkVersion 33
Expand Down
2 changes: 1 addition & 1 deletion demos/twa-web-share-target/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.androidbrowserhelper.webshare"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.webshare"
Expand Down
3 changes: 1 addition & 2 deletions demos/twa-webview-fallback/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
apply plugin: 'com.android.application'

android {
namespace "com.google.browser.examples.twawebviewfallback"
compileSdkVersion 31
buildToolsVersion "30.0.3"


defaultConfig {
applicationId "com.google.browser.examples.twawebviewfallback"
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jan 06 14:01:45 GMT 2021
#Tue Dec 03 18:37:48 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
2 changes: 1 addition & 1 deletion locationdelegation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ apply plugin: 'maven-publish'
def VERSION = "1.1.1";

android {
namespace "com.google.androidbrowserhelper.locationdelegation"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 19
Expand Down
2 changes: 1 addition & 1 deletion playbilling/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ apply plugin: 'maven-publish'
def VERSION = "1.0.0-alpha11";

android {
namespace "com.google.androidbrowserhelper.playbilling"
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 19
Expand Down

0 comments on commit 61c0886

Please sign in to comment.