更新安卓相关配置

main
Yurui 2025-12-26 12:22:01 +08:00
parent d8a6ebd2db
commit 74fda7a086
9 changed files with 78 additions and 29 deletions

View File

@ -1,8 +1,4 @@
org.gradle.jvmargs=-Xmx**JVM_HEAP_SIZE**M
org.gradle.parallel=true
unityStreamingAssets=**STREAMING_ASSETS**
# Android Resolver Properties Start
android.useAndroidX=true
android.enableJetifier=true
# Android Resolver Properties End
**ADDITIONAL_PROPERTIES**

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 121e8d50b14fda64db5c8d3203439b7a
guid: d54210e55e856564ab9e8564add37d2f
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,62 @@
apply plugin: 'com.android.application'
dependencies {
implementation project(':unityLibrary')
}
android {
namespace "**NAMESPACE**"
ndkPath "**NDKPATH**"
compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion **TARGETSDKVERSION**
applicationId '**APPLICATIONID**'
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
}
aaptOptions {
noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
}**SIGN**
lintOptions {
abortOnError 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**

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 44953f24a5a373547b236ac43a1dd020
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -3,24 +3,8 @@ apply plugin: 'com.android.library'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
implementation 'com.adjust.sdk:adjust-android:5.4.1' // Assets/Adjust/Native/Editor/Dependencies.xml:5
implementation 'com.adjust.sdk:adjust-android-meta-referrer:5.4.1' // Assets/Adjust/Native/Editor/Dependencies.xml:19
implementation 'com.android.installreferrer:installreferrer:2.2' // Assets/Adjust/Native/Editor/Dependencies.xml:16
implementation 'com.google.android.gms:play-services-ads-identifier:18.2.0' // Assets/Adjust/Native/Editor/Dependencies.xml:10
implementation 'com.google.android.gms:play-services-appset:16.1.0' // Assets/Adjust/Native/Editor/Dependencies.xml:13
// Android Resolver Dependencies End
**DEPS**}
// Android Resolver Exclusions Start
android {
packagingOptions {
exclude ('/lib/armeabi/*' + '*')
exclude ('/lib/mips/*' + '*')
exclude ('/lib/mips64/*' + '*')
}
}
// Android Resolver Exclusions End
android {
namespace "com.unity3d.player"
ndkPath "**NDKPATH**"

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 24661be9c393731438a807f67101ef7d
guid: 31eba0f6936913c479f9ba519f7d897f
DefaultImporter:
externalObjects: {}
userData:

View File

@ -16,10 +16,6 @@ dependencyResolutionManagement {
**ARTIFACTORYREPOSITORY**
google()
mavenCentral()
// Android Resolver Repos Start
def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
mavenLocal()
// Android Resolver Repos End
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: fc391b8901ea02741a66eb9e810bad6d
guid: 20667022214db404895cc7c447bfee95
DefaultImporter:
externalObjects: {}
userData:

View File

@ -82,6 +82,7 @@ PlayerSettings:
androidMinimumWindowHeight: 300
androidFullscreenMode: 1
androidAutoRotationBehavior: 1
androidPredictiveBackSupport: 1
defaultIsNativeResolution: 1
macRetinaSupport: 1
runInBackground: 1
@ -194,8 +195,10 @@ PlayerSettings:
strictShaderVariantMatching: 0
VertexChannelCompressionMask: 81
iPhoneSdkVersion: 988
iOSSimulatorArchitecture: 0
iOSTargetOSVersionString: 12.0
tvOSSdkVersion: 0
tvOSSimulatorArchitecture: 0
tvOSRequireExtendedGameController: 0
tvOSTargetOSVersionString: 12.0
VisionOSSdkVersion: 0
@ -263,7 +266,7 @@ PlayerSettings:
useCustomMainManifest: 1
useCustomLauncherManifest: 0
useCustomMainGradleTemplate: 1
useCustomLauncherGradleManifest: 0
useCustomLauncherGradleManifest: 1
useCustomBaseGradleTemplate: 0
useCustomGradlePropertiesTemplate: 1
useCustomGradleSettingsTemplate: 1
@ -713,6 +716,7 @@ PlayerSettings:
switchSocketBufferEfficiency: 4
switchSocketInitializeEnabled: 1
switchNetworkInterfaceManagerInitializeEnabled: 1
switchDisableHTCSPlayerConnection: 0
switchUseNewStyleFilepaths: 0
switchUseLegacyFmodPriorities: 0
switchUseMicroSleepForYield: 1
@ -918,7 +922,7 @@ PlayerSettings:
XboxOneOverrideIdentityPublisher:
vrEditorSettings: {}
cloudServicesEnabled:
Purchasing: 1
Purchasing: 0
luminIcon:
m_Name:
m_ModelFolderPath: