Chrome custom tabs examples
Перейти к файлу
Peter E Conn f55501961a Clearly deprecate custom-tabs-client.
This repo has be deprecated for a while, this CL makes it clearer.

Change-Id: I785b8b92a2315bf4e8766212e3e51a3a4104cf54
Reviewed-on: https://chromium-review.googlesource.com/c/custom-tabs-client/+/2254618
Reviewed-by: Rayan Kanso <rayankans@chromium.org>
Commit-Queue: Peter Conn <peconn@chromium.org>
2020-06-22 09:14:08 +00:00
Application Wait for TWA provider to be set in tests. 2019-03-26 14:51:11 +00:00
customtabs 🛃 Launch CCT on Null Session. 2019-10-07 09:46:15 +00:00
demos Use dark-mode related APIs in TWAs 2019-07-25 15:32:03 +00:00
gradle/wrapper Update build tools and libraries to latest version 2017-12-08 18:07:39 +00:00
infra/config Remove cq_name 2018-09-14 20:12:25 +00:00
shared Update build tools and libraries to latest version 2017-12-08 18:07:39 +00:00
.gitignore Removes the svgomg module 2019-01-15 11:48:50 +00:00
CONTRIBUTING.md Update README and CONTRIBUTING for Gerrit review 2017-11-06 23:47:24 +00:00
CREDITS Replace proprietary content with free images and music 2016-04-15 11:20:03 -07:00
LICENSE First commit of license, readme and contributing 2015-05-21 11:57:15 +01:00
OWNERS Remove pasko from OWNERS 2019-03-19 10:45:11 +00:00
README.md Clearly deprecate custom-tabs-client. 2020-06-22 09:14:08 +00:00
Using.md Make README more compact 2015-10-16 05:01:49 -07:00
build.gradle Update build tools and libraries to latest version 2017-12-08 18:07:39 +00:00
codereview.settings Update custom-tabs-client to use Gerrit for codereview 2017-11-06 20:46:02 +00:00
gradlew Optimize file structure for AndroidStudio 2015-05-27 18:19:35 +02:00
gradlew.bat Optimize file structure for AndroidStudio 2015-05-27 18:19:35 +02:00
settings.gradle Removes the svgomg module 2019-01-15 11:48:50 +00:00

README.md

Deprecated

This repository is deprecated. Please use android-browser-helper or androidx.browser instead.

You can learn more about the deprecation and which library you should use by reading Trusted Web Activities, the Lay of the Land.

Chrome Custom Tabs - Examples and Documentation

Chrome Custom Tabs provides a way for an application to customize and interact with a Chrome Activity on Android. This makes the web content feel like being a part of the application, while retaining the full functionality and performance of a complete web browser.

AndroidX

This library is based off (and contains copies of the classes from) the Android Support Library Custom Tabs package. There are known bugs when using custom-tabs-client with AndroidX or with Jetifier (the AndroidX conversion tool). For example, run-time crashes like this bug:

java.lang.IllegalAccessError:
  Method 'android.os.Bundle android.support.customtabs.CustomTabColorSchemeParams.toBundle()'
  is inaccessible to class 'androidx.browser.customtabs.CustomTabsIntent$Builder'
  (declaration of 'androidx.browser.customtabs.CustomTabsIntent$Builder' appears in XYZ.apk)

Please use the Android Browser Helper library instead. It contains the same functionality updated to work with AndroidX.

Examples

Using Custom Tabs should be easy. This repository hosts examples and in-depth documentation. The examples are importable as projects into the Android Studio.

Bugs, Issues and Discussion

We want to hear your feedback! Please create bugs and start discussions using this template. Please use the template for any issues related to the Custom Tabs APIs, their implementation in Chrome, the examples in this repository, and related functionality of the Android Support Library.

Note: we know that the GitHub issue tracker is great! However, since Custom Tabs is mostly driven by Chrome developers, and we want to keep all bugs in one place, we prefer the Chromium issue tracker at the moment.

Contributing

We accept contributions to Custom Tabs examples and documentation. Please see our contributor's guide.