@computools/react-native-template-controller 1.0.32 → 1.0.33

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.
Files changed (63) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
  3. package/template/Gemfile +2 -1
  4. package/template/Gemfile.lock +119 -0
  5. package/template/android/app/src/development/AndroidManifest.xml +3 -2
  6. package/template/android/app/src/development/res/drawable-hdpi/bootsplash_logo.png +0 -0
  7. package/template/android/app/src/development/res/drawable-mdpi/bootsplash_logo.png +0 -0
  8. package/template/android/app/src/development/res/drawable-xhdpi/bootsplash_logo.png +0 -0
  9. package/template/android/app/src/development/res/drawable-xxhdpi/bootsplash_logo.png +0 -0
  10. package/template/android/app/src/development/res/drawable-xxxhdpi/bootsplash_logo.png +0 -0
  11. package/template/android/app/src/development/res/values/styles.xml +4 -4
  12. package/template/android/app/src/main/AndroidManifest.xml +22 -22
  13. package/template/android/app/src/main/java/com/reactnativetemplate/MainActivity.kt +4 -2
  14. package/template/android/app/src/main/res/drawable-hdpi/bootsplash_logo.png +0 -0
  15. package/template/android/app/src/main/res/drawable-mdpi/bootsplash_logo.png +0 -0
  16. package/template/android/app/src/main/res/drawable-xhdpi/bootsplash_logo.png +0 -0
  17. package/template/android/app/src/main/res/drawable-xxhdpi/bootsplash_logo.png +0 -0
  18. package/template/android/app/src/main/res/drawable-xxxhdpi/bootsplash_logo.png +0 -0
  19. package/template/android/app/src/main/res/values/colors.xml +1 -1
  20. package/template/android/app/src/main/res/values/styles.xml +4 -6
  21. package/template/android/app/src/staging/AndroidManifest.xml +3 -2
  22. package/template/android/app/src/staging/res/drawable-hdpi/bootsplash_logo.png +0 -0
  23. package/template/android/app/src/staging/res/drawable-mdpi/bootsplash_logo.png +0 -0
  24. package/template/android/app/src/staging/res/drawable-xhdpi/bootsplash_logo.png +0 -0
  25. package/template/android/app/src/staging/res/drawable-xxhdpi/bootsplash_logo.png +0 -0
  26. package/template/android/app/src/staging/res/drawable-xxxhdpi/bootsplash_logo.png +0 -0
  27. package/template/android/app/src/staging/res/values/styles.xml +4 -4
  28. package/template/android/build.gradle +2 -2
  29. package/template/ios/Podfile +0 -5
  30. package/template/ios/Podfile.lock +2009 -0
  31. package/template/ios/PrivacyInfo.xcprivacy +31 -31
  32. package/template/ios/ReactNativeTemplate/AppDeletage.swift +35 -0
  33. package/template/ios/ReactNativeTemplate-Bridging-Header.h +1 -0
  34. package/template/ios/ReactNativeTemplate.xcodeproj/project.pbxproj +38 -90
  35. package/template/ios/ReactNativeTemplate.xcworkspace/contents.xcworkspacedata +10 -0
  36. package/template/ios/ReactNativeTemplate.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  37. package/template/ios/ReactNativeTemplateDev-Bridging-Header.h +1 -0
  38. package/template/ios/ReactNativeTemplateStg-Bridging-Header.h +1 -0
  39. package/template/metro.config.js +1 -1
  40. package/template/package.json +20 -21
  41. package/template/src/assets/images/logo.svg +3 -0
  42. package/template/yarn.lock +7890 -0
  43. package/template/android/app/src/development/res/drawable/launch_screen.xml +0 -11
  44. package/template/android/app/src/development/res/mipmap-hdpi/logo.png +0 -0
  45. package/template/android/app/src/development/res/mipmap-mdpi/logo.png +0 -0
  46. package/template/android/app/src/development/res/mipmap-xhdpi/logo.png +0 -0
  47. package/template/android/app/src/development/res/mipmap-xxhdpi/logo.png +0 -0
  48. package/template/android/app/src/development/res/mipmap-xxxhdpi/logo.png +0 -0
  49. package/template/android/app/src/main/res/drawable/launch_screen.xml +0 -11
  50. package/template/android/app/src/main/res/mipmap-hdpi/logo.png +0 -0
  51. package/template/android/app/src/main/res/mipmap-mdpi/logo.png +0 -0
  52. package/template/android/app/src/main/res/mipmap-xhdpi/logo.png +0 -0
  53. package/template/android/app/src/main/res/mipmap-xxhdpi/logo.png +0 -0
  54. package/template/android/app/src/main/res/mipmap-xxxhdpi/logo.png +0 -0
  55. package/template/android/app/src/staging/res/drawable/launch_screen.xml +0 -11
  56. package/template/android/app/src/staging/res/mipmap-hdpi/logo.png +0 -0
  57. package/template/android/app/src/staging/res/mipmap-mdpi/logo.png +0 -0
  58. package/template/android/app/src/staging/res/mipmap-xhdpi/logo.png +0 -0
  59. package/template/android/app/src/staging/res/mipmap-xxhdpi/logo.png +0 -0
  60. package/template/android/app/src/staging/res/mipmap-xxxhdpi/logo.png +0 -0
  61. package/template/ios/ReactNativeTemplate/AppDelegate.h +0 -6
  62. package/template/ios/ReactNativeTemplate/AppDelegate.mm +0 -34
  63. package/template/ios/ReactNativeTemplate/main.m +0 -10
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.76.3](https://github.com/facebook/react-native/releases/tag/v0.76.3) 🎯
13
+ ### Latest supported RN version [0.77](https://reactnative.dev/blog/2025/01/21/version-0.77) 🎯
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.77 | 1.0.33 |
42
43
  | 0.76 | 1.0.29 |
43
44
  | 0.75 | 1.0.24 |
44
45
  | 0.74 | 1.0.20 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computools/react-native-template-controller",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
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
@@ -6,4 +6,5 @@ ruby ">= 2.6.10"
6
6
  # Exclude problematic versions of cocoapods and activesupport that causes build failures.
7
7
  gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
8
  gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9
- gem 'xcodeproj', '< 1.26.0'
9
+ gem 'xcodeproj', '< 1.26.0'
10
+ gem 'concurrent-ruby', '< 1.3.4'
@@ -0,0 +1,119 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ CFPropertyList (3.0.7)
5
+ base64
6
+ nkf
7
+ rexml
8
+ activesupport (7.1.5.1)
9
+ base64
10
+ benchmark (>= 0.3)
11
+ bigdecimal
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ connection_pool (>= 2.2.5)
14
+ drb
15
+ i18n (>= 1.6, < 2)
16
+ logger (>= 1.4.2)
17
+ minitest (>= 5.1)
18
+ mutex_m
19
+ securerandom (>= 0.3)
20
+ tzinfo (~> 2.0)
21
+ addressable (2.8.7)
22
+ public_suffix (>= 2.0.2, < 7.0)
23
+ algoliasearch (1.27.5)
24
+ httpclient (~> 2.8, >= 2.8.3)
25
+ json (>= 1.5.1)
26
+ atomos (0.1.3)
27
+ base64 (0.2.0)
28
+ benchmark (0.4.0)
29
+ bigdecimal (3.1.9)
30
+ claide (1.1.0)
31
+ cocoapods (1.15.2)
32
+ addressable (~> 2.8)
33
+ claide (>= 1.0.2, < 2.0)
34
+ cocoapods-core (= 1.15.2)
35
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
36
+ cocoapods-downloader (>= 2.1, < 3.0)
37
+ cocoapods-plugins (>= 1.0.0, < 2.0)
38
+ cocoapods-search (>= 1.0.0, < 2.0)
39
+ cocoapods-trunk (>= 1.6.0, < 2.0)
40
+ cocoapods-try (>= 1.1.0, < 2.0)
41
+ colored2 (~> 3.1)
42
+ escape (~> 0.0.4)
43
+ fourflusher (>= 2.3.0, < 3.0)
44
+ gh_inspector (~> 1.0)
45
+ molinillo (~> 0.8.0)
46
+ nap (~> 1.0)
47
+ ruby-macho (>= 2.3.0, < 3.0)
48
+ xcodeproj (>= 1.23.0, < 2.0)
49
+ cocoapods-core (1.15.2)
50
+ activesupport (>= 5.0, < 8)
51
+ addressable (~> 2.8)
52
+ algoliasearch (~> 1.0)
53
+ concurrent-ruby (~> 1.1)
54
+ fuzzy_match (~> 2.0.4)
55
+ nap (~> 1.0)
56
+ netrc (~> 0.11)
57
+ public_suffix (~> 4.0)
58
+ typhoeus (~> 1.0)
59
+ cocoapods-deintegrate (1.0.5)
60
+ cocoapods-downloader (2.1)
61
+ cocoapods-plugins (1.0.0)
62
+ nap
63
+ cocoapods-search (1.0.1)
64
+ cocoapods-trunk (1.6.0)
65
+ nap (>= 0.8, < 2.0)
66
+ netrc (~> 0.11)
67
+ cocoapods-try (1.2.0)
68
+ colored2 (3.1.2)
69
+ concurrent-ruby (1.3.5)
70
+ connection_pool (2.5.0)
71
+ drb (2.2.1)
72
+ escape (0.0.4)
73
+ ethon (0.16.0)
74
+ ffi (>= 1.15.0)
75
+ ffi (1.17.1)
76
+ fourflusher (2.3.1)
77
+ fuzzy_match (2.0.4)
78
+ gh_inspector (1.1.3)
79
+ httpclient (2.8.3)
80
+ i18n (1.14.7)
81
+ concurrent-ruby (~> 1.0)
82
+ json (2.9.1)
83
+ logger (1.6.5)
84
+ minitest (5.25.4)
85
+ molinillo (0.8.0)
86
+ mutex_m (0.3.0)
87
+ nanaimo (0.3.0)
88
+ nap (1.1.0)
89
+ netrc (0.11.0)
90
+ nkf (0.2.0)
91
+ public_suffix (4.0.7)
92
+ rexml (3.4.0)
93
+ ruby-macho (2.5.1)
94
+ securerandom (0.3.2)
95
+ typhoeus (1.4.1)
96
+ ethon (>= 0.9.0)
97
+ tzinfo (2.0.6)
98
+ concurrent-ruby (~> 1.0)
99
+ xcodeproj (1.25.1)
100
+ CFPropertyList (>= 2.3.3, < 4.0)
101
+ atomos (~> 0.1.3)
102
+ claide (>= 1.0.2, < 2.0)
103
+ colored2 (~> 3.1)
104
+ nanaimo (~> 0.3.0)
105
+ rexml (>= 3.3.6, < 4.0)
106
+
107
+ PLATFORMS
108
+ ruby
109
+
110
+ DEPENDENCIES
111
+ activesupport (>= 6.1.7.5, != 7.1.0)
112
+ cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
113
+ xcodeproj (< 1.26.0)
114
+
115
+ RUBY VERSION
116
+ ruby 2.7.6p219
117
+
118
+ BUNDLED WITH
119
+ 2.4.12
@@ -8,7 +8,7 @@
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/AppTheme"
12
12
  android:supportsRtl="true">
13
13
  <activity
14
14
  android:name=".MainActivity"
@@ -16,7 +16,8 @@
16
16
  android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
17
17
  android:launchMode="singleTask"
18
18
  android:windowSoftInputMode="adjustResize"
19
- android:exported="true">
19
+ android:exported="true"
20
+ android:theme="@style/BootTheme">
20
21
  <intent-filter>
21
22
  <action android:name="android.intent.action.MAIN" />
22
23
  <category android:name="android.intent.category.LAUNCHER" />
@@ -6,9 +6,9 @@
6
6
  <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
7
7
  </style>
8
8
 
9
- <style name="BootTheme" parent="Theme.SplashScreen">
10
- <item name="windowSplashScreenBackground">@color/primary</item>
11
- <item name="windowSplashScreenAnimatedIcon">@drawable/launch_screen</item>
12
- <item name="postSplashScreenTheme">@style/AppTheme</item>
9
+ <style name="BootTheme" parent="Theme.BootSplash.EdgeToEdge">
10
+ <item name="bootSplashBackground">@color/primary</item>
11
+ <item name="bootSplashLogo">@drawable/bootsplash_logo</item>
12
+ <item name="postBootSplashTheme">@style/AppTheme</item>
13
13
  </style>
14
14
  </resources>
@@ -1,26 +1,26 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <uses-permission android:name="android.permission.INTERNET" />
2
3
 
3
- <uses-permission android:name="android.permission.INTERNET" />
4
-
5
- <application
6
- android:name=".MainApplication"
4
+ <application
5
+ android:name=".MainApplication"
6
+ android:label="@string/app_name"
7
+ android:icon="@mipmap/ic_launcher"
8
+ android:roundIcon="@mipmap/ic_launcher_round"
9
+ android:allowBackup="false"
10
+ android:theme="@style/AppTheme"
11
+ android:supportsRtl="true">
12
+ <activity
13
+ android:name=".MainActivity"
7
14
  android:label="@string/app_name"
8
- android:icon="@mipmap/ic_launcher"
9
- android:roundIcon="@mipmap/ic_launcher_round"
10
- android:allowBackup="false"
11
- android:theme="@style/BootTheme"
12
- android:supportsRtl="true">
13
- <activity
14
- android:name=".MainActivity"
15
- android:label="@string/app_name"
16
- android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
17
- android:launchMode="singleTask"
18
- android:windowSoftInputMode="adjustResize"
19
- android:exported="true">
20
- <intent-filter>
21
- <action android:name="android.intent.action.MAIN" />
22
- <category android:name="android.intent.category.LAUNCHER" />
23
- </intent-filter>
24
- </activity>
25
- </application>
15
+ android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
16
+ android:launchMode="singleTask"
17
+ android:windowSoftInputMode="adjustResize"
18
+ android:exported="true"
19
+ android:theme="@style/BootTheme">
20
+ <intent-filter>
21
+ <action android:name="android.intent.action.MAIN" />
22
+ <category android:name="android.intent.category.LAUNCHER" />
23
+ </intent-filter>
24
+ </activity>
25
+ </application>
26
26
  </manifest>
@@ -1,6 +1,7 @@
1
1
  package com.reactnativetemplate
2
2
 
3
3
  import android.os.Bundle
4
+ import androidx.core.view.WindowCompat
4
5
  import com.facebook.react.ReactActivity
5
6
  import com.zoontek.rnbootsplash.RNBootSplash
6
7
  import com.facebook.react.ReactActivityDelegate
@@ -10,8 +11,9 @@ import com.facebook.react.defaults.DefaultReactActivityDelegate
10
11
  class MainActivity : ReactActivity() {
11
12
 
12
13
  override fun onCreate(savedInstanceState: Bundle?) {
13
- RNBootSplash.init(this)
14
- super.onCreate(savedInstanceState)
14
+ super.onCreate(null)
15
+ WindowCompat.setDecorFitsSystemWindows(window, false)
16
+ RNBootSplash.init(this, R.style.BootTheme)
15
17
  }
16
18
 
17
19
  /**
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <resources>
3
3
  <color name="primary">#cdff3a</color>
4
- </resources>
4
+ </resources>
@@ -1,14 +1,12 @@
1
1
  <resources>
2
-
3
- <!-- Base application theme. -->
4
2
  <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
5
3
  <!-- Customize your theme here. -->
6
4
  <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
7
5
  </style>
8
6
 
9
- <style name="BootTheme" parent="Theme.SplashScreen">
10
- <item name="windowSplashScreenBackground">@color/primary</item>
11
- <item name="windowSplashScreenAnimatedIcon">@drawable/launch_screen</item>
12
- <item name="postSplashScreenTheme">@style/AppTheme</item>
7
+ <style name="BootTheme" parent="Theme.BootSplash.EdgeToEdge">
8
+ <item name="bootSplashBackground">@color/primary</item>
9
+ <item name="bootSplashLogo">@drawable/bootsplash_logo</item>
10
+ <item name="postBootSplashTheme">@style/AppTheme</item>
13
11
  </style>
14
12
  </resources>
@@ -8,7 +8,7 @@
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/AppTheme"
12
12
  android:supportsRtl="true">
13
13
  <activity
14
14
  android:name=".MainActivity"
@@ -16,7 +16,8 @@
16
16
  android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
17
17
  android:launchMode="singleTask"
18
18
  android:windowSoftInputMode="adjustResize"
19
- android:exported="true">
19
+ android:exported="true"
20
+ android:theme="@style/BootTheme">
20
21
  <intent-filter>
21
22
  <action android:name="android.intent.action.MAIN" />
22
23
  <category android:name="android.intent.category.LAUNCHER" />
@@ -6,9 +6,9 @@
6
6
  <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
7
7
  </style>
8
8
 
9
- <style name="BootTheme" parent="Theme.SplashScreen">
10
- <item name="windowSplashScreenBackground">@color/primary</item>
11
- <item name="windowSplashScreenAnimatedIcon">@drawable/launch_screen</item>
12
- <item name="postSplashScreenTheme">@style/AppTheme</item>
9
+ <style name="BootTheme" parent="Theme.BootSplash.EdgeToEdge">
10
+ <item name="bootSplashBackground">@color/primary</item>
11
+ <item name="bootSplashLogo">@drawable/bootsplash_logo</item>
12
+ <item name="postBootSplashTheme">@style/AppTheme</item>
13
13
  </style>
14
14
  </resources>
@@ -4,8 +4,8 @@ buildscript {
4
4
  minSdkVersion = 24
5
5
  compileSdkVersion = 35
6
6
  targetSdkVersion = 34
7
- ndkVersion = "26.1.10909125"
8
- kotlinVersion = "1.9.24"
7
+ ndkVersion = "27.1.12297006"
8
+ kotlinVersion = "2.0.21"
9
9
  }
10
10
  repositories {
11
11
  google()
@@ -23,11 +23,6 @@ abstract_target 'ReactNativeTemplateCommonPods' do
23
23
  :app_path => "#{Pod::Config.instance.installation_root}/.."
24
24
  )
25
25
 
26
- target 'ReactNativeTemplateTests' do
27
- inherit! :complete
28
- # Pods for testing
29
- end
30
-
31
26
  post_install do |installer|
32
27
  # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
33
28
  react_native_post_install(