少年修仙传客户端基础资源
hch
2024-07-22 c56a754d9662eb7dd02799491e2498d6263d608b
0312 新引擎配置
5个文件已修改
169 ■■■■■ 已修改文件
Assets/Plugins/Android/LauncherManifest.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Android/baseProjectTemplate.gradle 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Android/google-services.json 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Android/launcherTemplate.gradle 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Android/mainTemplate.gradle 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Android/LauncherManifest.xml
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player"
Assets/Plugins/Android/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: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"
        }
    }
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) {
Assets/Plugins/Android/google-services.json
@@ -1,60 +1,26 @@
{
  "project_info": {
    "project_number": "966789831936",
    "project_id": "djmx-android",
    "storage_bucket": "djmx-android.appspot.com"
    "project_number": "708247206222",
    "project_id": "yndjmxtwo",
    "storage_bucket": "yndjmxtwo.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:966789831936:android:f381abd6b3cbbf70ff67e5",
        "mobilesdk_app_id": "1:708247206222:android:58810b5ccda04e1746c61f",
        "android_client_info": {
          "package_name": "com.hhxk.djmx"
          "package_name": "com.vndjgp.zxj"
        }
      },
      "oauth_client": [
        {
          "client_id": "966789831936-7kvc289ui991rool953ms9btb7dcihuv.apps.googleusercontent.com",
          "client_type": 1,
          "android_info": {
            "package_name": "com.hhxk.djmx",
            "certificate_hash": "182d414a78abee730625ac28dc5354e71e3cf27f"
          }
        },
        {
          "client_id": "966789831936-8brse3va05r8vons4809mr1nqdf7kkcs.apps.googleusercontent.com",
          "client_type": 1,
          "android_info": {
            "package_name": "com.hhxk.djmx",
            "certificate_hash": "0c2693d70e106a479c2a6608f7249d81a948576f"
          }
        },
        {
          "client_id": "966789831936-oq3boodul1do38e3p91a8on3bi9ob6tb.apps.googleusercontent.com",
          "client_type": 1,
          "android_info": {
            "package_name": "com.hhxk.djmx",
            "certificate_hash": "fe6b04b8caab520c5bb652a0fe27e54c1497de7f"
          }
        },
        {
          "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com",
          "client_type": 3
        }
      ],
      "oauth_client": [],
      "api_key": [
        {
          "current_key": "AIzaSyCKWCtHXjIkHtnnKcoua1yf-YXxXmrXla8"
          "current_key": "AIzaSyDWaH1QMROwI4m5jubv8F1yvX0Wx1J4qgU"
        }
      ],
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": [
            {
              "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com",
              "client_type": 3
            }
          ]
          "other_platform_oauth_client": []
        }
      }
    }
Assets/Plugins/Android/launcherTemplate.gradle
@@ -5,16 +5,17 @@
    }
android {
    ndkPath "**NDKPATH**"
    compileSdkVersion **APIVERSION**
    buildToolsVersion '33.0.0'
    buildToolsVersion '34.0.0'
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }
    packagingOptions {exclude 'META-INF/rxjava.properties'}
    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
@@ -28,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 {
@@ -39,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**
Assets/Plugins/Android/mainTemplate.gradle
@@ -1,44 +1,49 @@
apply plugin: 'com.android.library'
//**APPLY_PLUGINS**
apply from: 'deps.gradle'
**APPLY_PLUGINS**
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation('androidx.appcompat:appcompat:1.0.0') {
        force = true
    }
    //sdk所需依赖
    implementation(name: 'lp_v1.1.3', ext: 'aar')
    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-login:latest.release'
    implementation 'com.facebook.android:facebook-share:latest.release'
    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'
    implementation platform('com.google.firebase:firebase-bom:30.4.0') {
    api 'androidx.annotation:annotation:1.5.0'
    api 'androidx.core:core:1.6.0'
    api 'androidx.percentlayout:percentlayout:1.0.0'
    //google ID
    implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
    //firebase
    implementation 'com.google.firebase:firebase-analytics'
    implementation platform('com.google.firebase:firebase-bom:31.2.2') {
        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**}
    //base  theme
    api 'androidx.appcompat:appcompat:1.2.0'
    //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评价
    //facebook能力
    implementation 'com.facebook.android:facebook-login:latest.release'
    implementation 'com.facebook.android:facebook-share:latest.release'**DEPS**}
android {
    ndkPath "**NDKPATH**"
    compileSdkVersion **APIVERSION**
    buildToolsVersion '33.0.0'
    buildToolsVersion '34.0.0'
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }
    packagingOptions {exclude 'META-INF/rxjava.properties'}
    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
@@ -56,7 +61,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**