To streamline the integration process, we are implementing notable changes to the interface and employing a novel collection of integrated methods in version 4600. This document serves as a reference for upgrading from the previous version to version 4600, detailing the interface differences. Additionally, a detailed integration document is available below for your reference. Kindly refer to the old integration document, if you require assistance with integrating versions preceding 4600.
Note: Pangle started using Android X in v18.104.22.168, if you need to upgrade to v22.214.171.124, please use Android X for development.
Note: JFrog has announced that they are shutting down the Bintray hosting service, which includes the popular JCenter hosting service for Java artifacts . The Pangle Android repository has been migrated to Maven
Apps can import the Pangle SDK with Gradle dependency. First, make sure that
Maven is referenced in the
allprojects section of your project-level
build.gradle file with the url 'https://artifact.bytedance.com/repository/pangle'.
Example project-level build.gradle (excerpt)
Note: Gradle version 7+
If you’re using Gradle version 7+, update your repository section on your
settings.gradle file, instead of
Next, open the app-level
build.gradle file for your app, and look for a "dependencies" section.
Add the line in bold above, which instructs Gradle to pull in the Pangle SDK and additional related dependencies. Once that's done, save the file and perform a Gradle sync.
Add the required permissions to your app's
AndroidManifest.xml file, as shown below.
To avoid obfuscating the SDK code when using Proguard, ensure that the following configuration is added to the end of the Proguard.cfg file or any other obfuscated files:
Pangle SDK version 126.96.36.199 or later includes a Proguard file in the AAR package named
proguard.txt. The default APK packaging references this file. If the Proguard task is modified in the Gradle build script, it is important to merge the content
proguard.txt into the final Proguard configuration to prevent app malfunction or failure due to missing code or resources.
Please make sure not to obfuscate our resource file, you can download the complete whitelist of each version from the platform. If you obfuscate the APK using the AndResGuard resource obfuscation tool, be sure to add all the contents of the whiteList.txt provided by Pangle to your project's whitelist.
Or you can download whiteList here: link
Version 188.8.131.52 or later of the Pangle SDK includes a fuzzy matching feature that facilitates the matching and location of files for whitelisting, without the need to specify precise file locations.
Here are the examples:
If you use shrinkresource, please add our resource file to your whitelist.
The app-ads.txt project is an initiative of the Interactive Advertising Bureau (IAB) that aims to reduce mobile advertising fraud. Developers need to refer to the documentation to configure app-ads.