Browse Source

修改机瞄枪准星,提交安卓打包设置问题

灯芯 1 month ago
parent
commit
8fa193d023

+ 8 - 0
snipershooting/ShootSniper/Assets/Plugins/Android.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 6f47f6993850d0e4485af1cfe9697aa3
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 61 - 0
snipershooting/ShootSniper/Assets/Plugins/Android/launcherTemplate.gradle

@@ -0,0 +1,61 @@
+apply plugin: 'com.android.application'
+
+dependencies {
+    implementation project(':unityLibrary')
+    }
+
+android {
+    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**

+ 7 - 0
snipershooting/ShootSniper/Assets/Plugins/Android/launcherTemplate.gradle.meta

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

+ 41 - 0
snipershooting/ShootSniper/Assets/Plugins/Android/mainTemplate.gradle

@@ -0,0 +1,41 @@
+apply plugin: 'com.android.library'
+**APPLY_PLUGINS**
+
+dependencies {
+    implementation fileTree(dir: 'libs', include: ['*.jar'])
+**DEPS**}
+
+android {
+    ndkPath "**NDKPATH**"
+
+    compileSdkVersion **APIVERSION**
+    buildToolsVersion '**BUILDTOOLS**'
+
+    compileOptions {
+        sourceCompatibility JavaVersion.VERSION_11
+        targetCompatibility JavaVersion.VERSION_11
+    }
+
+    defaultConfig {
+        minSdkVersion **MINSDKVERSION**
+        targetSdkVersion **TARGETSDKVERSION**
+        ndk {
+            abiFilters **ABIFILTERS**
+        }
+        versionCode **VERSIONCODE**
+        versionName '**VERSIONNAME**'
+        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
+    }
+
+    lintOptions {
+        abortOnError 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**

+ 7 - 0
snipershooting/ShootSniper/Assets/Plugins/Android/mainTemplate.gradle.meta

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

+ 26 - 0
snipershooting/ShootSniper/Assets/Plugins/Android/settingsTemplate.gradle

@@ -0,0 +1,26 @@
+pluginManagement {
+    repositories {
+        **ARTIFACTORYREPOSITORY**
+        gradlePluginPortal()
+        google()
+        mavenCentral()
+    }
+}
+
+include ':launcher', ':unityLibrary'
+**INCLUDES**
+
+dependencyResolutionManagement {
+    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
+    repositories {
+        **ARTIFACTORYREPOSITORY**
+         maven { url 'https://maven.aliyun.com/repository/public' }
+        maven { url 'https://maven.aliyun.com/repository/google' }
+        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
+        google()
+        mavenCentral()
+        flatDir {
+            dirs "${project(':unityLibrary').projectDir}/libs"
+        }
+    }
+}

+ 7 - 0
snipershooting/ShootSniper/Assets/Plugins/Android/settingsTemplate.gradle.meta

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

+ 2 - 16
snipershooting/ShootSniper/Assets/ShootGame/Resources_moved/Prefabs/ArmWeapon_Camouflage_Gew98Noscope_Common.prefab

@@ -87,25 +87,13 @@ MonoBehaviour:
   crosshairScale50: {x: 0.5, y: 0.5, z: 0.5}
   eyeCamFOV: 50
   eyeCamPosZ: 0.95
-  scopeFOVMin: 15
   scopeFOVMax: 15
   rotateSpeedRatio: {x: 0.004, y: 0.004}
-  shootIncreaseRate: 1
   bulletSpeed: 150
-  shootingDelay: 0.5
-  bulletsInOneShoot: 3
-  oneBulletShootDelay: 0.15
-  baseBodyDamage: 100
-  changeMagazineSpeed: 1.5
-  fireSpeed: 0.7
-  recoilOffset: {x: 0.2, y: 1}
-  recoilOffsetTime: 0.5
   shootingPreparationSpeed: 1.5
   ZoomInCallDelay: 0.75
   shootingFocusDelay: 0.3
   shootingFocusDuration: 0.4
-  partsOfGunAttach: {fileID: 0}
-  glove: {fileID: 0}
   needReload: 1
   reloadSoundDelay: 0.4
   reloadSound: {fileID: 0}
@@ -115,8 +103,6 @@ MonoBehaviour:
   muzzleBulletEffectPrefab: {fileID: 0}
   mShooter: {fileID: 0}
   currHitDamage: 0
-  currCritRate: 0
-  accuracyRate: 0
   parts:
   - partType: 5
     weaponPart: {fileID: 6975927796630297913}
@@ -834,7 +820,7 @@ Transform:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 1958014135254810}
   serializedVersion: 2
-  m_LocalRotation: {x: 0.01771337, y: 0.010586927, z: 0.008011983, w: 0.99975497}
+  m_LocalRotation: {x: 0.019110655, y: 0.010749675, z: 0.007993454, w: 0.99972767}
   m_LocalPosition: {x: 0.0006969085, y: -0.0063900542, z: -0.00019977395}
   m_LocalScale: {x: 0.038517155, y: 0.038517155, z: 0.038517155}
   m_ConstrainProportionsScale: 0
@@ -842,7 +828,7 @@ Transform:
   - {fileID: 9107654371220732856}
   - {fileID: 4753170983272160}
   m_Father: {fileID: 4947203106559464}
-  m_LocalEulerAnglesHint: {x: 2.02, y: 1.23, z: 0.94}
+  m_LocalEulerAnglesHint: {x: 2.18, y: 1.25, z: 0.94}
 --- !u!1 &1965499634771456
 GameObject:
   m_ObjectHideFlags: 0

+ 4 - 8
snipershooting/ShootSniper/ProjectSettings/ProjectSettings.asset

@@ -139,8 +139,6 @@ PlayerSettings:
   vulkanEnableLateAcquireNextImage: 0
   vulkanEnableCommandBufferRecycling: 1
   loadStoreDebugModeEnabled: 0
-  visionOSBundleVersion: 1.0
-  tvOSBundleVersion: 1.0
   bundleVersion: 0.1
   preloadedAssets: []
   metroInputSource: 0
@@ -235,7 +233,6 @@ PlayerSettings:
   iOSMetalForceHardShadows: 0
   metalEditorSupport: 1
   metalAPIValidation: 1
-  metalCompileShaderBinary: 0
   iOSRenderExtraFrameOnPause: 0
   iosCopyPluginsCodeInsteadOfSymlink: 0
   appleDeveloperTeamID: 
@@ -255,10 +252,10 @@ PlayerSettings:
   templateDefaultScene: Assets/Scenes/SampleScene.unity
   useCustomMainManifest: 0
   useCustomLauncherManifest: 0
-  useCustomMainGradleTemplate: 0
-  useCustomLauncherGradleManifest: 0
+  useCustomMainGradleTemplate: 1
+  useCustomLauncherGradleManifest: 1
   useCustomBaseGradleTemplate: 0
-  useCustomGradlePropertiesTemplate: 0
+  useCustomGradlePropertiesTemplate: 1
   useCustomGradleSettingsTemplate: 0
   useCustomProguardFile: 0
   AndroidTargetArchitectures: 3
@@ -281,7 +278,7 @@ PlayerSettings:
     banner: {fileID: 0}
   androidGamepadSupportLevel: 0
   chromeosInputEmulation: 1
-  AndroidMinifyRelease: 0
+  AndroidMinifyRelease: 1
   AndroidMinifyDebug: 0
   AndroidValidateAppBundleSize: 1
   AndroidAppBundleSizeToValidate: 150
@@ -903,7 +900,6 @@ PlayerSettings:
   metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0}
   metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1}
   metroSplashScreenUseBackgroundColor: 0
-  syncCapabilities: 0
   platformCapabilities: {}
   metroTargetDeviceFamilies: {}
   metroFTAName: