@computools/react-native-template-controller 1.0.42 → 1.0.43

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
@@ -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.79 | 1.0.43 |
42
43
  | 0.78 | 1.0.34 |
43
44
  | 0.77 | 1.0.33 |
44
45
  | 0.76 | 1.0.29 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computools/react-native-template-controller",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
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
@@ -7,4 +7,10 @@ ruby ">= 2.6.10"
7
7
  gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
8
  gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9
9
  gem 'xcodeproj', '< 1.26.0'
10
- gem 'concurrent-ruby', '< 1.3.4'
10
+ gem 'concurrent-ruby', '< 1.3.4'
11
+
12
+ # Ruby 3.4.0 has removed some libraries from the standard library.
13
+ gem 'bigdecimal'
14
+ gem 'logger'
15
+ gem 'benchmark'
16
+ gem 'mutex_m'
@@ -1,6 +1,6 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4
4
  networkTimeout=10000
5
5
  validateDistributionUrl=true
6
6
  zipStoreBase=GRADLE_USER_HOME
@@ -205,7 +205,7 @@ fi
205
205
  DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206
206
 
207
207
  # Collect all arguments for the java command:
208
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
208
+ # * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209
209
  # and any embedded shellness will be escaped.
210
210
  # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211
211
  # treated as '${Hostname}' itself on the command line.
@@ -2,23 +2,42 @@ import UIKit
2
2
  import React
3
3
  import React_RCTAppDelegate
4
4
  import ReactAppDependencyProvider
5
+ import RNBootSplash
5
6
 
6
7
  @main
7
- class AppDelegate: RCTAppDelegate {
8
+ class AppDelegate: UIResponder, UIApplicationDelegate {
9
+ var window: UIWindow?
10
+
11
+ var reactNativeDelegate: ReactNativeDelegate?
12
+ var reactNativeFactory: RCTReactNativeFactory?
13
+
14
+ func application(
15
+ _ application: UIApplication,
16
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
17
+ ) -> Bool {
18
+ let delegate = ReactNativeDelegate()
19
+ let factory = RCTReactNativeFactory(delegate: delegate)
20
+ delegate.dependencyProvider = RCTAppDependencyProvider()
21
+
22
+ reactNativeDelegate = delegate
23
+ reactNativeFactory = factory
24
+
25
+ window = UIWindow(frame: UIScreen.main.bounds)
26
+
27
+ factory.startReactNative(
28
+ withModuleName: "ReactNativeTemplate",
29
+ in: window,
30
+ launchOptions: launchOptions
31
+ )
32
+
33
+ return true
34
+ }
35
+ }
36
+
37
+ class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
8
38
  override func customize(_ rootView: RCTRootView!) {
9
- super.customize(rootView)
10
- RNBootSplash.initWithStoryboard("LaunchScreen", rootView: rootView)
11
- }
12
-
13
- override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
14
- self.moduleName = "ReactNativeTemplate"
15
- self.dependencyProvider = RCTAppDependencyProvider()
16
-
17
- // You can add your custom initial props in the dictionary below.
18
- // They will be passed down to the ViewController used by React Native.
19
- self.initialProps = [:]
20
-
21
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
39
+ super.customize(rootView)
40
+ RNBootSplash.initWithStoryboard("LaunchScreen", rootView: rootView)
22
41
  }
23
42
 
24
43
  override func sourceURL(for bridge: RCTBridge) -> URL? {
@@ -36,8 +36,8 @@
36
36
  "react": "19.0.0",
37
37
  "react-hook-form": "7.54.2",
38
38
  "react-i18next": "15.4.1",
39
- "react-native": "0.78.1",
40
- "react-native-bootsplash": "6.3.2",
39
+ "react-native": "0.79.1",
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",
@@ -49,13 +49,13 @@
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": "15.0.1",
53
- "@react-native-community/cli-platform-android": "15.0.1",
54
- "@react-native-community/cli-platform-ios": "15.0.1",
55
- "@react-native/babel-preset": "0.78.1",
56
- "@react-native/eslint-config": "0.78.1",
57
- "@react-native/metro-config": "0.78.1",
58
- "@react-native/typescript-config": "0.78.1",
52
+ "@react-native-community/cli": "18.0.0",
53
+ "@react-native-community/cli-platform-android": "18.0.0",
54
+ "@react-native-community/cli-platform-ios": "18.0.0",
55
+ "@react-native/babel-preset": "0.79.1",
56
+ "@react-native/eslint-config": "0.79.1",
57
+ "@react-native/metro-config": "0.79.1",
58
+ "@react-native/typescript-config": "0.79.1",
59
59
  "@types/jest": "^29.5.13",
60
60
  "@types/metro-config": "^0.76.3",
61
61
  "@types/react": "19.0.0",