Assets/Plugins/Android/AndroidManifest.xml
New file @@ -0,0 +1,17 @@ <?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"> <application android:allowNativeHeapPointerTagging="false"> <activity android:name="com.secondworld.sdk.GameActivity" android:theme="@style/UnityThemeSelector"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <meta-data android:name="unityplayer.UnityActivity" android:value="true" /> </activity> </application> </manifest> Assets/Plugins/Android/AndroidManifest.xml.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: 44ea7b20ff03e7c479f5a35eac4f2ef4 TextScriptImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/LauncherManifest.xml
New file @@ -0,0 +1,16 @@ <?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"/> </manifest> Assets/Plugins/Android/LauncherManifest.xml.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: 8a4d7dd9f96b75943b0c4acfef099d2b TextScriptImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/baseProjectTemplate.gradle
New file @@ -0,0 +1,16 @@ 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.android.tools.build' version "7.3.0" apply false id "com.google.gms.google-services" version "4.3.10" apply false id 'com.google.firebase.crashlytics' version '2.8.1' apply false **BUILD_SCRIPT_DEPS** } task clean(type: Delete) { delete rootProject.buildDir } Assets/Plugins/Android/baseProjectTemplate.gradle.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: 00144d50c3d17694181499dca67f433b DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/google-services.json
New file @@ -0,0 +1,29 @@ { "project_info": { "project_number": "708247206222", "project_id": "yndjmxtwo", "storage_bucket": "yndjmxtwo.appspot.com" }, "client": [ { "client_info": { "mobilesdk_app_id": "1:708247206222:android:58810b5ccda04e1746c61f", "android_client_info": { "package_name": "com.vndjgp.zxj" } }, "oauth_client": [], "api_key": [ { "current_key": "AIzaSyDWaH1QMROwI4m5jubv8F1yvX0Wx1J4qgU" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [] } } } ], "configuration_version": "1" } Assets/Plugins/Android/google-services.json.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: 2cc0c99768798a84996fbb2fdff4e64e TextScriptImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/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** Assets/Plugins/Android/gradleTemplate.properties.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: 7122c7459c6f3db4ea574532ca30409e DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/launcherTemplate.gradle
New file @@ -0,0 +1,76 @@ apply plugin: 'com.android.application' dependencies { implementation project(':unityLibrary') } android { ndkPath "**NDKPATH**" compileSdkVersion **APIVERSION** buildToolsVersion '34.0.0' compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } 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** proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG** jniDebuggable true } release { minifyEnabled **MINIFY_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' Assets/Plugins/Android/launcherTemplate.gradle.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: d9277a67d5c1ff240911eb589603e186 DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs.meta
New file @@ -0,0 +1,8 @@ fileFormatVersion: 2 guid: 8ee33a9b24450ac4abb781fd3fb2bc46 folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/arm64-v8a.meta
New file @@ -0,0 +1,8 @@ fileFormatVersion: 2 guid: 4f4636136e515d743914c7338ac63785 folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/arm64-v8a/libopus.soBinary files differ
Assets/Plugins/Android/libs/arm64-v8a/libopus.so.meta
New file @@ -0,0 +1,33 @@ fileFormatVersion: 2 guid: 419f0e930e89f844280e3ee43ea3bd69 PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Android: Android second: enabled: 1 settings: CPU: ARM64 - first: Any: second: enabled: 0 settings: {} - first: Editor: Editor second: enabled: 0 settings: DefaultValueInitialized: true userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/armeabi-v7a.meta
New file @@ -0,0 +1,8 @@ fileFormatVersion: 2 guid: 49800597deef82e4a93943235d7210b2 folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/armeabi-v7a/liblzma.soBinary files differ
Assets/Plugins/Android/libs/armeabi-v7a/liblzma.so.meta
New file @@ -0,0 +1,33 @@ fileFormatVersion: 2 guid: 2fe915c5611889d429d95c04cac4aa32 PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Android: Android second: enabled: 1 settings: CPU: ARMv7 - first: Any: second: enabled: 0 settings: {} - first: Editor: Editor second: enabled: 0 settings: DefaultValueInitialized: true userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/armeabi-v7a/libopus.soBinary files differ
Assets/Plugins/Android/libs/armeabi-v7a/libopus.so.meta
New file @@ -0,0 +1,33 @@ fileFormatVersion: 2 guid: 4acfd5fb885680b4e959aece41dee432 PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Android: Android second: enabled: 1 settings: CPU: ARMv7 - first: Any: second: enabled: 0 settings: {} - first: Editor: Editor second: enabled: 0 settings: DefaultValueInitialized: true userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/x86.meta
New file @@ -0,0 +1,8 @@ fileFormatVersion: 2 guid: 553bb5fb28aa09e48a971dc35918c4bc folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/x86/liblzma.soBinary files differ
Assets/Plugins/Android/libs/x86/liblzma.so.meta
New file @@ -0,0 +1,33 @@ fileFormatVersion: 2 guid: ed152573161e91a4e8f04836e68a43c1 PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Android: Android second: enabled: 1 settings: CPU: x86 - first: Any: second: enabled: 0 settings: {} - first: Editor: Editor second: enabled: 0 settings: DefaultValueInitialized: true userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/x86/libopus.soBinary files differ
Assets/Plugins/Android/libs/x86/libopus.so.meta
New file @@ -0,0 +1,33 @@ fileFormatVersion: 2 guid: 5ca6c04343670924d8b2d5d363587f1d PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Android: Android second: enabled: 1 settings: CPU: x86 - first: Any: second: enabled: 0 settings: {} - first: Editor: Editor second: enabled: 0 settings: DefaultValueInitialized: true userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/x86_64.meta
New file @@ -0,0 +1,8 @@ fileFormatVersion: 2 guid: 9a4850649b73bd54699a2c41dafb982e folderAsset: yes DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/libs/x86_64/libopus.soBinary files differ
Assets/Plugins/Android/libs/x86_64/libopus.so.meta
New file @@ -0,0 +1,32 @@ fileFormatVersion: 2 guid: 8c2116649829e7d44a38241c96d0fc03 PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Android: Android second: enabled: 0 settings: {} - first: Any: second: enabled: 0 settings: {} - first: Editor: Editor second: enabled: 0 settings: DefaultValueInitialized: true userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/mainTemplate.gradle
New file @@ -0,0 +1,71 @@ apply plugin: 'com.android.library' **APPLY_PLUGINS** dependencies { 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' 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' } //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 '34.0.0' compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } 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 { noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ') ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~" }**PACKAGING_OPTIONS** } **IL_CPP_BUILD_SETUP** **SOURCE_BUILD_SETUP** **EXTERNAL_SOURCES** Assets/Plugins/Android/mainTemplate.gradle.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: b2f2a20fb46444e4fa7af5d82a94bba1 DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/settingsTemplate.gradle
New file @@ -0,0 +1,37 @@ pluginManagement { repositories { **ARTIFACTORYREPOSITORY** maven { url "https://jitpack.io" } maven { url 'https://maven.aliyun.com/repository/releases' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/central' } maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } maven { url 'https://maven.aliyun.com/repository/public' } gradlePluginPortal() google() mavenCentral() } } include ':launcher', ':unityLibrary' **INCLUDES** dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) repositories { **ARTIFACTORYREPOSITORY** maven { url "https://jitpack.io" } maven { url 'https://maven.aliyun.com/repository/releases' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/central' } maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } maven { url 'https://maven.aliyun.com/repository/public' } google() mavenCentral() flatDir { dirs "${project(':unityLibrary').projectDir}/libs" } } } Assets/Plugins/Android/settingsTemplate.gradle.meta
New file @@ -0,0 +1,7 @@ fileFormatVersion: 2 guid: 8fdf9373e35b3e342abe8790e5a4ff73 DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: Assets/Plugins/Android/unityopus.aarBinary files differ
Assets/Plugins/Android/unityopus.aar.meta
New file @@ -0,0 +1,32 @@ fileFormatVersion: 2 guid: 9e68815c63442724c9cd2a9e7f06b139 PluginImporter: externalObjects: {} serializedVersion: 2 iconMap: {} executionOrder: {} defineConstraints: [] isPreloaded: 0 isOverridable: 0 isExplicitlyReferenced: 0 validateReferences: 1 platformData: - first: Android: Android second: enabled: 1 settings: {} - first: Any: second: enabled: 0 settings: {} - first: Editor: Editor second: enabled: 0 settings: DefaultValueInitialized: true userData: assetBundleName: assetBundleVariant: