Skip to content

Update stable branch up to release 2.6.1 #527

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

Merged
merged 138 commits into from
Jun 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
ee4dc73
Update the url for the pom
nohe427 Jul 30, 2021
fb1d661
Only set SubscriptionUpdateParams only if purchaseToken is set
joycetoh8 Aug 10, 2021
ecfb8be
Partial custom tab demo
JinsukKim Oct 28, 2022
b353ced
feedback
JinsukKim Nov 1, 2022
af82b47
Merge pull request #394 from JinsukKim/main
PEConn Nov 4, 2022
62feace
Migrate notification sample
sebastianbenz Nov 25, 2022
507d4af
Fix Custom UI sample
sebastianbenz Nov 25, 2022
50a1485
Merge pull request #400 from sebastianbenz/fix-notification-sample
sebastianbenz Nov 29, 2022
aaea6ef
Merge branch 'main' into fix-custom-sample
sebastianbenz Nov 29, 2022
b3e8ad8
Merge pull request #401 from sebastianbenz/fix-custom-sample
andreban Dec 1, 2022
4fe149b
Merge branch 'main' into patch-2
EiraGe Dec 15, 2022
e786544
Merge branch 'main' into fix-PBL4-changes
EiraGe Dec 16, 2022
6142fea
Merge pull request #326 from nohe427/patch-2
EiraGe Dec 16, 2022
9472e5a
Merge branch 'main' into fix-PBL4-changes
EiraGe Dec 16, 2022
dc78820
Merge pull request #328 from joycetoh8/fix-PBL4-changes
EiraGe Dec 16, 2022
f4bdd7d
Pull CustomTabsCAllback to a getter from private field
mrajah1 Feb 6, 2023
0ee0598
Merge pull request #405 from mrajah1/main
PEConn Feb 7, 2023
9ee23a0
Allows media playback without user interaction on WebViewFallaback
andreban Mar 1, 2023
8d1ebdb
Merge pull request #414 from andreban/webview-fallback-media-playback
andreban Mar 1, 2023
8887d85
Use WindowManager.LayoutParams.FLAG_FULLSCREEN to go full screen
mrajah1 Mar 31, 2023
534478f
Merge branch 'main' into fullscreen
mrajah1 Mar 31, 2023
e164642
Merge pull request #418 from mrajah1/fullscreen
PEConn Apr 4, 2023
0d20af2
Add Custom Tabs Engagement Signals Demo
sebastianbenz Apr 28, 2023
5d17663
Add license and cleanup empty strings
sebastianbenz Apr 28, 2023
d68c102
Clean up and more logging
sebastianbenz Apr 28, 2023
7f5f5d4
addressed PEConn's comments
sebastianbenz May 2, 2023
c7f2443
fix formatting
sebastianbenz May 3, 2023
76d6394
Merge pull request #421 from sebastianbenz/ct-engagement-signals
sebastianbenz May 3, 2023
2abcefa
update the version in readme
build3r May 30, 2023
56e1a34
Merge pull request #425 from build3r/version_update
PEConn May 31, 2023
62fb2ca
Bump core version to 2.5.0. (#426)
mvano Jun 12, 2023
bb9ba39
Add TWA/CCT postMessage demo
SayedElabady Apr 4, 2023
7cbece9
Improve the demo code based on the PR comments
SayedElabady Jun 19, 2023
cbd2e50
Improve the demo code based on the PR comments
SayedElabady Jun 19, 2023
06c5faa
Reolve lint issues
SayedElabady Jul 4, 2023
41fd5ea
Merge pull request #429 from SayedElabady/postmessage-demo-
andreban Jul 4, 2023
1feb008
Increment PlayBilling version to V5
SayedElabady Jul 5, 2023
5343ad7
Increment PBL version to V6
SayedElabady Jul 6, 2023
dfa9c39
Increment PBL version to V5
SayedElabady Jul 10, 2023
08cd755
Correct PBL version in README
SayedElabady Jul 10, 2023
13a756a
Correct PBL version in README
SayedElabady Jul 10, 2023
dcbae5e
Correct PBL version in README
SayedElabady Jul 12, 2023
5dd1eb4
Merge pull request #432 from SayedElabady/play-billingV5-bump
PEConn Jul 12, 2023
c1dd90d
Increment Billing module version
SayedElabady Jul 18, 2023
13d659b
Bump playbilling module version
SayedElabady Jul 18, 2023
5d8d0a5
Merge pull request #435 from SayedElabady/billing-version-bump
PEConn Jul 26, 2023
a3cb7ef
Update play-service-location version
SayedElabady Aug 1, 2023
b98e5f2
Update play-service-location version
SayedElabady Aug 1, 2023
d999aa5
Merge pull request #437 from SayedElabady/location-delegate-dep-update
andreban Aug 1, 2023
537fee8
Update location-delegation version to 1.1.1
SayedElabady Aug 2, 2023
4f43bbf
Merge pull request #438 from SayedElabady/bump-locaiton-delegation
andreban Aug 2, 2023
a51ecb7
Clarify the comment on SOURCE_ORIGIN
SayedElabady Oct 3, 2023
7a2953b
Merge pull request #444 from SayedElabady/post_message_demo_update
PEConn Oct 13, 2023
b186ba0
Fix source origin comment
elabadysayed May 15, 2024
634b875
Fix source origin comment
elabadysayed May 15, 2024
5813443
Added explanation to the comment.
SayedElabady May 15, 2024
34ed182
Merge remote-tracking branch 'origin/fix-source-origin-comment' into …
SayedElabady May 15, 2024
6d1272a
Merge pull request #470 from SayedElabady/fix-source-origin-comment
andreban May 16, 2024
063e314
Move connecting/disconnecting from service to onCreate/Destroy
andreban May 17, 2024
98a633c
Removes unused Log import
andreban May 17, 2024
2945ee4
Merge pull request #471 from andreban/service-connection-oncreatedestroy
andreban May 21, 2024
b052e2b
remove price change confirmation
orbital17 Jul 20, 2024
058ac85
update playbilling version
orbital17 Jul 23, 2024
77234df
move isPriceChangeConfirmation flag check
orbital17 Jul 24, 2024
653bfd2
Merge pull request #476 from orbital17/main
PEConn Jul 24, 2024
d28f740
fix skuPassedToPlayBilling test
orbital17 Jul 30, 2024
843e9c7
AuthTab project example
erikrodriguez-se Dec 3, 2024
c608809
Removes non-sample related project code
erikrodriguez-se Dec 3, 2024
96e4ca6
Remove additional code changes
erikrodriguez-se Dec 3, 2024
e582be4
Final set of code removal changes
erikrodriguez-se Dec 3, 2024
fdd9440
Ephemeral Tabs project examples
erikrodriguez-se Dec 11, 2024
b54ad37
Remove one of two demos from PR
erikrodriguez-se Dec 17, 2024
efcb39a
Ephemeral Tabs With Fallback project example
erikrodriguez-se Dec 17, 2024
9b2470a
Rework demo to include new AndroidX API to check if ephemeral tab is …
erikrodriguez-se Dec 19, 2024
0a73a55
Updates to annotate deprecations. Also updates feature name to "auth …
erikrodriguez-se Dec 19, 2024
0aabbdf
Merge pull request #477 from orbital17/main
orbital17 Jan 9, 2025
61c0886
Update gradle and add namespaces
orbital17 Jan 14, 2025
72b2825
Add linkedin repo for dexmaker
ukaratkevich Jan 14, 2025
af577d3
Enable aidl feature
ukaratkevich Jan 14, 2025
06a1188
Merge branch 'main' into ephemeral-tab-with-fallback-example
erikrodriguez-se Jan 15, 2025
f016e9c
Merge branch 'main' into ephemeral-tab-example
erikrodriguez-se Jan 15, 2025
5434041
Merge branch 'main' into auth-tab-example
erikrodriguez-se Jan 15, 2025
d1a52de
Bump robolectric and mockito versions
ukaratkevich Jan 16, 2025
24ba289
Fix non-final R class errors
ukaratkevich Jan 17, 2025
c8d5353
Fix namespaces in build.gradle
ukaratkevich Jan 17, 2025
c256969
Suppress ExpiredTargetSdkVersion lint check
ukaratkevich Jan 17, 2025
d552f30
Fix RecyclerView adapter position lint error
ukaratkevich Jan 17, 2025
bd1bc62
Add notification permistion into the AndroidManifest
ukaratkevich Jan 17, 2025
5e6910d
Increate severity for ExpiredTargetSdkVersion from ignore to warning
ukaratkevich Jan 17, 2025
d762b18
Merge remote-tracking branch 'origin/main' into update-gradle
ukaratkevich Jan 17, 2025
0c00b61
Merge pull request #493 from GoogleChrome/update-gradle
ukaratkevich Jan 20, 2025
409f999
Merge branch 'main' into ephemeral-tab-with-fallback-example
erikrodriguez-se Jan 21, 2025
f0c4f1d
Merge branch 'main' into auth-tab-example
erikrodriguez-se Jan 21, 2025
c41369e
Merge branch 'main' into ephemeral-tab-example
erikrodriguez-se Jan 21, 2025
d878860
Merge pull request #488 from erikrodriguez-se/ephemeral-tab-example
ukaratkevich Jan 31, 2025
32de57f
Merge branch 'main' into auth-tab-example
erikrodriguez-se Jan 31, 2025
a292f7b
Merge branch 'main' into ephemeral-tab-with-fallback-example
erikrodriguez-se Jan 31, 2025
76d082d
Merge pull request #490 from erikrodriguez-se/ephemeral-tab-with-fall…
ukaratkevich Feb 3, 2025
46fef02
Merge remote-tracking branch 'upstream/main' into auth-tab-example
erikrodriguez-se Feb 6, 2025
8b974ff
Updates new AndroidX browser version, corrects build issues
erikrodriguez-se Feb 6, 2025
65e5fc1
Merge pull request #486 from erikrodriguez-se/auth-tab-example
ukaratkevich Feb 7, 2025
a670258
Bumped all dependencies necessary to use newest androidx.browser 1.9.…
gstepniewski-google Apr 10, 2025
81144b9
Merge pull request #500 from GoogleChrome/dependencies-bump
gstepniewski-google Apr 14, 2025
cb5cfaf
Protocol Handler support
gstepniewski-google Mar 7, 2025
d6771e6
Merge pull request #501 from GoogleChrome/protocol-handlers
gstepniewski-google Apr 14, 2025
e83fb30
Bump core version to 2.6.0
gstepniewski-google Apr 15, 2025
959c35a
Bump location delegation to 1.1.2
gstepniewski-google Apr 15, 2025
52dd4c9
Bump play billing to 1.0.1
gstepniewski-google Apr 15, 2025
31a4ec8
Update badge status to only look at the main branch
SharkMan201 Apr 23, 2025
c93cd06
Merge pull request #505 from GoogleChrome/update-badge-status
SharkMan201 Apr 23, 2025
1cda1ad
Add file handling support
orbital17 Apr 28, 2025
095269e
Remove unnecessary toString()
orbital17 Apr 29, 2025
380bcdd
Merge pull request #506 from GoogleChrome/filehandling
orbital17 Apr 29, 2025
7c96e82
Forward Launch Handler client mode to a browser
May 5, 2025
8cd61ef
Move client mode logic to LauncherActivityMetadata
May 5, 2025
c0f39ff
Merge pull request #508 from GoogleChrome/lh_read_manifest_value
SelyvonSerhii May 6, 2025
6715108
Update Auth Tab demo browser dependency to alpha03
fsinan May 5, 2025
6bc050d
Merge pull request #509 from GoogleChrome/fsinan_auth_tab_alpha03
fsinan May 9, 2025
6e0067d
Use FileData from incoming intent if it's present
May 9, 2025
df8f74c
Add metadata option to control Chrome startup timing relative to anim…
youenn98 May 13, 2025
9141a4a
Merge pull request #512 from GoogleChrome/lh_check_file_data
SelyvonSerhii May 13, 2025
2e8bf4d
Preload url while waiting for enter animation complete
youenn98 May 16, 2025
4a6753d
Merge branch 'main' into main
OlegNitz May 19, 2025
508ab5b
Merge branch 'main' into preload
OlegNitz May 19, 2025
2ae04ed
Merge pull request #515 from youenn98/main
OlegNitz May 19, 2025
29b5c2c
Merge branch 'main' into preload
OlegNitz May 19, 2025
ea274dd
Merge pull request #518 from youenn98/preload
OlegNitz May 19, 2025
3149807
Add extra data for the timestamp for TWA startup and the version of
joehattori May 15, 2025
e6bbf1d
Merge pull request #517 from joehattori/add-twa-startup-timestamp
OlegNitz May 20, 2025
5cc748c
Fix the androidTest build
youenn98 May 20, 2025
6801064
Use a task id as a session id
May 21, 2025
2c3c2d1
androidx.browser:browser bumped to 1.9.0-alpha04
gstepniewski-google May 7, 2025
505965a
Demo fixes for new browser APIs
gstepniewski-google May 7, 2025
fa7a9ff
Added support for 'minimal-ui' and 'browser' display modes
gstepniewski-google May 7, 2025
58cdcba
Bump core version to 2.6.1
gstepniewski-google May 22, 2025
9e5e3f6
Merge pull request #521 from GoogleChrome/version-bump
ukaratkevich May 22, 2025
492f945
Add a reminder comment to bump version code
ishitatsuyuki May 29, 2025
866b3ee
Merge pull request #528 from ishitatsuyuki/patch-1
glennhartmann Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Android Browser Helper

![CI Status Badge](https://github.com/GoogleChrome/android-browser-helper/workflows/Android%20CI/badge.svg)
![CI Status Badge](https://github.com/GoogleChrome/android-browser-helper/actions/workflows/android.yml/badge.svg?branch=main)

The Android Browser Helper library helps developers use Custom Tabs and Trusted
Web Activities on top of the AndroidX browser support library.
Expand All @@ -19,7 +19,7 @@ Android Browser helper is available on the Google Maven. To use it, modify your
```gradle
dependencies {
//...
implementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.3.0'
implementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.4.0'
}

```
Expand Down
32 changes: 24 additions & 8 deletions androidbrowserhelper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,24 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

def VERSION = "2.4.0";
// Before 2.6.1, the version code was unused and was kept at 1.
// This is now being used to report metrics, and should be bumped with
// every version bump.
def VERSION = "2.6.1";
def VERSION_CODE = 1;

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

defaultConfig {
minSdkVersion 16
minSdkVersion 21
compileSdk 36
targetSdkVersion 31
versionCode 1
versionCode VERSION_CODE
versionName VERSION

buildConfigField "int", "LIBRARY_VERSION", "${versionCode}"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand All @@ -38,9 +45,13 @@ android {
}
}

buildFeatures {
buildConfig true
}

compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

testOptions {
Expand All @@ -51,16 +62,21 @@ android {
}

dependencies {
api 'androidx.browser:browser:1.4.0'
// Force newest versions of kotlin and coroutines to avoid duplicate classes in kotlin-stdlib
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.22"))
implementation(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.3"))

api 'androidx.browser:browser:1.9.0-alpha04'

implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.core:core:1.0.2'
implementation 'androidx.appcompat:appcompat:1.7.0'

testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:3.0.0'
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'org.robolectric:robolectric:4.12.2'

androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
Expand Down
27 changes: 20 additions & 7 deletions androidbrowserhelper/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,22 @@
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="android.support.customtabs">
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk android:minSdkVersion="16"/>

<application>
<activity android:name="androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity"
android:exported="true"
tools:node="merge"
tools:replace="android:exported" />
<activity android:name="androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity"
android:exported="true"
tools:node="merge"
tools:replace="android:exported" />
<activity android:name="androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity"
android:exported="true"
tools:node="merge"
tools:replace="android:exported" />

<activity android:name="com.google.androidbrowserhelper.trusted.ManageDataLauncherActivity">
<meta-data
Expand All @@ -26,7 +38,7 @@
</activity>

<activity android:name="com.google.androidbrowserhelper.trusted.testcomponents.TestActivity"
android:enabled="false">
android:enabled="false" android:exported="true">
<!-- A browsable intent filter is required for the DelegationService. -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
Expand All @@ -43,14 +55,14 @@
</activity>

<service android:name="com.google.androidbrowserhelper.trusted.testcomponents.TestCustomTabsService"
android:enabled="false">
android:enabled="false" android:exported="true">
<intent-filter>
<category android:name="androidx.browser.trusted.category.TrustedWebActivities" />
</intent-filter>
</service>

<service android:name="com.google.androidbrowserhelper.trusted.testcomponents.TestCustomTabsServiceSupportsTwas"
android:enabled="false">
android:enabled="false" android:exported="true">
<intent-filter>
<action android:name="android.support.customtabs.action.CustomTabsService" />
<category android:name="androidx.browser.trusted.category.TrustedWebActivities" />
Expand All @@ -60,7 +72,7 @@
</service>

<service android:name="com.google.androidbrowserhelper.trusted.testcomponents.TestCustomTabsServiceNoSplashScreens"
android:enabled="false">
android:enabled="false" android:exported="true">
<intent-filter>
<action android:name="android.support.customtabs.action.CustomTabsService" />
<category android:name="androidx.browser.trusted.category.TrustedWebActivities" />
Expand All @@ -82,9 +94,10 @@
</activity>

<activity android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"
android:label="Test Launcher Activity"
android:theme="@style/Theme.AppCompat.Light"
android:enabled="false">
android:label="Test Launcher Activity"
android:enabled="false"
android:exported="true">

<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://www.test.com/default_url/" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void setUp() {
mActivity = mActivityTestRule.getActivity();
mSession = mConnectionRule.establishSessionBlocking(mActivity);
mStrategy = new PwaWrapperSplashScreenStrategy(mActivity, R.drawable.splash, 0,
ImageView.ScaleType.FIT_XY, null, 0, FILE_PROVIDER_AUTHORITY);
ImageView.ScaleType.FIT_XY, null, 0, FILE_PROVIDER_AUTHORITY, false);
}

@After
Expand Down Expand Up @@ -145,7 +145,7 @@ public void setsParametersOnTwaBuilder() throws InterruptedException {

PwaWrapperSplashScreenStrategy strategy = new PwaWrapperSplashScreenStrategy(mActivity,
R.drawable.splash, bgColor, scaleType, matrix, fadeOutDuration,
FILE_PROVIDER_AUTHORITY);
FILE_PROVIDER_AUTHORITY, false);
strategy.onActivityEnterAnimationComplete();
initiateLaunch(strategy);

Expand Down
Loading