catalyst-core-internal 0.0.3-canary.9 → 0.1.0

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 (191) hide show
  1. package/README.md +2 -3
  2. package/bin/catalyst.js +28 -15
  3. package/changelog.md +138 -10
  4. package/dist/native/androidProject/app/build.gradle.kts +294 -37
  5. package/dist/native/androidProject/app/proguard-rules.pro +85 -14
  6. package/dist/native/androidProject/app/src/debug/res/xml/network_security_config.xml +8 -0
  7. package/dist/native/androidProject/app/src/main/AndroidManifest.xml +29 -4
  8. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/BridgeMessageValidator.kt +552 -0
  9. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/CatalystConstants.kt +109 -0
  10. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/CustomWebview.kt +1016 -0
  11. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/MainActivity.kt +546 -0
  12. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/MetricsMonitor.kt +341 -0
  13. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/NativeBridge.kt +1239 -0
  14. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/SplashActivity.kt +111 -0
  15. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/URLWhitelistManager.kt +231 -0
  16. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/Utils.kt +58 -0
  17. package/dist/native/androidProject/app/src/main/java/{com/example/myapplication → io/yourname/androidproject}/WebCacheManager.kt +166 -36
  18. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/design/DesignTokens.kt +307 -0
  19. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/EmulatorDetector.kt +203 -0
  20. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/FridaDetector.kt +187 -0
  21. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityAlertHandler.kt +170 -0
  22. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityAlertUI.kt +366 -0
  23. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityBottomSheet.kt +138 -0
  24. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityCheckManager.kt +511 -0
  25. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/security/SecurityCheckScheduler.kt +68 -0
  26. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/BridgeUtils.kt +257 -0
  27. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/CameraUtils.kt +269 -0
  28. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/DeviceInfoUtils.kt +85 -0
  29. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/DownloadUtils.kt +273 -0
  30. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileSizeRouterUtils.kt +347 -0
  31. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileUtils.kt +335 -0
  32. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FrameworkServerUtils.kt +411 -0
  33. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/IntentUtils.kt +299 -0
  34. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/KeyboardUtil.kt +82 -0
  35. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/NetworkUtils.kt +105 -0
  36. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/NotificationConstants.kt +28 -0
  37. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/NotificationUtils.kt +639 -0
  38. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/SafeAreaUtils.kt +62 -0
  39. package/dist/native/androidProject/app/src/main/res/drawable/splashscreen_fallback.png +0 -0
  40. package/dist/native/androidProject/app/src/main/res/layout/activity_main.xml +2 -34
  41. package/dist/native/androidProject/app/src/main/res/layout/activity_splash.xml +20 -0
  42. package/dist/native/androidProject/app/src/main/res/values/strings.xml +1 -1
  43. package/dist/native/androidProject/app/src/main/res/values/themes.xml +23 -0
  44. package/dist/native/androidProject/app/src/main/res/values-night/themes.xml +11 -0
  45. package/dist/native/androidProject/app/src/main/res/xml/file_paths.xml +18 -0
  46. package/dist/native/androidProject/app/src/main/res/xml/network_security_config.xml +12 -0
  47. package/dist/native/androidProject/app/src/noFcm/java/io/yourname/androidproject/utils/NotificationManager.kt +166 -0
  48. package/dist/native/androidProject/app/src/noFcm/java/io/yourname/androidproject/utils/PushNotificationUtils.kt +94 -0
  49. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/BridgeMessageValidatorTest.kt +267 -0
  50. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/BridgeUtilsTest.kt +286 -0
  51. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/CameraUtilsTest.kt +296 -0
  52. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/ConfigMappingTest.kt +594 -0
  53. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/CustomWebviewTest.kt +466 -0
  54. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/DeviceInfoUtilsTest.kt +187 -0
  55. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/FileUtilsTest.kt +304 -0
  56. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/NativeBridgeTest.kt +424 -0
  57. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/NotificationUtilsTest.kt +469 -0
  58. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/SecurityBridgeTest.kt +199 -0
  59. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/URLWhitelistManagerTest.kt +462 -0
  60. package/dist/native/androidProject/app/src/test/java/io/yourname/androidproject/WebCacheManagerTest.kt +391 -0
  61. package/dist/native/androidProject/app/src/withFcm/java/io/yourname/androidproject/utils/NotificationManager.kt +224 -0
  62. package/dist/native/androidProject/app/src/withFcm/java/io/yourname/androidproject/utils/PushNotificationUtils.kt +399 -0
  63. package/dist/native/androidProject/build.gradle.kts +6 -0
  64. package/dist/native/androidProject/gradle/libs.versions.toml +9 -3
  65. package/dist/native/androidProject/gradle/wrapper/gradle-wrapper.properties +1 -1
  66. package/dist/native/androidProject/keystore/Untitled +0 -0
  67. package/dist/native/androidProject/keystore/release-key.jks +0 -0
  68. package/dist/native/androidProject/settings.gradle.kts +1 -1
  69. package/dist/native/androidSetup.js +4 -3
  70. package/dist/native/assets/catalyst.png +0 -0
  71. package/dist/native/bridge/WebBridge.js +59 -0
  72. package/dist/native/bridge/constants/NativeInterfaces.js +42 -0
  73. package/dist/native/bridge/errors.js +39 -0
  74. package/dist/native/bridge/hooks.js +137 -0
  75. package/dist/native/bridge/safeArea.js +5 -0
  76. package/dist/native/bridge/standardizedHooks.js +98 -0
  77. package/dist/native/bridge/useBaseHook.js +42 -0
  78. package/dist/native/bridge/utils/CameraUtils.js +58 -0
  79. package/dist/native/bridge/utils/FileObjectConverter.js +40 -0
  80. package/dist/native/bridge/utils/NativeBridge.js +109 -0
  81. package/dist/native/buildAppAndroid.js +149 -17
  82. package/dist/native/buildAppIos.js +293 -25
  83. package/dist/native/iosnativeWebView/Configurations/Debug.xcconfig +21 -0
  84. package/dist/native/iosnativeWebView/Configurations/Release.xcconfig +24 -0
  85. package/dist/native/iosnativeWebView/Configurations/Shared.xcconfig +50 -0
  86. package/dist/native/iosnativeWebView/Package.resolved +32 -0
  87. package/dist/native/iosnativeWebView/Package.swift +37 -0
  88. package/dist/native/iosnativeWebView/Sources/CatalystNotifications/LocalNotificationHandler.swift +293 -0
  89. package/dist/native/iosnativeWebView/Sources/CatalystNotifications/NotificationManager.swift +299 -0
  90. package/dist/native/iosnativeWebView/Sources/CatalystNotifications/PushNotificationHandler.swift +199 -0
  91. package/dist/native/iosnativeWebView/Sources/Core/Constants/CatalystConstants.swift +125 -0
  92. package/dist/native/iosnativeWebView/Sources/Core/Constants/ConfigConstants.swift +70 -0
  93. package/dist/native/iosnativeWebView/Sources/Core/Notifications/NotificationModels.swift +156 -0
  94. package/dist/native/iosnativeWebView/Sources/Core/Protocols/NotificationHandlerProtocol.swift +35 -0
  95. package/dist/native/iosnativeWebView/Sources/Core/Utils/BootTimingUtility.swift +26 -0
  96. package/dist/native/iosnativeWebView/{iosnativeWebView → Sources/Core/Utils}/CacheManager.swift +69 -36
  97. package/dist/native/iosnativeWebView/Sources/Core/Utils/CameraTransportUtils.swift +363 -0
  98. package/dist/native/iosnativeWebView/Sources/Core/Utils/DeviceInfoUtils.swift +67 -0
  99. package/dist/native/iosnativeWebView/Sources/Core/Utils/FilePickerHandler.swift +1053 -0
  100. package/dist/native/iosnativeWebView/Sources/Core/Utils/FrameworkServerUtils.swift +901 -0
  101. package/dist/native/iosnativeWebView/Sources/Core/Utils/ImageHandler.swift +474 -0
  102. package/dist/native/iosnativeWebView/Sources/Core/Utils/NetworkMonitor.swift +112 -0
  103. package/dist/native/iosnativeWebView/Sources/Core/Utils/NotificationHandlerProvider.swift +20 -0
  104. package/dist/native/iosnativeWebView/Sources/Core/Utils/NullNotificationHandler.swift +85 -0
  105. package/dist/native/iosnativeWebView/{iosnativeWebView → Sources/Core/Utils}/ResourceURLProtocol.swift +60 -25
  106. package/dist/native/iosnativeWebView/Sources/Core/Utils/SafeAreaUtils.swift +132 -0
  107. package/dist/native/iosnativeWebView/Sources/Core/Utils/ScreenSecureManager.swift +131 -0
  108. package/dist/native/iosnativeWebView/Sources/Core/Utils/URLWhitelistManager.swift +224 -0
  109. package/dist/native/iosnativeWebView/Sources/Core/Utils/WebKitConfig.swift +43 -0
  110. package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeCommandHandler.swift +991 -0
  111. package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeDelegateHandler.swift +166 -0
  112. package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeFileHandler.swift +340 -0
  113. package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeJavaScriptInterface.swift +149 -0
  114. package/dist/native/iosnativeWebView/Sources/Core/WebView/BridgeMessageValidator.swift +611 -0
  115. package/dist/native/iosnativeWebView/Sources/Core/WebView/NativeBridge.swift +334 -0
  116. package/dist/native/iosnativeWebView/Sources/Core/WebView/SplashView.swift +95 -0
  117. package/dist/native/iosnativeWebView/Sources/Core/WebView/SplashViewModel.swift +86 -0
  118. package/dist/native/iosnativeWebView/Sources/Core/WebView/WebView.swift +181 -0
  119. package/dist/native/iosnativeWebView/Sources/Core/WebView/WebViewModel.swift +182 -0
  120. package/dist/native/iosnativeWebView/Sources/Core/WebView/WebViewNavigationDelegate.swift +395 -0
  121. package/dist/native/iosnativeWebView/iosnativeWebView/AppDelegate.swift +84 -0
  122. package/dist/native/iosnativeWebView/iosnativeWebView/Assets.xcassets/AccentColor.colorset/Contents.json +8 -8
  123. package/dist/native/iosnativeWebView/iosnativeWebView/Assets.xcassets/AppIcon.appiconset/Contents.json +10 -10
  124. package/dist/native/iosnativeWebView/iosnativeWebView/Assets.xcassets/Contents.json +4 -4
  125. package/dist/native/iosnativeWebView/iosnativeWebView/ContentView.swift +79 -9
  126. package/dist/native/iosnativeWebView/iosnativeWebView/Info-Release.plist +21 -0
  127. package/dist/native/iosnativeWebView/iosnativeWebView/Info.plist +15 -0
  128. package/dist/native/iosnativeWebView/iosnativeWebView/Preview Content/Preview Assets.xcassets/Contents.json +4 -4
  129. package/dist/native/iosnativeWebView/iosnativeWebView/iosnativeWebView.entitlements +12 -0
  130. package/dist/native/iosnativeWebView/iosnativeWebView/iosnativeWebViewApp.swift +80 -0
  131. package/dist/native/iosnativeWebView/iosnativeWebView/localhost.p12 +0 -0
  132. package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.pbxproj +118 -92
  133. package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +69 -0
  134. package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/xcshareddata/xcschemes/iosnativeWebView.xcscheme +9 -4
  135. package/dist/native/iosnativeWebView/iosnativeWebView.xctestplan +47 -0
  136. package/dist/native/iosnativeWebView/iosnativeWebViewTests/BootTimingUtilityTests.swift +236 -0
  137. package/dist/native/iosnativeWebView/iosnativeWebViewTests/BridgeCommandHandlerSecurityTests.swift +212 -0
  138. package/dist/native/iosnativeWebView/iosnativeWebViewTests/BridgeMessageValidatorTests.swift +418 -0
  139. package/dist/native/iosnativeWebView/iosnativeWebViewTests/CacheManagerTests.swift +390 -0
  140. package/dist/native/iosnativeWebView/iosnativeWebViewTests/ConfigMappingTests.swift +299 -0
  141. package/dist/native/iosnativeWebView/iosnativeWebViewTests/FilePickerHandlerTests.swift +383 -0
  142. package/dist/native/iosnativeWebView/iosnativeWebViewTests/FrameworkServerUtilsTests.swift +391 -0
  143. package/dist/native/iosnativeWebView/iosnativeWebViewTests/NativeBridgeTests.swift +581 -0
  144. package/dist/native/iosnativeWebView/iosnativeWebViewTests/NotificationHandlerTests.swift +430 -0
  145. package/dist/native/iosnativeWebView/iosnativeWebViewTests/ScreenSecureManagerTests.swift +121 -0
  146. package/dist/native/iosnativeWebView/iosnativeWebViewTests/URLWhitelistManagerTests.swift +367 -0
  147. package/dist/native/iosnativeWebView/iosnativeWebViewTests/WebViewTests.swift +440 -0
  148. package/dist/native/renameAndroidProject.js +89 -0
  149. package/dist/native/setupEmulatorIos.js +22 -5
  150. package/dist/native/setupServer.js +28 -0
  151. package/dist/native/terminalProgress.js +10 -10
  152. package/dist/native/utils.js +4 -5
  153. package/dist/otel.js +4 -0
  154. package/dist/scripts/build.js +2 -2
  155. package/dist/scripts/devBuild.js +2 -2
  156. package/dist/scripts/loadEnvironmentVariables.js +4 -1
  157. package/dist/scripts/scriptUtils.js +2 -2
  158. package/dist/sentry.js +5 -0
  159. package/dist/server/renderer/document/Body.js +4 -4
  160. package/dist/server/renderer/document/Head.js +1 -1
  161. package/dist/server/renderer/extract.js +3 -3
  162. package/dist/server/renderer/handler.js +13 -11
  163. package/dist/webpack/base.babel.js +1 -1
  164. package/dist/webpack/development.client.babel.js +1 -1
  165. package/package.json +10 -5
  166. package/dist/native/androidProject/.idea/.name +0 -1
  167. package/dist/native/androidProject/.idea/AndroidProjectSystem.xml +0 -6
  168. package/dist/native/androidProject/.idea/codeStyles/Project.xml +0 -123
  169. package/dist/native/androidProject/.idea/codeStyles/codeStyleConfig.xml +0 -5
  170. package/dist/native/androidProject/.idea/compiler.xml +0 -6
  171. package/dist/native/androidProject/.idea/deploymentTargetSelector.xml +0 -18
  172. package/dist/native/androidProject/.idea/gradle.xml +0 -20
  173. package/dist/native/androidProject/.idea/kotlinc.xml +0 -6
  174. package/dist/native/androidProject/.idea/migrations.xml +0 -10
  175. package/dist/native/androidProject/.idea/misc.xml +0 -9
  176. package/dist/native/androidProject/.idea/other.xml +0 -329
  177. package/dist/native/androidProject/.idea/runConfigurations.xml +0 -17
  178. package/dist/native/androidProject/.idea/vcs.xml +0 -8
  179. package/dist/native/androidProject/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt +0 -24
  180. package/dist/native/androidProject/app/src/main/assets/webview_config.properties +0 -5
  181. package/dist/native/androidProject/app/src/main/cpp/CMakeLists.txt +0 -41
  182. package/dist/native/androidProject/app/src/main/cpp/native-lib.cpp +0 -22
  183. package/dist/native/androidProject/app/src/main/java/com/example/myapplication/CustomWebview.kt +0 -389
  184. package/dist/native/androidProject/app/src/main/java/com/example/myapplication/MainActivity.kt +0 -123
  185. package/dist/native/androidProject/app/src/test/java/com/example/myapplication/ExampleUnitTest.kt +0 -17
  186. package/dist/native/iosnativeWebView/iosnativeWebView/ConfigConstants.swift +0 -7
  187. package/dist/native/iosnativeWebView/iosnativeWebView/WebView.swift +0 -79
  188. package/dist/native/iosnativeWebView/iosnativeWebView/WebViewModel.swift +0 -47
  189. package/dist/native/iosnativeWebView/iosnativeWebView/WebViewNavigationDelegate.swift +0 -140
  190. package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.xcworkspace/xcuserdata/mayankmahavar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  191. package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/xcuserdata/mayankmahavar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -32
package/README.md CHANGED
@@ -9,14 +9,13 @@
9
9
 
10
10
  - Overview
11
11
  - Installation
12
-
12
+
13
13
  ## Overview
14
14
 
15
15
  Catalyst offers a comprehensive suite of features designed for modern web development. It includes isomorphic rendering for optimal performance, an extendable server with full-stack capabilities, and configurable state management. The framework employs smart prefetching of data and chunks, allows easy configuration of global styles and layouts, and provides SEO optimization at both global and page levels.
16
16
 
17
17
  This version adds support for Universal app for both Android and iOS. Please checkout [Universal App Documentaion](https://catalyst.1mg.com/public_docs/content/Universal%20App/RunUniversalApp)
18
18
 
19
-
20
19
  ## Installation
21
20
 
22
21
  **System Requirements**
@@ -38,7 +37,7 @@ You will see some prompts to configure your application.
38
37
  cd <name-of-your-project> && npm run start
39
38
  ```
40
39
 
41
- The development server will start at ```http://localhost:3005```
40
+ The development server will start at `http://localhost:3005`
42
41
 
43
42
  ## Documentation
44
43
 
package/bin/catalyst.js CHANGED
@@ -8,9 +8,17 @@ const args = process.argv.slice(2)
8
8
 
9
9
  // Array of valid commands
10
10
  const validCommands = [
11
- "build", "start", "serve", "devBuild", "devServe",
12
- "buildApp", "buildApp:ios", "buildApp:android",
13
- "setupEmulator", "setupEmulator:ios", "setupEmulator:android"
11
+ "build",
12
+ "start",
13
+ "serve",
14
+ "devBuild",
15
+ "devServe",
16
+ "buildApp",
17
+ "buildApp:ios",
18
+ "buildApp:android",
19
+ "setupEmulator",
20
+ "setupEmulator:ios",
21
+ "setupEmulator:android",
14
22
  ]
15
23
 
16
24
  // Map of platform-specific commands to their script paths
@@ -18,17 +26,16 @@ const platformScripts = {
18
26
  "setupEmulator:ios": "../dist/native/setupEmulatorIos.js",
19
27
  "setupEmulator:android": "../dist/native/androidSetup.js",
20
28
  "buildApp:ios": "../dist/native/buildAppIos.js",
21
- "buildApp:android": "../dist/native/buildAppAndroid.js"
29
+ "buildApp:android": "../dist/native/buildAppAndroid.js",
22
30
  }
23
31
 
24
32
  // Helper to check if arg is a platform command
25
33
  const isPlatformCommand = (arg, prefix) => {
26
34
  if (!arg.startsWith(`${prefix}:`)) return false
27
- const platform = arg.split(':')[1]
28
- return ['ios', 'android'].includes(platform) || platform === undefined
35
+ const platform = arg.split(":")[1]
36
+ return ["ios", "android"].includes(platform) || platform === undefined
29
37
  }
30
38
 
31
-
32
39
  // Helper function to run a platform command
33
40
  const runPlatformCommand = (baseCommand, platform) => {
34
41
  const command = `${baseCommand}:${platform}`
@@ -42,7 +49,7 @@ const runPlatformCommand = (baseCommand, platform) => {
42
49
 
43
50
  // Helper function to run commands for all platforms
44
51
  const runAllPlatforms = (baseCommand) => {
45
- const platforms = ['ios', 'android']
52
+ const platforms = ["ios", "android"]
46
53
  for (const platform of platforms) {
47
54
  const result = runPlatformCommand(baseCommand, platform)
48
55
  if (result.status !== 0) {
@@ -54,8 +61,14 @@ const runAllPlatforms = (baseCommand) => {
54
61
  }
55
62
 
56
63
  const scriptIndex = args.findIndex(
57
- (x) => x === "build" || x === "start" || x === "serve" || x === "devBuild" || x === "devServe" ||
58
- isPlatformCommand(x, 'buildApp') || isPlatformCommand(x, 'setupEmulator')
64
+ (x) =>
65
+ x === "build" ||
66
+ x === "start" ||
67
+ x === "serve" ||
68
+ x === "devBuild" ||
69
+ x === "devServe" ||
70
+ isPlatformCommand(x, "buildApp") ||
71
+ isPlatformCommand(x, "setupEmulator")
59
72
  )
60
73
  const script = scriptIndex === -1 ? args[0] : args[scriptIndex]
61
74
  const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : []
@@ -92,17 +105,17 @@ function handleProcessResult(result) {
92
105
  if (result.signal === "SIGKILL") {
93
106
  console.log(
94
107
  "The build failed because the process exited too early. " +
95
- "This probably means the system ran out of memory or someone called " +
96
- "`kill -9` on the process."
108
+ "This probably means the system ran out of memory or someone called " +
109
+ "`kill -9` on the process."
97
110
  )
98
111
  } else if (result.signal === "SIGTERM") {
99
112
  console.log(
100
113
  "The build failed because the process exited too early. " +
101
- "Someone might have called `kill` or `killall`, or the system could " +
102
- "be shutting down."
114
+ "Someone might have called `kill` or `killall`, or the system could " +
115
+ "be shutting down."
103
116
  )
104
117
  }
105
118
  process.exit(1)
106
119
  }
107
120
  process.exit(result.status)
108
- }
121
+ }
package/changelog.md CHANGED
@@ -1,19 +1,147 @@
1
1
  # Changelog
2
2
 
3
- ## [0.0.3-canary.3] - 06-03-2025
3
+ ## [0.1.0-canary.4] - 2026-02-12
4
4
 
5
- ## Cache Management Updates
5
+ - Added Google Sign-In support for both Android and iOS in Catalyst, enabling a unified native authentication experience for apps built on the framework.
6
+ - Improved release/build reliability with related bridge and CI updates, making integration smoother and more consistent across platforms.
6
7
 
7
- ## Overview
8
- This PR introduces native WebView implementations for Android, along with significant cache management improvements and bug fixes.
8
+ ## [0.1.0-canary.3] - 2026-02-04
9
9
 
10
- ## Changes
10
+ - Android device security: added root, emulator, and Frida detection with launch-time checks and a Material Design 3 bottom sheet threat alert UI
11
11
 
12
- - Increased buffer size for `BufferedInputStream` in `WebCacheManager.kt` to 32KB (32 * 1024) for optimized cache file reading
13
- - Refactored `MainActivity.kt` to use `properties.getProperty` instead of `jsonObject.optString` for configuration values
12
+ ## [0.1.0-canary.2] - 2026-01-28
14
13
 
15
- ### Fixed
16
- - Corrected prompt string in `utils.js` from "CSS pattern" to "Cache pattern"
14
+ - Adds mono-repository support for catalyst
15
+ - Notifications sound channel bug fix
16
+
17
+ ## [0.1.0-canary.1] - 2026-01-12
18
+
19
+ - Universal Merge
20
+
21
+ ## [0.0.3-canary.20] - 2025-12-12
22
+
23
+ - Patch: Allow localhost traffic to be served from http
24
+
25
+ ## [0.0.3-canary.19] - 2025-12-09
26
+
27
+ - Offline fallback support: packages `public/offline.html` into Android/iOS bundles and shows it automatically when connectivity drops (with retry handling)
28
+ - Notification refactor: streamlined config toggle for local vs push, centralized permission/asset handling, and simpler routing into the web app
29
+ - Access control: combined access control config for ios
30
+
31
+ ## [0.0.3-canary.18] - 2025-11-19
32
+
33
+ - Configuration Files
34
+ - Android Native WebView - MainActivity.kt
35
+ - Android Native WebView - CustomWebview.kt
36
+
37
+ ## [0.0.3-canary.17] - 2025-11-19
38
+
39
+ - ✨ Added complete notification system (local & push)
40
+ - 🔔 New useNotification() React hook
41
+ - 📱 Firebase Cloud Messaging conditional build support
42
+ - 🤖 Android notification handling in MainActivity
43
+ - 🔧 5 new notification commands + 5 callbacks in NativeBridge
44
+ - 📦 Auto-processing of notification icons & sounds
45
+ - ⚙️ Conditional dependencies based on notification config
46
+ - 🧹 Updated .gitignore & .npmignore
47
+ - 📋 Enhanced build process with automatic permission injection
48
+ - 🔗 Deep link integration with notifications
49
+
50
+ ## [0.0.3-canary.16] - 2025-11-19
51
+
52
+ - FeaturesGallery Support for File Picker: Enhanced file picker to open native gallery for selecting images and videos
53
+ - HTTPS Framework Server: Enabled HTTPS support for the framework server with self-signed SSL certificate
54
+ - MIME Type Handling: Fixed and improved MIME type detection and handling in the file picker
55
+
56
+ ## [0.0.3-canary.15] - 2025-11-19
57
+
58
+ - Adding Android release support and appInfo key
59
+
60
+ ## [0.0.3-canary.14] - 2025-09-29
61
+
62
+ - Android custom splashscreen
63
+
64
+ ## [0.0.3-canary.13] - 2025-09-28
65
+
66
+ - Multi file support in useFilePicker hook
67
+ - Android multiple app icon support
68
+ - Android whitelisting toggle support
69
+
70
+ ## [0.0.3-canary.12] - 2025-09-26
71
+
72
+ - Universal App Context: Added comprehensive context support for building universal mobile applications
73
+ - OpenTelemetry SDK Integration: Built-in support for observability and performance monitoring with Otel SDK
74
+
75
+ ## [0.0.3-canary.11] - 2025-09-26
76
+
77
+ - Build organization: Store APKs and iOS builds organized by generation date and time for better tracking and management
78
+ - Enhanced Android native support: Add support for native keyboard and webview resizing in Android
79
+ - Device info API web support: Web support in device info API
80
+
81
+ ## [0.0.3-canary.10] - 2025-09-11
82
+
83
+ - **Sentry import bug fix**
84
+ - **Open telemetry SDK**
85
+
86
+ ## [0.0.3-canary.9] - 2025-09-11
87
+
88
+ - **App name configuration**
89
+ - **Device Info API**
90
+ - **Access control configuration**
91
+
92
+ ## [0.0.3-canary.8] - 2025-01-06
93
+
94
+ - **App icon configuration**
95
+ - **Splash screen integration**
96
+ - **Url Whitelisting**
97
+
98
+ ## [0.0.3-canary.7] - 2025-01-06
99
+
100
+ ### 🚀 Features
101
+
102
+ - **Native API Integration**: Enhanced native module integration for better performance
103
+ - **Automated IP Resolution**: Intelligent network detection eliminates manual IP configuration
104
+ - **Universal Build System**: Streamlined one-command builds for both Android and iOS platforms
105
+ - **Enhanced CLI Interface**: Improved command-line tools for better developer experience
106
+
107
+ ### 🐛 Bug Fixes
108
+
109
+ - Fixed IP address detection issues on development environments
110
+ - Resolved build configuration conflicts between platforms
111
+ - Improved error handling and recovery mechanisms
112
+
113
+ ### 🔧 Improvements
114
+
115
+ - **Performance**: Optimized native module loading and execution
116
+ - **Developer Experience**: Enhanced CLI with better error messages and debugging info
117
+ - **Configuration**: Dynamic config updates without requiring restarts
118
+ - **Build Process**: Faster and more reliable build pipeline
119
+
120
+ ### 🧪 Testing & Validation
121
+
122
+ - ✅ **Android Build**: Verified APK generation, installation, and runtime behavior
123
+ - ✅ **iOS Build**: Tested build process and device compatibility
124
+ - ✅ **IP Detection**: Validated automatic network resolution across platforms
125
+ - ✅ **Native Modules**: Confirmed API integration and performance benchmarks
126
+ - ✅ **CLI Operations**: Tested enhanced command-line workflows and error handling
127
+
128
+ ### 🔄 Breaking Changes
129
+
130
+ **None** - All changes maintain backward compatibility while enhancing existing functionality
131
+
132
+ ### 📝 Technical Details
133
+
134
+ - Improved native API bridge for better cross-platform communication
135
+ - Enhanced error reporting with detailed stack traces and suggestions
136
+ - Optimized build configuration for faster development cycles
137
+ - Added comprehensive logging for debugging and monitoring
138
+
139
+ ### 🔗 Migration Notes
140
+
141
+ - No migration steps required
142
+ - Existing projects will automatically benefit from improvements
143
+ - Optional: Update CLI usage to leverage new enhanced features
17
144
 
18
145
  ## Version
19
- - Target version: 0.0.3-canary.3
146
+
147
+ - Target version: 0.0.3-canary.7