Skip to content

Commit

Permalink
Merge pull request #343 from andreban/target-sdk-31
Browse files Browse the repository at this point in the history
Updates libraries and demos to target SDK 31
  • Loading branch information
andreban authored Nov 8, 2021
2 parents dce4f4b + dcedab8 commit 6be9bb7
Show file tree
Hide file tree
Showing 34 changed files with 71 additions and 50 deletions.
4 changes: 2 additions & 2 deletions demos/custom-tabs-example-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "org.chromium.customtabsdemos"
minSdkVersion 26
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
4 changes: 2 additions & 2 deletions demos/custom-tabs-example-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
android:theme="@style/Theme.AppCompat.Light.DarkActionBar">

<activity android:name=".DemoListActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down Expand Up @@ -71,7 +72,6 @@
</activity>

<receiver android:name=".ActionBroadcastReceiver" />

</application>

<queries>
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 @@ -23,7 +23,7 @@ android {
defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabsheaders"
minSdkVersion 25
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"

Expand Down
4 changes: 3 additions & 1 deletion demos/custom-tabs-headers/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
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 @@ -23,7 +23,7 @@ android {
defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabsnavigationcallbacks"
minSdkVersion 25
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
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 @@ -23,7 +23,7 @@ android {
defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabsoauth"
minSdkVersion 23
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
4 changes: 3 additions & 1 deletion demos/custom-tabs-oauth/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
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 @@ -23,7 +23,7 @@ android {
defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.customtabssession"
minSdkVersion 25
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"

Expand Down
4 changes: 3 additions & 1 deletion demos/custom-tabs-session/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
4 changes: 2 additions & 2 deletions demos/twa-basic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.browser.examples.twa_basic"
minSdkVersion 26
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
3 changes: 2 additions & 1 deletion demos/twa-basic/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
android:resource="@string/asset_statements" />

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name" >
android:label="@string/app_name"
android:exported="true">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://airhorner.com" />

Expand Down
4 changes: 2 additions & 2 deletions demos/twa-custom-launcher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.google.androidbrowserhelper"
minSdkVersion 23
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
3 changes: 2 additions & 1 deletion demos/twa-custom-launcher/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

<activity
android:name="com.google.androidbrowserhelper.launchtwa.LaunchTwaActivity"
android:label="@string/launch_twa">
android:label="@string/launch_twa"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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 @@ -33,7 +33,7 @@ android {
defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.twa_firebase_analytics"
minSdkVersion 26
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
3 changes: 2 additions & 1 deletion demos/twa-firebase-analytics/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@

<activity android:name=".FirebaseAnalyticsLauncherActivity"
android:label="@string/app_name"
android:screenOrientation="landscape">
android:screenOrientation="landscape"
android:exported="true">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://airhorner.com" />

Expand Down
4 changes: 2 additions & 2 deletions demos/twa-location-delegation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.browser.examples.twa_location_delegation"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
3 changes: 2 additions & 1 deletion demos/twa-location-delegation/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
android:resource="@string/asset_statements" />

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://pwa.eirage.com/Location/index.html" />

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 @@ -18,13 +18,13 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"


defaultConfig {
applicationId "com.google.browser.examples.twa_multi_domain"
minSdkVersion 26
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
3 changes: 2 additions & 1 deletion demos/twa-multi-domain/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
android:resource="@string/asset_statements" />

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">

<!-- Additional origins to be validated with Digital AssetLinks are listed under
this meta-tag, which points to a string-array in strings.xml -->
Expand Down
4 changes: 2 additions & 2 deletions demos/twa-notification-delegation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.twa_notification_delegation"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
android:resource="@string/asset_statements" />

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://twa-tests.firebaseapp.com" />

Expand Down
2 changes: 1 addition & 1 deletion demos/twa-offline-first/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {
defaultConfig {
applicationId "com.google.androidbrowserhelper.demos.twa_offline_first"
minSdkVersion 16
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"

Expand Down
3 changes: 2 additions & 1 deletion demos/twa-offline-first/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
android:theme="@style/Theme.Design.NoActionBar">

<activity android:name=".OfflineFirstTWALauncherActivity"
android:theme="@style/Theme.Design.NoActionBar">
android:theme="@style/Theme.Design.NoActionBar"
android:exported="true">

<!-- Edit android:value to change the url opened by the Trusted Web Activity -->
<intent-filter>
Expand Down
4 changes: 2 additions & 2 deletions demos/twa-orientation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.browser.examples.twa_orientation"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
3 changes: 2 additions & 1 deletion demos/twa-orientation/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
android:resource="@string/asset_statements" />

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://tulip-forest-limpet.glitch.me" />

Expand Down
4 changes: 2 additions & 2 deletions demos/twa-play-billing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def appId = "com.google.androidbrowserhelper.demos.playbilling"

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"
defaultConfig {
applicationId appId
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 31
versionCode 13
versionName "13.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
6 changes: 4 additions & 2 deletions demos/twa-play-billing/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

<activity
android:name=".MainActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -42,7 +43,8 @@

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="true">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://beer.conn.dev" />

Expand Down
4 changes: 2 additions & 2 deletions demos/twa-web-share-target/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.google.androidbrowserhelper.webshare"
minSdkVersion 26
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down
6 changes: 4 additions & 2 deletions demos/twa-web-share-target/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
android:supportsRtl="true">

<activity
android:name="com.google.androidbrowserhelper.webshare.MainActivity">
android:name="com.google.androidbrowserhelper.webshare.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -31,7 +32,8 @@
<activity
android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="true">

<!--
Intent filter to receive shares.
Expand Down
4 changes: 2 additions & 2 deletions demos/twa-webview-fallback/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"


defaultConfig {
applicationId "com.google.browser.examples.twawebviewfallback"
minSdkVersion 26
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"

Expand Down
3 changes: 2 additions & 1 deletion demos/twa-webview-fallback/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
android:resource="@string/asset_statements" />

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://pwa-directory.appspot.com" />

Expand Down
Loading

0 comments on commit 6be9bb7

Please sign in to comment.