Преглед на файлове

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

- 在 gradle-wrapper.properties 中添加系统属性以启用 TLSv1.2
- 在 settings.gradle 中配置自定义 Maven 仓库和依赖解析管理
- 更新 common.android.bundle 中的版本号至 1.0.0
-调整组件属性和事件处理注册方式
xuqm преди 1 седмица
родител
ревизия
ee16d21c75
променени са 3 файла, в които са добавени 18 реда и са изтрити 3 реда
  1. 1 0
      android/gradle/wrapper/gradle-wrapper.properties
  2. 16 2
      android/settings.gradle
  3. 1 1
      bundle/android/common/common.android.bundle

+ 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')

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
bundle/android/common/common.android.bundle


Някои файлове не бяха показани, защото твърде много файлове са промени