Skip to content

Commit f6d6567

Browse files
committed
fix: rn 0.71.3 for android
1 parent 5d138ee commit f6d6567

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797
## Development
9898

99-
目前在 MacOS 下开发,在 iOS 为 14+ 的 iPhone Simulator/iPhone 14、Android 9.0 的 AVD 模拟器/Mi Phone 均编译成功运行。
99+
目前在 MacOS 下开发,在 iOS 为 16+ 的 iPhone Simulator/iPhone 14、Android 9.0 的 AVD 模拟器/Mi Phone 均编译成功运行。
100100

101101
- 安装 NodeJS(18.0+)、Yarn、[Watchman](https://reactnative.cn/docs/environment-setup)
102102
- Java JDK建议用 11(配置环境变量 **JAVE_HOME**,高于这个版本编译可能会报错)。

android/app/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ react {
6060
*/
6161
def enableSeparateBuildPerCPUArchitecture = false
6262

63-
apply from: "../../node_modules/react-native/react.gradle"
64-
6563
/**
6664
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
6765
*/
@@ -95,6 +93,7 @@ android {
9593

9694
compileSdkVersion rootProject.ext.compileSdkVersion
9795

96+
namespace "github.funnyzak.v2ex"
9897
defaultConfig {
9998
applicationId "github.funnyzak.v2ex"
10099
minSdkVersion rootProject.ext.minSdkVersion
@@ -138,7 +137,7 @@ android {
138137
// see https://reactnative.dev/docs/signed-apk-android.
139138
signingConfig signingConfigs.release
140139
minifyEnabled enableProguardInReleaseBuilds
141-
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
140+
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
142141
}
143142
}
144143

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="github.funnyzak.v2ex">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22

33
<meta-data android:name="com.bugsnag.android.API_KEY" android:value="YOUR-API-KEY-HERE" />
44

0 commit comments

Comments
 (0)