@computools/react-native-template-controller 1.0.23 → 1.0.25

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 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.74.5](https://github.com/facebook/react-native/releases/tag/v0.74.5) 🎯
13
+ ### Latest supported RN version [0.75.1](https://github.com/facebook/react-native/releases/tag/v0.75.1) 🎯
14
14
 
15
15
  ### Precondition: 📗
16
16
 
@@ -20,7 +20,7 @@
20
20
 
21
21
  ### Usage: 🚛
22
22
  ```sh
23
- npx react-native init MyApp --template @computools/react-native-template-controller
23
+ npx @react-native-community/cli init MyApp --template @computools/react-native-template-controller
24
24
  ```
25
25
 
26
26
  ### Preview: 😍
@@ -39,10 +39,11 @@ 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.74 | 1.0.20 |
43
- | 0.73 | 1.0.11 |
44
- | 0.72 | 1.0.0 |
45
- | 0.71.11 | 0.0.7 |
42
+ | 0.75 | 1.0.24 |
43
+ | 0.74 | 1.0.20 |
44
+ | 0.73 | 1.0.11 |
45
+ | 0.72 | 1.0.0 |
46
+ | 0.71 | 0.0.7 |
46
47
 
47
48
 
48
49
  [preview]: <https://ik.imagekit.io/computools/template-snapshots/rn-template.gif>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computools/react-native-template-controller",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "Computools react native template by using mobx as controllers",
5
5
  "main": "template.config.js",
6
6
  "scripts": {
package/template/Gemfile CHANGED
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
3
3
  # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
4
  ruby ">= 2.6.10"
5
5
 
6
- # Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
7
- # bound in the template on Cocoapods with next React Native release.
8
- gem 'cocoapods', '>= 1.13', '< 1.15'
9
- gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
6
+ # Exclude problematic versions of cocoapods and activesupport that causes build failures.
7
+ gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
+ gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
@@ -20,14 +20,14 @@ apply plugin: "com.facebook.react"
20
20
  */
21
21
  react {
22
22
  /* Folders */
23
- // The root of your project, i.e. where "package.json" lives. Default is '..'
24
- // root = file("../")
25
- // The folder where the react-native NPM package is. Default is ../node_modules/react-native
26
- // reactNativeDir = file("../node_modules/react-native")
27
- // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
28
- // codegenDir = file("../node_modules/@react-native/codegen")
29
- // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
30
- // cliFile = file("../node_modules/react-native/cli.js")
23
+ // The root of your project, i.e. where "package.json" lives. Default is '../..'
24
+ // root = file("../../")
25
+ // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
26
+ // reactNativeDir = file("../../node_modules/react-native")
27
+ // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
28
+ // codegenDir = file("../../node_modules/@react-native/codegen")
29
+ // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
30
+ // cliFile = file("../../node_modules/react-native/cli.js")
31
31
 
32
32
  /* Variants */
33
33
  // The list of variants to that are debuggable. For those we're going to
@@ -61,6 +61,9 @@ react {
61
61
  //
62
62
  // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
63
63
  // hermesFlags = ["-O", "-output-source-map"]
64
+
65
+ /* Autolinking */
66
+ autolinkLibrariesWithApp()
64
67
  }
65
68
 
66
69
  /**
@@ -152,5 +155,3 @@ dependencies {
152
155
  implementation jscFlavor
153
156
  }
154
157
  }
155
-
156
- apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
@@ -8,7 +8,8 @@
8
8
  android:icon="@mipmap/ic_launcher"
9
9
  android:roundIcon="@mipmap/ic_launcher_round"
10
10
  android:allowBackup="false"
11
- android:theme="@style/BootTheme">
11
+ android:theme="@style/BootTheme"
12
+ android:supportsRtl="true">
12
13
  <activity
13
14
  android:name=".MainActivity"
14
15
  android:label="@string/app_name"
@@ -8,7 +8,8 @@
8
8
  android:icon="@mipmap/ic_launcher"
9
9
  android:roundIcon="@mipmap/ic_launcher_round"
10
10
  android:allowBackup="false"
11
- android:theme="@style/BootTheme">
11
+ android:theme="@style/BootTheme"
12
+ android:supportsRtl="true">
12
13
  <activity
13
14
  android:name=".MainActivity"
14
15
  android:label="@string/app_name"
@@ -8,7 +8,8 @@
8
8
  android:icon="@mipmap/ic_launcher"
9
9
  android:roundIcon="@mipmap/ic_launcher_round"
10
10
  android:allowBackup="false"
11
- android:theme="@style/BootTheme">
11
+ android:theme="@style/BootTheme"
12
+ android:supportsRtl="true">
12
13
  <activity
13
14
  android:name=".MainActivity"
14
15
  android:label="@string/app_name"
@@ -5,7 +5,7 @@ buildscript {
5
5
  compileSdkVersion = 34
6
6
  targetSdkVersion = 34
7
7
  ndkVersion = "26.1.10909125"
8
- kotlinVersion = "1.9.22"
8
+ kotlinVersion = "1.9.24"
9
9
  }
10
10
  repositories {
11
11
  google()
@@ -1,6 +1,6 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
4
4
  networkTimeout=10000
5
5
  validateDistributionUrl=true
6
6
  zipStoreBase=GRADLE_USER_HOME
@@ -21,8 +21,6 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
21
21
  # Android operating system, and which are packaged with your app's APK
22
22
  # https://developer.android.com/topic/libraries/support-library/androidx-rn
23
23
  android.useAndroidX=true
24
- # Automatically convert third-party libraries to use AndroidX
25
- android.enableJetifier=true
26
24
 
27
25
  # Use this property to specify which architecture you want to build.
28
26
  # You can also override it from the CLI using
@@ -55,7 +55,7 @@
55
55
  # Darwin, MinGW, and NonStop.
56
56
  #
57
57
  # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58
+ # https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
59
  # within the Gradle project.
60
60
  #
61
61
  # You can find Gradle at https://github.com/gradle/gradle/.
@@ -1,4 +1,6 @@
1
+ pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
2
+ plugins { id("com.facebook.react.settings") }
3
+ extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
1
4
  rootProject.name = 'ReactNativeTemplate'
2
- apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3
5
  include ':app'
4
6
  includeBuild('../node_modules/@react-native/gradle-plugin')
@@ -2,9 +2,6 @@
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
- <key>NSPrivacyCollectedDataTypes</key>
6
- <array>
7
- </array>
8
5
  <key>NSPrivacyAccessedAPITypes</key>
9
6
  <array>
10
7
  <dict>
@@ -32,6 +29,8 @@
32
29
  </array>
33
30
  </dict>
34
31
  </array>
32
+ <key>NSPrivacyCollectedDataTypes</key>
33
+ <array/>
35
34
  <key>NSPrivacyTracking</key>
36
35
  <false/>
37
36
  </dict>
@@ -33,15 +33,15 @@
33
33
  "i18next": "23.7.16",
34
34
  "mobx": "6.12.0",
35
35
  "mobx-react-lite": "4.0.5",
36
- "react": "18.2.0",
36
+ "react": "18.3.1",
37
37
  "react-hook-form": "7.49.2",
38
38
  "react-i18next": "14.0.0",
39
- "react-native": "0.74.5",
39
+ "react-native": "0.75.1",
40
40
  "react-native-bootsplash": "4.5.3",
41
41
  "react-native-config": "1.5.1",
42
42
  "react-native-mmkv": "2.11.0",
43
43
  "react-native-safe-area-context": "4.10.1",
44
- "react-native-screens": "3.31.1",
44
+ "react-native-screens": "3.34.0",
45
45
  "react-native-svg": "14.1.0",
46
46
  "yup": "1.3.3"
47
47
  },
@@ -50,10 +50,10 @@
50
50
  "@babel/preset-env": "^7.20.0",
51
51
  "@babel/runtime": "^7.20.0",
52
52
  "@computools/eslint-config-react-native": "1.1.1",
53
- "@react-native/babel-preset": "0.74.87",
54
- "@react-native/eslint-config": "0.74.87",
55
- "@react-native/metro-config": "0.74.87",
56
- "@react-native/typescript-config": "0.74.87",
53
+ "@react-native/babel-preset": "0.75.1",
54
+ "@react-native/eslint-config": "0.75.1",
55
+ "@react-native/metro-config": "0.75.1",
56
+ "@react-native/typescript-config": "0.75.1",
57
57
  "@types/jest": "^29.2.1",
58
58
  "@types/metro-config": "^0.76.3",
59
59
  "@types/react": "18.2.6",
@@ -65,7 +65,7 @@
65
65
  "eslint-import-resolver-babel-module": "5.3.2",
66
66
  "jest": "29.6.3",
67
67
  "prettier": "2.8.8",
68
- "react-test-renderer": "18.2.0",
68
+ "react-test-renderer": "18.3.1",
69
69
  "typescript": "5.0.4"
70
70
  },
71
71
  "engines": {