From ee9958a94c04f010eae11bf1f60f068afcbb55c1 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 18 一月 2024 17:17:02 +0800
Subject: [PATCH] 0312 欢游越南sdk

---
 Channel/Android/hyyngame/gradleTemplate.properties  |    7 +
 Channel/Android/hyyngame/launcherTemplate.gradle    |   81 ++++++++++++++++++++
 Channel/Android/hyyngame/mainTemplate.gradle        |   61 +++++++++++++++
 Channel/Android/hyyngame/baseProjectTemplate.gradle |   33 ++++++++
 4 files changed, 182 insertions(+), 0 deletions(-)

diff --git a/Channel/Android/hyyngame/baseProjectTemplate.gradle b/Channel/Android/hyyngame/baseProjectTemplate.gradle
new file mode 100644
index 0000000..ba07618
--- /dev/null
+++ b/Channel/Android/hyyngame/baseProjectTemplate.gradle
@@ -0,0 +1,33 @@
+// 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:4.0.1'
+			classpath 'com.google.gms:google-services:4.3.10'
+            **BUILD_SCRIPT_DEPS**
+        }
+    }
+
+    repositories {**ARTIFACTORYREPOSITORY**
+        google()
+        jcenter()
+        flatDir {
+            dirs "${project(':unityLibrary').projectDir}/libs"
+        }
+    }
+}
+
+task clean(type: Delete) {
+    delete rootProject.buildDir
+}
diff --git a/Channel/Android/hyyngame/gradleTemplate.properties b/Channel/Android/hyyngame/gradleTemplate.properties
new file mode 100644
index 0000000..b79e0bd
--- /dev/null
+++ b/Channel/Android/hyyngame/gradleTemplate.properties
@@ -0,0 +1,7 @@
+org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
+org.gradle.parallel=true
+android.useAndroidX=true
+## Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=true
+unityStreamingAssets=.unity3d
+**ADDITIONAL_PROPERTIES**
diff --git a/Channel/Android/hyyngame/launcherTemplate.gradle b/Channel/Android/hyyngame/launcherTemplate.gradle
new file mode 100644
index 0000000..7512dce
--- /dev/null
+++ b/Channel/Android/hyyngame/launcherTemplate.gradle
@@ -0,0 +1,81 @@
+apply plugin: 'com.android.application'
+
+dependencies {
+    implementation project(':unityLibrary')
+    }
+
+android {
+    compileSdkVersion **APIVERSION**
+    buildToolsVersion '33.0.0'
+    repositories {
+        flatDir {
+            dirs 'libs'
+        }
+    }
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_1_8
+        targetCompatibility JavaVersion.VERSION_1_8
+    }
+
+    packagingOptions {exclude 'META-INF/rxjava.properties'}
+    
+    defaultConfig {
+        minSdkVersion **MINSDKVERSION**
+        targetSdkVersion **TARGETSDKVERSION**
+        applicationId '**APPLICATIONID**'
+        ndk {
+            abiFilters **ABIFILTERS**
+        }
+        versionCode **VERSIONCODE**
+        versionName '**VERSIONNAME**'
+    }
+
+    aaptOptions {
+        noCompress = ['.unity3d', '.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ')
+        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
+    }**SIGN**
+
+    lintOptions {
+        abortOnError false
+        checkReleaseBuilds false
+    }
+
+    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**
+**BUILT_APK_LOCATION**
+    bundle {
+        language {
+            enableSplit = false
+        }
+        density {
+            enableSplit = false
+        }
+        abi {
+            enableSplit = true
+        }
+    }
+}**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**
+
+task copyJsonFile {
+    copy {
+        System.out.println("copy googlejson===============");
+        delete("./google-services.json")
+        from('../../../Assets/Plugins/Android/')
+        into('./')
+        include("google-services.json")
+    }
+}
+
+apply plugin: 'com.google.gms.google-services'
+apply plugin: 'com.google.firebase.crashlytics'
\ No newline at end of file
diff --git a/Channel/Android/hyyngame/mainTemplate.gradle b/Channel/Android/hyyngame/mainTemplate.gradle
new file mode 100644
index 0000000..8f28389
--- /dev/null
+++ b/Channel/Android/hyyngame/mainTemplate.gradle
@@ -0,0 +1,61 @@
+apply plugin: 'com.android.library'
+//**APPLY_PLUGINS**
+apply from: 'deps.gradle'
+
+dependencies {
+    implementation fileTree(dir: 'libs', include: ['*.jar'])
+    implementation('androidx.appcompat:appcompat:1.0.0') {
+        force = true
+    }
+
+    implementation(name: 'ald_v1.6.9', ext: 'aar') //x.x.x涓哄叿浣撶増鏈�
+    implementation("com.android.billingclient:billing:5.0.0")
+    implementation 'com.google.android.gms:play-services-auth:20.1.0'
+    implementation 'androidx.percentlayout:percentlayout:1.0.0'
+    implementation 'com.facebook.android:facebook-android-sdk:[13,14)'
+    implementation 'com.facebook.android:facebook-share:[13,14)'
+    implementation 'com.appsflyer:af-android-sdk:6.9.0'
+    implementation 'com.android.installreferrer:installreferrer:2.2'
+    implementation platform('com.google.firebase:firebase-bom:30.4.0') {
+        exclude group: 'com.android.support', module: 'support-compat'
+    }
+    implementation 'com.google.android.play:review:2.0.1'
+    implementation 'com.google.firebase:firebase-analytics'
+    implementation 'com.navercorp.nid:oauth-jdk8:5.1.1'
+    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2'
+    implementation 'com.google.android.play:review:2.0.1'
+    implementation 'com.google.firebase:firebase-crashlytics:18.2.9'
+**DEPS**}
+
+android {
+    compileSdkVersion **APIVERSION**
+    buildToolsVersion '33.0.0'
+
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_1_8
+        targetCompatibility JavaVersion.VERSION_1_8
+    }
+    
+    packagingOptions {exclude 'META-INF/rxjava.properties'}
+    
+    defaultConfig {
+        minSdkVersion **MINSDKVERSION**
+        targetSdkVersion **TARGETSDKVERSION**
+        ndk {
+            abiFilters **ABIFILTERS**
+        }
+        versionCode **VERSIONCODE**
+        versionName '**VERSIONNAME**'
+        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
+    }
+
+    lintOptions {
+        abortOnError false
+        checkReleaseBuilds false
+    }
+
+    aaptOptions {
+        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
+    }**PACKAGING_OPTIONS**
+}**REPOSITORIES****SOURCE_BUILD_SETUP**
+**EXTERNAL_SOURCES**

--
Gitblit v1.8.0