catalyst-core 0.0.3-canary.5 โ†’ 0.0.3-canary.7

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 (46) hide show
  1. package/changelog.md +37 -13
  2. package/dist/native/androidProject/.idea/deploymentTargetSelector.xml +0 -8
  3. package/dist/native/androidProject/.idea/deviceManager.xml +13 -0
  4. package/dist/native/androidProject/.idea/gradle.xml +0 -1
  5. package/dist/native/androidProject/.idea/misc.xml +1 -6
  6. package/dist/native/androidProject/.idea/vcs.xml +0 -2
  7. package/dist/native/androidProject/app/build.gradle.kts +11 -3
  8. package/dist/native/androidProject/app/src/main/AndroidManifest.xml +3 -2
  9. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/NativeBridge.kt +261 -204
  10. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/Utils.kt +64 -0
  11. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/BridgeUtils.kt +217 -0
  12. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/CameraUtils.kt +269 -0
  13. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/DownloadUtils.kt +251 -0
  14. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileSizeRouterUtils.kt +347 -0
  15. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileUtils.kt +334 -0
  16. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FrameworkServerUtils.kt +362 -0
  17. package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/IntentUtils.kt +274 -0
  18. package/dist/native/androidProject/app/src/main/res/xml/file_paths.xml +6 -0
  19. package/dist/native/androidProject/gradle/libs.versions.toml +1 -1
  20. package/dist/native/androidProject/gradle/wrapper/gradle-wrapper.properties +1 -1
  21. package/dist/native/bridge/WebBridge.js +42 -2
  22. package/dist/native/bridge/constants/NativeInterfaces.js +22 -0
  23. package/dist/native/bridge/errors.js +39 -0
  24. package/dist/native/bridge/hooks.js +77 -3
  25. package/dist/native/bridge/standardizedHooks.js +80 -0
  26. package/dist/native/bridge/useBaseHook.js +44 -0
  27. package/dist/native/bridge/utils/NativeBridge.js +55 -0
  28. package/dist/native/buildAppAndroid.js +44 -19
  29. package/dist/native/buildAppIos.js +8 -5
  30. package/dist/native/renameAndroidProject.js +10 -7
  31. package/dist/native/setupServer.js +27 -0
  32. package/dist/scripts/loadEnvironmentVariables.js +2 -1
  33. package/dist/sentry.js +2 -0
  34. package/dist/webpack/base.babel.js +1 -1
  35. package/package.json +1 -1
  36. package/dist/native/androidProject/.idea/codeStyles/Project.xml +0 -123
  37. package/dist/native/androidProject/.idea/codeStyles/codeStyleConfig.xml +0 -5
  38. package/dist/native/androidProject/.idea/kotlinc.xml +0 -6
  39. package/dist/native/androidProject/.idea/other.xml +0 -329
  40. package/dist/native/androidProject/app/src/main/assets/webview_config.properties +0 -8
  41. package/dist/native/androidProject/app/src/main/cpp/CMakeLists.txt +0 -41
  42. package/dist/native/androidProject/app/src/main/cpp/native-lib.cpp +0 -22
  43. package/dist/native/iosnativeWebView/iosnativeWebView/ConfigConstants.swift +0 -7
  44. package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.xcworkspace/xcuserdata/mayankmahavar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  45. package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/xcuserdata/mayankmahavar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -32
  46. package/transform-config.json +0 -35
package/changelog.md CHANGED
@@ -1,20 +1,44 @@
1
1
  # Changelog
2
2
 
3
3
 
4
- ## [0.0.3-canary.5] - 12-06-2025
4
+ ## [0.0.3-canary.7] - 2025-01-06
5
5
 
6
- ### Features
7
- - Production project creation functionality implemented
8
- - Android App Bundle (.aab) file generation capability
9
- - Project name replacement functionality
6
+ ### ๐Ÿš€ Features
7
+ - **Native API Integration**: Enhanced native module integration for better performance
8
+ - **Automated IP Resolution**: Intelligent network detection eliminates manual IP configuration
9
+ - **Universal Build System**: Streamlined one-command builds for both Android and iOS platforms
10
+ - **Enhanced CLI Interface**: Improved command-line tools for better developer experience
10
11
 
11
- ### Fixed
12
- - Production deployment issues resolved
13
- - Merge conflicts fixed
14
- - Branch integration improvements
12
+ ### ๐Ÿ› Bug Fixes
13
+ - Fixed IP address detection issues on development environments
14
+ - Resolved build configuration conflicts between platforms
15
+ - Improved error handling and recovery mechanisms
15
16
 
16
- ### Changes
17
- - Enhanced production deployment workflow for Android
18
- - Improved build process for production releases
17
+ ### ๐Ÿ”ง Improvements
18
+ - **Performance**: Optimized native module loading and execution
19
+ - **Developer Experience**: Enhanced CLI with better error messages and debugging info
20
+ - **Configuration**: Dynamic config updates without requiring restarts
21
+ - **Build Process**: Faster and more reliable build pipeline
22
+
23
+ ### ๐Ÿงช Testing & Validation
24
+ - โœ… **Android Build**: Verified APK generation, installation, and runtime behavior
25
+ - โœ… **iOS Build**: Tested build process and device compatibility
26
+ - โœ… **IP Detection**: Validated automatic network resolution across platforms
27
+ - โœ… **Native Modules**: Confirmed API integration and performance benchmarks
28
+ - โœ… **CLI Operations**: Tested enhanced command-line workflows and error handling
29
+
30
+ ### ๐Ÿ”„ Breaking Changes
31
+ **None** - All changes maintain backward compatibility while enhancing existing functionality
32
+
33
+ ### ๐Ÿ“ Technical Details
34
+ - Improved native API bridge for better cross-platform communication
35
+ - Enhanced error reporting with detailed stack traces and suggestions
36
+ - Optimized build configuration for faster development cycles
37
+ - Added comprehensive logging for debugging and monitoring
38
+
39
+ ### ๐Ÿ”— Migration Notes
40
+ - No migration steps required
41
+ - Existing projects will automatically benefit from improvements
42
+ - Optional: Update CLI usage to leverage new enhanced features
19
43
  ## Version
20
- - Target version: 0.0.3-canary.5
44
+ - Target version: 0.0.3-canary.7
@@ -4,14 +4,6 @@
4
4
  <selectionStates>
5
5
  <SelectionState runConfigName="app">
6
6
  <option name="selectionMode" value="DROPDOWN" />
7
- <DropdownSelection timestamp="2025-02-18T04:28:14.358379Z">
8
- <Target type="DEFAULT_BOOT">
9
- <handle>
10
- <DeviceId pluginId="PhysicalDevice" identifier="serial=9fbee4f0" />
11
- </handle>
12
- </Target>
13
- </DropdownSelection>
14
- <DialogSelection />
15
7
  </SelectionState>
16
8
  </selectionStates>
17
9
  </component>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="DeviceTable">
4
+ <option name="columnSorters">
5
+ <list>
6
+ <ColumnSorterState>
7
+ <option name="column" value="Name" />
8
+ <option name="order" value="ASCENDING" />
9
+ </ColumnSorterState>
10
+ </list>
11
+ </option>
12
+ </component>
13
+ </project>
@@ -13,7 +13,6 @@
13
13
  <option value="$PROJECT_DIR$/app" />
14
14
  </set>
15
15
  </option>
16
- <option name="resolveExternalAnnotations" value="false" />
17
16
  </GradleProjectSettings>
18
17
  </option>
19
18
  </component>
@@ -1,9 +1,4 @@
1
1
  <project version="4">
2
2
  <component name="ExternalStorageConfigurationManager" enabled="true" />
3
- <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
4
- <output url="file://$PROJECT_DIR$/build/classes" />
5
- </component>
6
- <component name="ProjectType">
7
- <option name="id" value="Android" />
8
- </component>
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK" />
9
4
  </project>
@@ -2,7 +2,5 @@
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
4
  <mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
5
- <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
6
- <mapping directory="$USER_HOME$/catalyst-webview-apps" vcs="Git" />
7
5
  </component>
8
6
  </project>
@@ -111,6 +111,8 @@ android {
111
111
  excludes.add("**/route-manifest.json.br")
112
112
  excludes.add("META-INF/LICENSE")
113
113
  excludes.add("META-INF/NOTICE")
114
+ excludes.add("META-INF/INDEX.LIST")
115
+ excludes.add("META-INF/io.netty.versions.properties")
114
116
  }
115
117
  }
116
118
 
@@ -131,6 +133,15 @@ dependencies {
131
133
  androidTestImplementation(libs.androidx.espresso.core)
132
134
  implementation("androidx.webkit:webkit:1.12.1")
133
135
  implementation("org.json:json:20231013")
136
+
137
+ // Ktor Server dependencies for FrameworkServer (~200KB total)
138
+ implementation("io.ktor:ktor-server-core:2.3.7")
139
+ implementation("io.ktor:ktor-server-netty:2.3.7")
140
+ implementation("io.ktor:ktor-server-content-negotiation:2.3.7")
141
+ implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
142
+
143
+ // SLF4J simple logger for Ktor (optional, can be excluded if needed)
144
+ implementation("org.slf4j:slf4j-simple:2.0.9")
134
145
  }
135
146
 
136
147
  // Task to verify local IP
@@ -239,15 +250,12 @@ tasks.register("generateWebViewConfig") {
239
250
  val assetsDir = File("${project.projectDir}/src/main/assets")
240
251
  if (!assetsDir.exists()) {
241
252
  assetsDir.mkdirs()
242
- println("Created assets directory at ${assetsDir.absolutePath}")
243
253
  }
244
254
 
245
255
  // Write to properties file
246
256
  File(assetsDir, "webview_config.properties").outputStream().use {
247
257
  properties.store(it, "WebView Configuration")
248
258
  }
249
-
250
- println("WebView config generated at ${assetsDir.absolutePath}/webview_config.properties")
251
259
  }
252
260
  }
253
261
 
@@ -25,7 +25,8 @@
25
25
  tools:targetApi="31">
26
26
  <activity
27
27
  android:name="io.yourname.androidproject.MainActivity"
28
- android:exported="true">
28
+ android:exported="true"
29
+ android:screenOrientation="portrait">
29
30
  <intent-filter>
30
31
  <action android:name="android.intent.action.MAIN" />
31
32
 
@@ -34,7 +35,7 @@
34
35
  </activity>
35
36
  <provider
36
37
  android:name="androidx.core.content.FileProvider"
37
- android:authorities="io.yourname.androidproject.release.fileprovider"
38
+ android:authorities="io.yourname.androidproject.fileprovider"
38
39
  android:exported="false"
39
40
  android:grantUriPermissions="true">
40
41
  <meta-data