To opt-out of this data collection process, remove the This data will be collected when you upload your app package The Play Core Native SDK may collect version related data to allow Google to In this example “main” is your native code library, i.e. # Add a static library called “playcore” built with the c++_static STL. Update your app’s CMakeLists.txt files as shown below: Implementation(files("$playcoreDir/playcore-native-metadata.jar")) Implementation(":play-services-tasks:18.0.2") ProguardFile("$playcoreDir/proguard/ per-feature-proguard-files") ProguardFile("$playcoreDir/proguard/gms_task.pgcfg") ProguardFile("$playcoreDir/proguard/common.pgcfg") Implementation files("$playcoreDir/playcore-native-metadata.jar") Implementation ':play-services-tasks:18.0.2' Import these feature-specific AARs for each Google Play Core library. ProguardFile '$playcoreDir/proguard/ per-feature-proguard-files' ProguardFile '$playcoreDir/proguard/gms_task.pgcfg' ProguardFile '$playcoreDir/proguard/common.pgcfg' Include Play Core Library proguard config files to strip unused code while retaining the Java symbols needed for JNI. Only required when using NDK 16 or earlier.ĪbiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' Define the PLAYCORE_LOCATION directive. If using a relative path, wrap it with file() since CMake requires absolute paths.ĭef playcoreDir = file('. Define a path to the extracted Play Core SDK files. Google will post notice of modifications to the terms at. Google may make changes to these terms at any time with notice and the opportunity to decline further use of the Play Core Software Development Kit.You will not modify, translate, or create derivative works of Redistributable Code. Google and its licensors own all right, title and interest, including any and all intellectual property and other proprietary rights, in and to Redistributable Code. Subject to these terms and the terms of the API ToS, you may copy and distribute Redistributable Code solely for inclusion as part of your API Client.“Redistributable Code” means Google-provided object code or header files that call the APIs.For purposes of these terms, "APIs" means Google's APIs, other developer services, and associated software, including any Redistributable Code.Please read these terms and the API ToS carefully. If these terms are ever in conflict, these terms will take precedence over the API ToS. By using the Play Core Software Development Kit, you agree to these terms in addition to the Google APIs Terms of Service ("API ToS").Set up your development environment for Play Core Native SDK The Play Core Native SDK provides the C headerįile play/asset_pack.h for requesting asset packs, managing downloads, andĪccessing the assets. Note: You use a different API to access install-time asset packs thanįigure 1. These steps are shown in the followingįlowchart. You implement this API according to the delivery type of Integrate with Play Asset Delivery Library (Optional) Configure your app bundle to support different texture Gradle generates the manifest for each asset pack and outputs the assets/ asset-pack-name/assets/ your-asset-directories:ĭirectory that contains all assets delivered as part of the asset pack.asset-pack-name/manifest/AndroidManifest.xml:Ĭonfigures the asset pack’s identifier and delivery mode.In the generated app bundle, the root-level directory now includes the asset-pack-name/src/main/assets/ your-asset-directoriesīuild the Android App Bundle with Gradle.The directory structure for your app should Place assets in the src/main/assets directory. In the asset pack directory, create the following subdirectory: In the project’s adle file, include all asset packs in your In the project’s app adle file, add the name of every asset packĪssetPacks = PackName = " asset-pack-name" // Directory name for the asset packĭeliveryType = "" Make sure to specify the name of the asset pack and only one In the asset pack directory, create a adle file and add theįollowing code. Must start with a letter and can only contain letters, numbers, and This directory name is used as the asset pack name. In the top-level directory of your project, create a directory for the asset Update the version of the Android Gradle plugin in your project’s Using Play Asset Delivery in native games Codelab. You don't need to use Android Studio to perform these steps. Use the following steps to build Play Asset Delivery into your project’s AndroidĪpp Bundle. Use the steps in this guide to access your app’s asset packs from your C and C++
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |