freerasp-react-native 4.5.1 → 4.5.2

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 (89) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +0 -1
  3. package/android/src/main/java/com/freeraspreactnative/PluginThreatHandler.kt +0 -5
  4. package/android/src/main/java/com/freeraspreactnative/dispatchers/ExecutionStateDispatcher.kt +1 -1
  5. package/android/src/main/java/com/freeraspreactnative/dispatchers/ThreatDispatcher.kt +1 -1
  6. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  7. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +51 -40
  8. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  9. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  10. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +1 -1
  11. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +7 -7
  12. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +4 -4
  13. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +1 -1
  14. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  15. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  16. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +193 -193
  17. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  18. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/_CodeSignature/CodeResources +377 -0
  19. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  20. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +2 -2
  21. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +7 -7
  22. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +4 -4
  23. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +1 -1
  24. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +1 -1
  25. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  26. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +124 -124
  27. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +124 -124
  28. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  29. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +17 -39
  30. package/package.json +1 -1
  31. package/example/Gemfile +0 -10
  32. package/example/Gemfile.lock +0 -121
  33. package/example/android/app/build.gradle +0 -120
  34. package/example/android/app/debug.keystore +0 -0
  35. package/example/android/app/proguard-rules.pro +0 -10
  36. package/example/android/app/src/debug/AndroidManifest.xml +0 -9
  37. package/example/android/app/src/main/AndroidManifest.xml +0 -35
  38. package/example/android/app/src/main/java/com/freerasp/rn/example/MainActivity.kt +0 -22
  39. package/example/android/app/src/main/java/com/freerasp/rn/example/MainApplication.kt +0 -44
  40. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  41. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  42. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  43. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  44. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  45. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  46. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  47. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  48. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  49. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  50. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  51. package/example/android/app/src/main/res/values/strings.xml +0 -3
  52. package/example/android/app/src/main/res/values/styles.xml +0 -9
  53. package/example/android/build.gradle +0 -21
  54. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  55. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  56. package/example/android/gradle.properties +0 -39
  57. package/example/android/gradlew +0 -251
  58. package/example/android/gradlew.bat +0 -94
  59. package/example/android/settings.gradle +0 -6
  60. package/example/app.json +0 -4
  61. package/example/assets/arrow-down.png +0 -0
  62. package/example/assets/arrow-up.png +0 -0
  63. package/example/assets/checkmark-circle-outline.png +0 -0
  64. package/example/assets/checkmark-circle-outline.svg +0 -1
  65. package/example/assets/close-circle-outline.png +0 -0
  66. package/example/assets/close-circle-outline.svg +0 -1
  67. package/example/assets/talsec-logo.png +0 -0
  68. package/example/index.d.ts +0 -1
  69. package/example/index.js +0 -9
  70. package/example/ios/FreeraspRNExample/AppDelegate.swift +0 -30
  71. package/example/ios/FreeraspRNExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  72. package/example/ios/FreeraspRNExample/Images.xcassets/Contents.json +0 -6
  73. package/example/ios/FreeraspRNExample/Info.plist +0 -51
  74. package/example/ios/FreeraspRNExample/LaunchScreen.storyboard +0 -47
  75. package/example/ios/FreeraspRNExample/PrivacyInfo.xcprivacy +0 -37
  76. package/example/ios/FreeraspRNExample.xcodeproj/project.pbxproj +0 -488
  77. package/example/ios/FreeraspRNExample.xcodeproj/xcshareddata/xcschemes/FreeraspRNExample.xcscheme +0 -88
  78. package/example/ios/FreeraspRNExample.xcworkspace/contents.xcworkspacedata +0 -10
  79. package/example/ios/Podfile +0 -35
  80. package/example/metro.config.js +0 -39
  81. package/example/package.json +0 -42
  82. package/example/react-native.config.js +0 -10
  83. package/example/src/App.tsx +0 -329
  84. package/example/src/DemoApp.tsx +0 -392
  85. package/example/src/MalwareItem.tsx +0 -161
  86. package/example/src/MalwareModal.tsx +0 -116
  87. package/example/src/checks.ts +0 -28
  88. package/example/src/styles.ts +0 -10
  89. package/example/yarn.lock +0 -6263
@@ -14,11 +14,11 @@
14
14
  </data>
15
15
  <key>Headers/CurlWrapper.h</key>
16
16
  <data>
17
- YPmWO2chY7QXcewc3jZv2cbfmb0=
17
+ +/BZdehMbZTktyXpd1TfVf9L1TE=
18
18
  </data>
19
19
  <key>Headers/TalsecRuntime-Swift.h</key>
20
20
  <data>
21
- AJtWBFUXYRf4W/KXwUeX+2jc+kM=
21
+ /hUoXGGTi7vIdiKBlqtxp5Iwz54=
22
22
  </data>
23
23
  <key>Headers/TalsecRuntime_iOS.h</key>
24
24
  <data>
@@ -26,7 +26,7 @@
26
26
  </data>
27
27
  <key>Headers/curl.h</key>
28
28
  <data>
29
- MGd6GaWcpcq4zmxl2Yc6V0eCiHw=
29
+ LvMb8KdGM9H1BRrKId0CgKpQD/I=
30
30
  </data>
31
31
  <key>Headers/curlver.h</key>
32
32
  <data>
@@ -46,11 +46,11 @@
46
46
  </data>
47
47
  <key>Headers/multi.h</key>
48
48
  <data>
49
- XFnZ/tbTsn9RQZWgJA+JH3G0IEc=
49
+ WvSLoI6h5jIKte3k+mNbUFuFVpk=
50
50
  </data>
51
51
  <key>Headers/options.h</key>
52
52
  <data>
53
- bGSDtt6Xo3qdYi0VfOGDS9WmDT0=
53
+ GOKMw3bGfxoMmsny/FkGY3putw8=
54
54
  </data>
55
55
  <key>Headers/stdcheaders.h</key>
56
56
  <data>
@@ -66,7 +66,7 @@
66
66
  </data>
67
67
  <key>Headers/urlapi.h</key>
68
68
  <data>
69
- 6ewNz4KhQ3vMiVwKE0FeGvcziSk=
69
+ VQyVIjrt8oYo9v0Xdb8pUFMMcK8=
70
70
  </data>
71
71
  <key>Headers/websockets.h</key>
72
72
  <data>
@@ -74,11 +74,11 @@
74
74
  </data>
75
75
  <key>Info.plist</key>
76
76
  <data>
77
- EKBJ39Er6bsGyBj2kUGZV2YaI5Q=
77
+ eL5oFlB6wq1n2HB8CtBm1T2ZgRw=
78
78
  </data>
79
79
  <key>Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
80
80
  <data>
81
- Snhf0lfge7gf9wDYuki7R4+0r3o=
81
+ pMnu+U/rFxEOr6qt1QqIToB3V+k=
82
82
  </data>
83
83
  <key>Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
84
84
  <data>
@@ -92,13 +92,9 @@
92
92
  <data>
93
93
  llw484UKAnWPJb8CJpVj2CaHHDE=
94
94
  </data>
95
- <key>Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
96
- <data>
97
- LttgRhq4o3yYcdHcy5cq5RAOdXc=
98
- </data>
99
95
  <key>Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
100
96
  <data>
101
- Snhf0lfge7gf9wDYuki7R4+0r3o=
97
+ pMnu+U/rFxEOr6qt1QqIToB3V+k=
102
98
  </data>
103
99
  <key>Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
104
100
  <data>
@@ -112,10 +108,6 @@
112
108
  <data>
113
109
  4I0pGIDaoA0k3axTQo3rbxN5Nyc=
114
110
  </data>
115
- <key>Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
116
- <data>
117
- vOcUJx3m66QXlRxN6lAY0znCePM=
118
- </data>
119
111
  <key>Modules/module.modulemap</key>
120
112
  <data>
121
113
  5Cqpp15x1ZBnDyj7LgQmZiSGNYI=
@@ -153,14 +145,14 @@
153
145
  <dict>
154
146
  <key>hash2</key>
155
147
  <data>
156
- XK9v7A6j1HFIT/u9utdmimH3xayTKhGfVTwa/VwqMJQ=
148
+ wPSwe3k7PIhN59OveXzb7euBGLsZpNDCe3rxi3qSacY=
157
149
  </data>
158
150
  </dict>
159
151
  <key>Headers/TalsecRuntime-Swift.h</key>
160
152
  <dict>
161
153
  <key>hash2</key>
162
154
  <data>
163
- NDrb9uymxCv3EILBCb03Ruv2jyzstFGMjJsQEAdQx64=
155
+ adt8Xcyxs1KLY/8S2qf012ln9H6nElyeVP+HNFcjHM4=
164
156
  </data>
165
157
  </dict>
166
158
  <key>Headers/TalsecRuntime_iOS.h</key>
@@ -174,7 +166,7 @@
174
166
  <dict>
175
167
  <key>hash2</key>
176
168
  <data>
177
- hyJ7aIbsfMDCRI+ARpBX1Jw3+sot1wAzkDUWxyply4c=
169
+ u/SMN3beuzx0i2dt5e+l0JuybPQnoQxyGFOidtmUiuI=
178
170
  </data>
179
171
  </dict>
180
172
  <key>Headers/curlver.h</key>
@@ -209,14 +201,14 @@
209
201
  <dict>
210
202
  <key>hash2</key>
211
203
  <data>
212
- FD2mN3M4NcQ5kepkK7e4ocfQTwZWKOakpecxmWpQTl0=
204
+ yk/hky4WUCrFatYr3HMyyCgfMOytFyCTbgN8q7cxxdc=
213
205
  </data>
214
206
  </dict>
215
207
  <key>Headers/options.h</key>
216
208
  <dict>
217
209
  <key>hash2</key>
218
210
  <data>
219
- 4aYs+kd7ZacyxwDi5HndAEvgtgVL8+TJQf6w2j7ogYc=
211
+ cJIaFXm+hGzgpoSmWUWKB06w1VdqPmWQvY70kcfbGBg=
220
212
  </data>
221
213
  </dict>
222
214
  <key>Headers/stdcheaders.h</key>
@@ -244,7 +236,7 @@
244
236
  <dict>
245
237
  <key>hash2</key>
246
238
  <data>
247
- iSrxSVagkBguYG6xm0GO/0Rz3h0Zrc/y4xbNnYP1Joc=
239
+ E7gKC6f/76z3wisiOh4O5LEK4UPtG8h7qY2QGjvOctE=
248
240
  </data>
249
241
  </dict>
250
242
  <key>Headers/websockets.h</key>
@@ -258,7 +250,7 @@
258
250
  <dict>
259
251
  <key>hash2</key>
260
252
  <data>
261
- 3RE6bJTrmdO//gfNn1BrAxbyfUmzNhZKXK4s8mwML1g=
253
+ M2tkP6t2EGgayYHcgC1xOjoiFwWwoBeyiI8jVBJ6ya0=
262
254
  </data>
263
255
  </dict>
264
256
  <key>Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
@@ -282,18 +274,11 @@
282
274
  haSQY3upZ2WR6JkXg/Jxpph+ny4EtTDUg9TVsWeNUoU=
283
275
  </data>
284
276
  </dict>
285
- <key>Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
286
- <dict>
287
- <key>hash2</key>
288
- <data>
289
- tNrv+TUhk0hLua39mizAcIc5slauiky7fxSAR1jmXd0=
290
- </data>
291
- </dict>
292
277
  <key>Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
293
278
  <dict>
294
279
  <key>hash2</key>
295
280
  <data>
296
- 3RE6bJTrmdO//gfNn1BrAxbyfUmzNhZKXK4s8mwML1g=
281
+ M2tkP6t2EGgayYHcgC1xOjoiFwWwoBeyiI8jVBJ6ya0=
297
282
  </data>
298
283
  </dict>
299
284
  <key>Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
@@ -317,13 +302,6 @@
317
302
  1mruU/68fB6bnmgfh09YUKQnRXtJD6ahwH7mRkndURw=
318
303
  </data>
319
304
  </dict>
320
- <key>Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
321
- <dict>
322
- <key>hash2</key>
323
- <data>
324
- 319zfBpqehW38ijFsp2TMSYX+bwCbKY2TrBW52cK1IM=
325
- </data>
326
- </dict>
327
305
  <key>Modules/module.modulemap</key>
328
306
  <dict>
329
307
  <key>hash2</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freerasp-react-native",
3
- "version": "4.5.1",
3
+ "version": "4.5.2",
4
4
  "description": "React Native plugin for improving app security and threat monitoring on Android and iOS mobile devices.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/example/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
- ruby ">= 2.6.10"
5
-
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'
9
- gem 'xcodeproj', '< 1.26.0'
10
- gem 'concurrent-ruby', '< 1.3.4'
@@ -1,121 +0,0 @@
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.3)
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.9.0)
80
- mutex_m
81
- i18n (1.14.7)
82
- concurrent-ruby (~> 1.0)
83
- json (2.10.1)
84
- logger (1.6.6)
85
- minitest (5.25.4)
86
- molinillo (0.8.0)
87
- mutex_m (0.3.0)
88
- nanaimo (0.3.0)
89
- nap (1.1.0)
90
- netrc (0.11.0)
91
- nkf (0.2.0)
92
- public_suffix (4.0.7)
93
- rexml (3.4.1)
94
- ruby-macho (2.5.1)
95
- securerandom (0.3.2)
96
- typhoeus (1.4.1)
97
- ethon (>= 0.9.0)
98
- tzinfo (2.0.6)
99
- concurrent-ruby (~> 1.0)
100
- xcodeproj (1.25.1)
101
- CFPropertyList (>= 2.3.3, < 4.0)
102
- atomos (~> 0.1.3)
103
- claide (>= 1.0.2, < 2.0)
104
- colored2 (~> 3.1)
105
- nanaimo (~> 0.3.0)
106
- rexml (>= 3.3.6, < 4.0)
107
-
108
- PLATFORMS
109
- ruby
110
-
111
- DEPENDENCIES
112
- activesupport (>= 6.1.7.5, != 7.1.0)
113
- cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
114
- concurrent-ruby (< 1.3.4)
115
- xcodeproj (< 1.26.0)
116
-
117
- RUBY VERSION
118
- ruby 2.7.6p219
119
-
120
- BUNDLED WITH
121
- 2.1.4
@@ -1,120 +0,0 @@
1
- apply plugin: "com.android.application"
2
- apply plugin: "org.jetbrains.kotlin.android"
3
- apply plugin: "com.facebook.react"
4
-
5
- /**
6
- * This is the configuration block to customize your React Native Android app.
7
- * By default you don't need to apply any configuration, just uncomment the lines you need.
8
- */
9
- react {
10
- /* Folders */
11
- // The root of your project, i.e. where "package.json" lives. Default is '../..'
12
- // root = file("../../")
13
- // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
14
- // reactNativeDir = file("../../node_modules/react-native")
15
- // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
16
- // codegenDir = file("../../node_modules/@react-native/codegen")
17
- // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
18
- // cliFile = file("../../node_modules/react-native/cli.js")
19
-
20
- /* Variants */
21
- // The list of variants to that are debuggable. For those we're going to
22
- // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
23
- // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
24
- // debuggableVariants = ["liteDebug", "prodDebug"]
25
-
26
- /* Bundling */
27
- // A list containing the node command and its flags. Default is just 'node'.
28
- // nodeExecutableAndArgs = ["node"]
29
- //
30
- // The command to run when bundling. By default is 'bundle'
31
- // bundleCommand = "ram-bundle"
32
- //
33
- // The path to the CLI configuration file. Default is empty.
34
- // bundleConfig = file(../rn-cli.config.js)
35
- //
36
- // The name of the generated asset file containing your JS bundle
37
- // bundleAssetName = "MyApplication.android.bundle"
38
- //
39
- // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
40
- // entryFile = file("../js/MyApplication.android.js")
41
- //
42
- // A list of extra flags to pass to the 'bundle' commands.
43
- // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
44
- // extraPackagerArgs = []
45
-
46
- /* Hermes Commands */
47
- // The hermes compiler command to run. By default it is 'hermesc'
48
- // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
49
- //
50
- // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
51
- // hermesFlags = ["-O", "-output-source-map"]
52
-
53
- /* Autolinking */
54
- autolinkLibrariesWithApp()
55
- }
56
-
57
- /**
58
- * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
59
- */
60
- def enableProguardInReleaseBuilds = true
61
-
62
- /**
63
- * The preferred build flavor of JavaScriptCore (JSC)
64
- *
65
- * For example, to use the international variant, you can use:
66
- * `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
67
- *
68
- * The international variant includes ICU i18n library and necessary data
69
- * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
70
- * give correct results when using with locales other than en-US. Note that
71
- * this variant is about 6MiB larger per architecture than default.
72
- */
73
- def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
74
-
75
- android {
76
- ndkVersion rootProject.ext.ndkVersion
77
- buildToolsVersion rootProject.ext.buildToolsVersion
78
- compileSdk rootProject.ext.compileSdkVersion
79
-
80
- namespace "com.freerasp.rn.example"
81
- defaultConfig {
82
- applicationId "com.freerasp.rn.example"
83
- minSdkVersion rootProject.ext.minSdkVersion
84
- targetSdkVersion rootProject.ext.targetSdkVersion
85
- versionCode 1
86
- versionName "1.0"
87
- }
88
- signingConfigs {
89
- debug {
90
- storeFile file('debug.keystore')
91
- storePassword 'android'
92
- keyAlias 'androiddebugkey'
93
- keyPassword 'android'
94
- }
95
- }
96
- buildTypes {
97
- debug {
98
- signingConfig signingConfigs.debug
99
- }
100
- release {
101
- // Caution! In production, you need to generate your own keystore file.
102
- // see https://reactnative.dev/docs/signed-apk-android.
103
- signingConfig signingConfigs.debug
104
- minifyEnabled enableProguardInReleaseBuilds
105
- shrinkResources true
106
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
107
- }
108
- }
109
- }
110
-
111
- dependencies {
112
- // The version of react-native is set by the React Native Gradle Plugin
113
- implementation("com.facebook.react:react-android")
114
-
115
- if (hermesEnabled.toBoolean()) {
116
- implementation("com.facebook.react:hermes-android")
117
- } else {
118
- implementation jscFlavor
119
- }
120
- }
Binary file
@@ -1,10 +0,0 @@
1
- # Add project specific ProGuard rules here.
2
- # By default, the flags in this file are appended to flags specified
3
- # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
- # You can edit the include path and order by changing the proguardFiles
5
- # directive in build.gradle.
6
- #
7
- # For more details, see
8
- # http://developer.android.com/guide/developing/tools/proguard.html
9
-
10
- # Add any project specific keep options here:
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- xmlns:tools="http://schemas.android.com/tools">
4
-
5
- <application
6
- android:usesCleartextTraffic="true"
7
- tools:targetApi="28"
8
- tools:ignore="GoogleAppIndexingWarning"/>
9
- </manifest>
@@ -1,35 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
-
3
- <uses-permission android:name="android.permission.INTERNET" />
4
-
5
- <!-- These permissions are needed if want to detect screen capturing and recording. -->
6
- <uses-permission android:name="android.permission.DETECT_SCREEN_CAPTURE" />
7
- <uses-permission android:name="android.permission.DETECT_SCREEN_RECORDING" />
8
-
9
- <!-- These permissions are needed if want to detect location spoofing and unsecure wifi. -->
10
- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
11
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
12
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
13
-
14
- <application
15
- android:name=".MainApplication"
16
- android:label="@string/app_name"
17
- android:icon="@mipmap/ic_launcher"
18
- android:roundIcon="@mipmap/ic_launcher_round"
19
- android:allowBackup="false"
20
- android:theme="@style/AppTheme"
21
- android:supportsRtl="true">
22
- <activity
23
- android:name=".MainActivity"
24
- android:label="@string/app_name"
25
- android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
26
- android:launchMode="singleTask"
27
- android:windowSoftInputMode="adjustResize"
28
- android:exported="true">
29
- <intent-filter>
30
- <action android:name="android.intent.action.MAIN" />
31
- <category android:name="android.intent.category.LAUNCHER" />
32
- </intent-filter>
33
- </activity>
34
- </application>
35
- </manifest>
@@ -1,22 +0,0 @@
1
- package com.freerasp.rn.example
2
-
3
- import com.facebook.react.ReactActivity
4
- import com.facebook.react.ReactActivityDelegate
5
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6
- import com.facebook.react.defaults.DefaultReactActivityDelegate
7
-
8
- class MainActivity : ReactActivity() {
9
-
10
- /**
11
- * Returns the name of the main component registered from JavaScript. This is used to schedule
12
- * rendering of the component.
13
- */
14
- override fun getMainComponentName(): String = "FreeraspRNExample"
15
-
16
- /**
17
- * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
18
- * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
19
- */
20
- override fun createReactActivityDelegate(): ReactActivityDelegate =
21
- DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
22
- }
@@ -1,44 +0,0 @@
1
- package com.freerasp.rn.example
2
-
3
- import android.app.Application
4
- import com.facebook.react.PackageList
5
- import com.facebook.react.ReactApplication
6
- import com.facebook.react.ReactHost
7
- import com.facebook.react.ReactNativeHost
8
- import com.facebook.react.ReactPackage
9
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
10
- import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11
- import com.facebook.react.defaults.DefaultReactNativeHost
12
- import com.facebook.react.soloader.OpenSourceMergedSoMapping
13
- import com.facebook.soloader.SoLoader
14
-
15
- class MainApplication : Application(), ReactApplication {
16
-
17
- override val reactNativeHost: ReactNativeHost =
18
- object : DefaultReactNativeHost(this) {
19
- override fun getPackages(): List<ReactPackage> =
20
- PackageList(this).packages.apply {
21
- // Packages that cannot be autolinked yet can be added manually here, for example:
22
- // add(MyReactNativePackage())
23
- }
24
-
25
- override fun getJSMainModuleName(): String = "index"
26
-
27
- override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
28
-
29
- override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
30
- override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
31
- }
32
-
33
- override val reactHost: ReactHost
34
- get() = getDefaultReactHost(applicationContext, reactNativeHost)
35
-
36
- override fun onCreate() {
37
- super.onCreate()
38
- SoLoader.init(this, OpenSourceMergedSoMapping)
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
- }
43
- }
44
- }
@@ -1,37 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Copyright (C) 2014 The Android Open Source Project
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- -->
16
- <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
- android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
- android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
- android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
- android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
- >
22
-
23
- <selector>
24
- <!--
25
- This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
26
- The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
27
- NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
28
-
29
- <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
30
-
31
- For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
32
- -->
33
- <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
34
- <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
35
- </selector>
36
-
37
- </inset>
@@ -1,3 +0,0 @@
1
- <resources>
2
- <string name="app_name">FreeraspRNExample</string>
3
- </resources>
@@ -1,9 +0,0 @@
1
- <resources>
2
-
3
- <!-- Base application theme. -->
4
- <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
5
- <!-- Customize your theme here. -->
6
- <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
7
- </style>
8
-
9
- </resources>
@@ -1,21 +0,0 @@
1
- buildscript {
2
- ext {
3
- buildToolsVersion = "35.0.0"
4
- minSdkVersion = 24
5
- compileSdkVersion = 35
6
- targetSdkVersion = 35
7
- ndkVersion = "27.1.12297006"
8
- kotlinVersion = "2.0.21"
9
- }
10
- repositories {
11
- google()
12
- mavenCentral()
13
- }
14
- dependencies {
15
- classpath("com.android.tools.build:gradle")
16
- classpath("com.facebook.react:react-native-gradle-plugin")
17
- classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
18
- }
19
- }
20
-
21
- apply plugin: "com.facebook.react.rootproject"