Skip to content

Commit

Permalink
Merge pull request #55 from andreban/android-browser-helper
Browse files Browse the repository at this point in the history
Uses android-browser-helper
  • Loading branch information
andreban authored Jan 8, 2020
2 parents 6489b21 + a8bfeb5 commit 9eb0391
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 4 additions & 4 deletions template_project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def twaManifest = [
]

android {
compileSdkVersion 28
compileSdkVersion 29
defaultConfig {
applicationId "<%= packageId %>"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 29
versionCode 1
versionName "1.0"
versionName "2.0.0"

// The name for the application on the Android Launcher
resValue "string", "appName", twaManifest.name
Expand Down Expand Up @@ -155,5 +155,5 @@ preBuild.dependsOn(generateShorcutsFile)

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.github.GoogleChrome.custom-tabs-client:customtabs:809a55cfa2'
implementation 'com.google.androidbrowserhelper:androidbrowserhelper:1.0.0'
}
6 changes: 3 additions & 3 deletions template_project/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
android:name="cros_web_alternative"
android:value="@string/crosLaunchUrl" />

<activity android:name="android.support.customtabs.trusted.LauncherActivity"
<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="@string/appName">
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="@string/launchUrl" />
Expand Down Expand Up @@ -79,7 +79,7 @@
</activity>

<provider
android:name="android.support.v4.content.FileProvider"
android:name="androidx.core.content.FileProvider"
android:authorities="@string/providerAuthority"
android:grantUriPermissions="true"
android:exported="false">
Expand All @@ -89,7 +89,7 @@
</provider>

<service
android:name="android.support.customtabs.trusted.TrustedWebActivityService"
android:name="com.google.androidbrowserhelper.trusted.DelegationService"
android:enabled="@bool/enableNotification"
android:exported="@bool/enableNotification">

Expand Down
4 changes: 0 additions & 4 deletions template_project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ allprojects {
repositories {
google()
jcenter()
// Jitpack is currently being used to publish beta versions of the TWA Support Library.
// This will change in the future to use the same approach as other Android Support
// Libraries.
maven { url "https://jitpack.io" }
}
}

Expand Down

0 comments on commit 9eb0391

Please sign in to comment.