@computools/react-native-template-controller 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +1 -1
- package/template/.prettierrc.js +0 -2
- package/template/android/app/src/main/java/com/reactnativetemplate/MainApplication.kt +2 -8
- package/template/android/build.gradle +1 -1
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradlew +2 -2
- package/template/android/gradlew.bat +7 -2
- package/template/ios/Podfile +17 -0
- package/template/package.json +14 -14
- package/template/src/Main.tsx +3 -0
- package/template/tsconfig.json +1 -1
package/README.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<img src="https://ik.imagekit.io/computools/computools-background/upload-8a50e7e4-c14e-4b55-ae17-bd0cca2f6493.webp">
|
12
12
|
|
13
|
-
### Latest supported RN version [0.
|
13
|
+
### Latest supported RN version [0.80](https://github.com/facebook/react-native/releases/tag/v0.80.0) 🎯
|
14
14
|
|
15
15
|
### Precondition: 📗
|
16
16
|
|
@@ -39,6 +39,7 @@ See the below table to find out which version of the template to use.
|
|
39
39
|
|
40
40
|
| React Native | Template |
|
41
41
|
| ------------ | -------- |
|
42
|
+
| 0.80 | 1.0.49 |
|
42
43
|
| 0.79 | 1.0.43 |
|
43
44
|
| 0.78 | 1.0.34 |
|
44
45
|
| 0.77 | 1.0.33 |
|
package/package.json
CHANGED
package/template/.prettierrc.js
CHANGED
@@ -4,13 +4,11 @@ import android.app.Application
|
|
4
4
|
import com.facebook.react.PackageList
|
5
5
|
import com.facebook.react.ReactApplication
|
6
6
|
import com.facebook.react.ReactHost
|
7
|
+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
|
7
8
|
import com.facebook.react.ReactNativeHost
|
8
|
-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
|
9
9
|
import com.facebook.react.ReactPackage
|
10
|
-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
|
11
10
|
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
12
11
|
import com.facebook.react.defaults.DefaultReactNativeHost
|
13
|
-
import com.facebook.soloader.SoLoader
|
14
12
|
|
15
13
|
class MainApplication : Application(), ReactApplication {
|
16
14
|
|
@@ -35,10 +33,6 @@ class MainApplication : Application(), ReactApplication {
|
|
35
33
|
|
36
34
|
override fun onCreate() {
|
37
35
|
super.onCreate()
|
38
|
-
|
39
|
-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
|
40
|
-
// If you opted-in for the New Architecture, we load the native entry point for this app.
|
41
|
-
load()
|
42
|
-
}
|
36
|
+
loadReactNative(this)
|
43
37
|
}
|
44
38
|
}
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
2
2
|
distributionPath=wrapper/dists
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
|
4
4
|
networkTimeout=10000
|
5
5
|
validateDistributionUrl=true
|
6
6
|
zipStoreBase=GRADLE_USER_HOME
|
package/template/android/gradlew
CHANGED
@@ -114,7 +114,7 @@ case "$( uname )" in #(
|
|
114
114
|
NONSTOP* ) nonstop=true ;;
|
115
115
|
esac
|
116
116
|
|
117
|
-
CLASSPATH
|
117
|
+
CLASSPATH="\\\"\\\""
|
118
118
|
|
119
119
|
|
120
120
|
# Determine the Java command to use to start the JVM.
|
@@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
213
213
|
set -- \
|
214
214
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
215
215
|
-classpath "$CLASSPATH" \
|
216
|
-
|
216
|
+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
217
217
|
"$@"
|
218
218
|
|
219
219
|
# Stop when "xargs" is not available.
|
@@ -1,3 +1,8 @@
|
|
1
|
+
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
|
2
|
+
@REM
|
3
|
+
@REM This source code is licensed under the MIT license found in the
|
4
|
+
@REM LICENSE file in the root directory of this source tree.
|
5
|
+
|
1
6
|
@rem
|
2
7
|
@rem Copyright 2015 the original author or authors.
|
3
8
|
@rem
|
@@ -70,11 +75,11 @@ goto fail
|
|
70
75
|
:execute
|
71
76
|
@rem Setup the command line
|
72
77
|
|
73
|
-
set CLASSPATH
|
78
|
+
set CLASSPATH=
|
74
79
|
|
75
80
|
|
76
81
|
@rem Execute Gradle
|
77
|
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%"
|
82
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
78
83
|
|
79
84
|
:end
|
80
85
|
@rem End local scope for the variables with windows NT shell
|
package/template/ios/Podfile
CHANGED
@@ -31,6 +31,23 @@ abstract_target 'ReactNativeTemplateCommonPods' do
|
|
31
31
|
:mac_catalyst_enabled => false,
|
32
32
|
# :ccache_enabled => true
|
33
33
|
)
|
34
|
+
|
35
|
+
# Add zlib linking
|
36
|
+
project = Xcodeproj::Project.open('ReactNativeTemplate.xcodeproj')
|
37
|
+
targets_to_modify = ['ReactNativeTemplate', 'ReactNativeTemplateDev', 'ReactNativeTemplateStg']
|
38
|
+
|
39
|
+
project.targets.each do |target|
|
40
|
+
if targets_to_modify.include?(target.name)
|
41
|
+
target.build_configurations.each do |config|
|
42
|
+
ldflags = config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
|
43
|
+
unless ldflags.include?('-lz')
|
44
|
+
ldflags << '-lz'
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
project.save
|
34
51
|
end
|
35
52
|
|
36
53
|
target 'ReactNativeTemplateDev' do
|
package/template/package.json
CHANGED
@@ -33,40 +33,40 @@
|
|
33
33
|
"i18next": "24.2.2",
|
34
34
|
"mobx": "6.13.7",
|
35
35
|
"mobx-react-lite": "4.1.0",
|
36
|
-
"react": "19.
|
36
|
+
"react": "19.1.0",
|
37
37
|
"react-hook-form": "7.54.2",
|
38
38
|
"react-i18next": "15.4.1",
|
39
|
-
"react-native": "0.
|
39
|
+
"react-native": "0.80.0",
|
40
40
|
"react-native-bootsplash": "6.3.5",
|
41
41
|
"react-native-config": "1.5.3",
|
42
42
|
"react-native-mmkv": "3.2.0",
|
43
43
|
"react-native-safe-area-context": "5.3.0",
|
44
|
-
"react-native-screens": "4.
|
45
|
-
"react-native-svg": "15.
|
44
|
+
"react-native-screens": "4.11.1",
|
45
|
+
"react-native-svg": "15.12.0",
|
46
46
|
"zod": "3.24.2"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@babel/core": "^7.25.2",
|
50
50
|
"@babel/preset-env": "^7.25.3",
|
51
51
|
"@babel/runtime": "^7.25.0",
|
52
|
-
"@react-native-community/cli": "
|
53
|
-
"@react-native-community/cli-platform-android": "
|
54
|
-
"@react-native-community/cli-platform-ios": "
|
55
|
-
"@react-native/babel-preset": "0.
|
56
|
-
"@react-native/eslint-config": "0.
|
57
|
-
"@react-native/metro-config": "0.
|
58
|
-
"@react-native/typescript-config": "0.
|
52
|
+
"@react-native-community/cli": "19.0.0",
|
53
|
+
"@react-native-community/cli-platform-android": "19.0.0",
|
54
|
+
"@react-native-community/cli-platform-ios": "19.0.0",
|
55
|
+
"@react-native/babel-preset": "0.80.0",
|
56
|
+
"@react-native/eslint-config": "0.80.0",
|
57
|
+
"@react-native/metro-config": "0.80.0",
|
58
|
+
"@react-native/typescript-config": "0.80.0",
|
59
59
|
"@types/jest": "^29.5.13",
|
60
60
|
"@types/metro-config": "^0.76.3",
|
61
|
-
"@types/react": "19.
|
62
|
-
"@types/react-test-renderer": "19.
|
61
|
+
"@types/react": "^19.1.0",
|
62
|
+
"@types/react-test-renderer": "^19.1.0",
|
63
63
|
"@typescript-eslint/parser": "5.53.0",
|
64
64
|
"babel-plugin-module-resolver": "5.0.0",
|
65
65
|
"eslint": "^8.19.0",
|
66
66
|
"eslint-import-resolver-babel-module": "5.3.2",
|
67
67
|
"jest": "29.6.3",
|
68
68
|
"prettier": "2.8.8",
|
69
|
-
"react-test-renderer": "19.
|
69
|
+
"react-test-renderer": "19.1.0",
|
70
70
|
"typescript": "5.0.4"
|
71
71
|
},
|
72
72
|
"engines": {
|
package/template/src/Main.tsx
CHANGED
package/template/tsconfig.json
CHANGED