hch
2023-12-10 3f6500b4a32a00f2fb9e7489c4f2702b9b003404
0312 unity打包清单和gradle 从sdk拷贝
13个文件已添加
591 ■■■■■ 已修改文件
Channel/Android/mlgtgame/LauncherManifest.xml 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame/baseProjectTemplate.gradle 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame/google-services.json 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame/gradleTemplate.properties 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame/launcherTemplate.gradle 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame/mainTemplate.gradle 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame_1wjo/LauncherManifest.xml 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame_1wjo/baseProjectTemplate.gradle 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame_1wjo/google-services.json 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame_1wjo/gradleTemplate.properties 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame_1wjo/launcherTemplate.gradle 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame_1wjo/mainTemplate.gradle 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame_quick/mainTemplate.gradle 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/Android/mlgtgame/LauncherManifest.xml
New file
@@ -0,0 +1,34 @@
<?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"
    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/mlgtgame/baseProjectTemplate.gradle
New file
@@ -0,0 +1,32 @@
// 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.android.tools.build:gradle:4.0.1'
            classpath "com.google.gms:google-services:4.3.15"
            **BUILD_SCRIPT_DEPS**
        }
    }
    repositories {**ARTIFACTORYREPOSITORY**
        google()
        jcenter()
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}
Channel/Android/mlgtgame/google-services.json
New file
@@ -0,0 +1,63 @@
{
  "project_info": {
    "project_number": "966789831936",
    "project_id": "djmx-android",
    "storage_bucket": "djmx-android.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:966789831936:android:f381abd6b3cbbf70ff67e5",
        "android_client_info": {
          "package_name": "com.hhxk.djmx"
        }
      },
      "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
        }
      ],
      "api_key": [
        {
          "current_key": "AIzaSyCKWCtHXjIkHtnnKcoua1yf-YXxXmrXla8"
        }
      ],
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": [
            {
              "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com",
              "client_type": 3
            }
          ]
        }
      }
    }
  ],
  "configuration_version": "1"
}
Channel/Android/mlgtgame/gradleTemplate.properties
New file
@@ -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**
Channel/Android/mlgtgame/launcherTemplate.gradle
New file
@@ -0,0 +1,76 @@
apply plugin: 'com.android.application'
dependencies {
    implementation project(':unityLibrary')
    }
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**
        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'
Channel/Android/mlgtgame/mainTemplate.gradle
New file
@@ -0,0 +1,64 @@
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
    }
    //sdk所需依赖
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
    //firebase
    implementation(platform("com.google.firebase:firebase-bom:32.2.2"))
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-auth'
    // google
    implementation 'com.google.android.gms:play-services-auth:20.6.0'
    // facebook
    implementation 'com.facebook.android:facebook-login:16.2.0'
    implementation 'androidx.activity:activity-compose:1.3.1'
    // google 支付
    implementation 'com.android.billingclient:billing:6.0.1'
    implementation 'androidx.fragment:fragment:1.3.2'
    // adjust (V1.0.2新增)
    implementation 'com.adjust.sdk:adjust-android:4.33.5'
    implementation 'com.android.installreferrer:installreferrer:2.2'
    implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
    implementation 'com.google.android.gms:play-services-appset:16.0.2'
**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**
Channel/Android/mlgtgame_1wjo/LauncherManifest.xml
New file
@@ -0,0 +1,34 @@
<?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"
    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/mlgtgame_1wjo/baseProjectTemplate.gradle
New file
@@ -0,0 +1,32 @@
// 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.android.tools.build:gradle:4.0.1'
            classpath "com.google.gms:google-services:4.3.15"
            **BUILD_SCRIPT_DEPS**
        }
    }
    repositories {**ARTIFACTORYREPOSITORY**
        google()
        jcenter()
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}
Channel/Android/mlgtgame_1wjo/google-services.json
New file
@@ -0,0 +1,63 @@
{
  "project_info": {
    "project_number": "966789831936",
    "project_id": "djmx-android",
    "storage_bucket": "djmx-android.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:966789831936:android:f381abd6b3cbbf70ff67e5",
        "android_client_info": {
          "package_name": "com.hhxk.djmx"
        }
      },
      "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
        }
      ],
      "api_key": [
        {
          "current_key": "AIzaSyCKWCtHXjIkHtnnKcoua1yf-YXxXmrXla8"
        }
      ],
      "services": {
        "appinvite_service": {
          "other_platform_oauth_client": [
            {
              "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com",
              "client_type": 3
            }
          ]
        }
      }
    }
  ],
  "configuration_version": "1"
}
Channel/Android/mlgtgame_1wjo/gradleTemplate.properties
New file
@@ -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**
Channel/Android/mlgtgame_1wjo/launcherTemplate.gradle
New file
@@ -0,0 +1,76 @@
apply plugin: 'com.android.application'
dependencies {
    implementation project(':unityLibrary')
    }
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**
        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'
Channel/Android/mlgtgame_1wjo/mainTemplate.gradle
New file
@@ -0,0 +1,64 @@
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
    }
    //sdk所需依赖
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
    //firebase
    implementation(platform("com.google.firebase:firebase-bom:32.2.2"))
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-auth'
    // google
    implementation 'com.google.android.gms:play-services-auth:20.6.0'
    // facebook
    implementation 'com.facebook.android:facebook-login:16.2.0'
    implementation 'androidx.activity:activity-compose:1.3.1'
    // google 支付
    implementation 'com.android.billingclient:billing:6.0.1'
    implementation 'androidx.fragment:fragment:1.3.2'
    // adjust (V1.0.2新增)
    implementation 'com.adjust.sdk:adjust-android:4.33.5'
    implementation 'com.android.installreferrer:installreferrer:2.2'
    implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
    implementation 'com.google.android.gms:play-services-appset:16.0.2'
**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**
Channel/Android/mlgtgame_quick/mainTemplate.gradle
New file
@@ -0,0 +1,39 @@
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
apply plugin: 'com.android.library'
//**APPLY_PLUGINS**
apply from: 'deps.gradle'
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
**DEPS**}
android {
    compileSdkVersion **APIVERSION**
    buildToolsVersion '**BUILDTOOLS**'
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }
    lintOptions {
        abortOnError false
    }
    aaptOptions {
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}**REPOSITORIES****SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**