Channel/Android/hyyngame2/LauncherManifest.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/hyyngame2/baseProjectTemplate.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/hyyngame2/launcherTemplate.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Channel/Android/hyyngame2/mainTemplate.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Channel/Android/hyyngame2/LauncherManifest.xml
New file @@ -0,0 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal"> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true"/> <application android:label="@string/app_name" android:icon="@mipmap/app_icon"> <activity android:name="com.facebook.CustomTabActivity" android:exported="false" tools:replace="android:exported" tools:ignore="AppLinkUrlError"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="@string/fb_login_protocol_scheme" tools:ignore="ManifestResource" /> </intent-filter> </activity> </application> </manifest> Channel/Android/hyyngame2/baseProjectTemplate.gradle
@@ -1,31 +1,14 @@ // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN allprojects { buildscript { repositories {**ARTIFACTORYREPOSITORY** google() jcenter() } dependencies { // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1' classpath "com.android.tools.build:gradle:7.3.0" classpath 'com.google.gms:google-services:4.3.10' **BUILD_SCRIPT_DEPS** } } repositories {**ARTIFACTORYREPOSITORY** google() jcenter() flatDir { dirs "${project(':unityLibrary').projectDir}/libs" } } plugins { // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version id 'com.android.application' version '7.1.2' apply false id 'com.android.library' version '7.1.2' apply false id 'com.google.firebase:firebase-crashlytics-gradle:2.8.1' apply false id 'com.android.tools.build:gradle:7.3.0' apply false id 'com.google.gms:google-services:4.3.10' apply false **BUILD_SCRIPT_DEPS** } task clean(type: Delete) { Channel/Android/hyyngame2/launcherTemplate.gradle
@@ -5,20 +5,17 @@ } android { ndkPath "**NDKPATH**" compileSdkVersion **APIVERSION** buildToolsVersion '34.0.0' repositories { flatDir { dirs 'libs' } } compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } packagingOptions {exclude 'META-INF/rxjava.properties'} defaultConfig { minSdkVersion **MINSDKVERSION** targetSdkVersion **TARGETSDKVERSION** @@ -32,7 +29,7 @@ aaptOptions { noCompress = ['.unity3d', '.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ') ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~" }**SIGN** lintOptions { @@ -43,13 +40,11 @@ buildTypes { debug { minifyEnabled **MINIFY_DEBUG** useProguard **PROGUARD_DEBUG** proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG** jniDebuggable true } release { minifyEnabled **MINIFY_RELEASE** useProguard **PROGUARD_RELEASE** proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG** } }**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS** Channel/Android/hyyngame2/mainTemplate.gradle
@@ -1,12 +1,10 @@ apply plugin: 'com.android.library' //**APPLY_PLUGINS** apply from: 'deps.gradle' **APPLY_PLUGINS** dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation(name: 'vndjgp_v', ext: 'aar') //x.x.x为具体版本 //SDK基础能力 implementation fileTree(dir: 'libs', include: ['*.jar']) implementation(name: 'vndjgp_v', ext: 'aar') //x.x.x为具体版本 //SDK基础能力 implementation 'com.appsflyer:af-android-sdk:6.9.0' implementation 'com.android.installreferrer:installreferrer:2.2' api 'androidx.annotation:annotation:1.5.0' @@ -21,21 +19,23 @@ } //base theme api 'androidx.appcompat:appcompat:1.2.0' //ald ui用 //ald ui用 api 'androidx.cardview:cardview:1.0.0' //谷歌能力 implementation 'com.google.android.gms:play-services-auth:20.1.0' //google服务 implementation("com.android.billingclient:billing:7.0.0") // google内购 implementation 'androidx.percentlayout:percentlayout:1.0.0' //google提供的支持库 implementation 'com.google.android.play:review:2.0.1' //google评价 //谷歌能力 implementation 'com.google.android.gms:play-services-auth:20.1.0' //google服务 implementation("com.android.billingclient:billing:7.0.0") // google内购 implementation 'androidx.percentlayout:percentlayout:1.0.0' //google提供的支持库 implementation 'com.google.android.play:review:2.0.1' //google评价 //facebook能力 //facebook能力 implementation 'com.facebook.android:facebook-login:latest.release' implementation 'com.facebook.android:facebook-share:latest.release' **DEPS**} android { ndkPath "**NDKPATH**" compileSdkVersion **APIVERSION** buildToolsVersion '34.0.0' @@ -43,9 +43,8 @@ sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } packagingOptions {exclude 'META-INF/rxjava.properties'} defaultConfig { minSdkVersion **MINSDKVERSION** targetSdkVersion **TARGETSDKVERSION** @@ -63,7 +62,10 @@ } aaptOptions { ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~" noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ') ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~" }**PACKAGING_OPTIONS** }**REPOSITORIES****SOURCE_BUILD_SETUP** } **IL_CPP_BUILD_SETUP** **SOURCE_BUILD_SETUP** **EXTERNAL_SOURCES**