Jelajahi Sumber

build(android): 更新项目配置和依赖版本

- 在 gradle-wrapper.properties 中添加系统属性以启用 TLSv1.2
- 在 settings.gradle 中配置自定义 Maven 仓库和依赖解析管理
- 更新 common.android.bundle 中的版本号至 1.0.0
-调整组件属性和事件处理注册方式
xuqm 1 Minggu lalu
induk
melakukan
ee16d21c75

+ 1 - 0
android/gradle/wrapper/gradle-wrapper.properties

@@ -5,3 +5,4 @@ networkTimeout=10000
 validateDistributionUrl=true
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
+systemProp.https.protocols=TLSv1.2

+ 16 - 2
android/settings.gradle

@@ -1,6 +1,20 @@
-pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
+pluginManagement {
+    includeBuild("../node_modules/@react-native/gradle-plugin")
+    repositories {
+        maven { url "https://nexus-inner.51trust.com/repository/android/" }
+        gradlePluginPortal() // 如需官方插件
+    }
+}
 plugins { id("com.facebook.react.settings") }
+// 强制所有依赖解析走你的仓库
+dependencyResolutionManagement {
+    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) // 禁止其他仓库
+    repositories {
+        maven { url "https://nexus-inner.51trust.com/repository/android/" }
+    }
+}
+
 extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
 rootProject.name = 'YiwangxinMultip'
 include ':app'
-includeBuild('../node_modules/@react-native/gradle-plugin')
+includeBuild('../node_modules/@react-native/gradle-plugin')

File diff ditekan karena terlalu besar
+ 1 - 1
bundle/android/common/common.android.bundle


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini