Skip to content

Commit ffad8b3

Browse files
committed
fix: 修复 Android 工程代码错误问题
1 parent f76125c commit ffad8b3

File tree

26 files changed

+214
-276
lines changed

26 files changed

+214
-276
lines changed

HelloWorld/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ android {
191191
dependencies {
192192
implementation fileTree(dir: "libs", include: ["*.jar"])
193193
//noinspection GradleDynamicVersion
194-
implementation 'com.facebook.react:react-native:0.20.1' // From node_modules
194+
implementation "com.facebook.react:react-native:+" // From node_modules
195195

196196
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
197197

198198
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
199-
exclude group:'com.facebook.fbjni'
199+
exclude group:'com.facebook.fbjni'
200200
}
201201

202202
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {

HelloWorld/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
android:allowBackup="false"
1212
android:theme="@style/AppTheme"
1313
android:usesCleartextTraffic="true"
14-
>
14+
>
1515
<activity
1616
android:name=".MainActivity"
1717
android:label="@string/app_name"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ protected List<ReactPackage> getPackages() {
3333
protected String getJSMainModuleName() {
3434
return "index";
3535
}
36-
3736
};
3837

3938
@Override

HelloWorld/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
mavenCentral()
1414
}
1515
dependencies {
16-
classpath('com.android.tools.build:gradle:4.2.2')
16+
classpath("com.android.tools.build:gradle:4.2.2")
1717
// NOTE: Do not place your application dependencies here; they belong
1818
// in the individual module build.gradle files
1919
}

HelloWorld/android/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
android.useAndroidX=true
2424
# Automatically convert third-party libraries to use AndroidX
2525
android.enableJetifier=true
26-
android.injected.studio.version.check = false
2726

2827
# Version of flipper SDK to use with React Native
2928
FLIPPER_VERSION=0.99.0
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Thu Oct 21 10:01:48 CST 2021
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip

HelloWorld/ios/HelloWorld.xcodeproj/project.pbxproj

Lines changed: 81 additions & 86 deletions
Large diffs are not rendered by default.

HelloWorld/ios/HelloWorld.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)