catalyst-core 0.0.3-canary.6 → 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.
- package/changelog.md +40 -30
- package/dist/native/androidProject/.idea/deploymentTargetSelector.xml +0 -8
- package/dist/native/androidProject/.idea/deviceManager.xml +13 -0
- package/dist/native/androidProject/.idea/gradle.xml +0 -1
- package/dist/native/androidProject/.idea/misc.xml +1 -6
- package/dist/native/androidProject/.idea/vcs.xml +0 -2
- package/dist/native/androidProject/app/build.gradle.kts +11 -0
- package/dist/native/androidProject/app/src/main/AndroidManifest.xml +3 -2
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/NativeBridge.kt +261 -204
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/Utils.kt +64 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/BridgeUtils.kt +217 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/CameraUtils.kt +269 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/DownloadUtils.kt +251 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileSizeRouterUtils.kt +347 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FileUtils.kt +334 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/FrameworkServerUtils.kt +362 -0
- package/dist/native/androidProject/app/src/main/java/io/yourname/androidproject/utils/IntentUtils.kt +274 -0
- package/dist/native/androidProject/app/src/main/res/xml/file_paths.xml +6 -0
- package/dist/native/androidProject/gradle/libs.versions.toml +1 -1
- package/dist/native/androidProject/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/dist/native/bridge/WebBridge.js +42 -2
- package/dist/native/bridge/constants/NativeInterfaces.js +22 -0
- package/dist/native/bridge/errors.js +39 -0
- package/dist/native/bridge/hooks.js +77 -3
- package/dist/native/bridge/standardizedHooks.js +80 -0
- package/dist/native/bridge/useBaseHook.js +44 -0
- package/dist/native/bridge/utils/NativeBridge.js +55 -0
- package/dist/native/buildAppAndroid.js +30 -8
- package/dist/scripts/loadEnvironmentVariables.js +2 -1
- package/dist/sentry.js +2 -0
- package/dist/webpack/base.babel.js +1 -1
- package/package.json +1 -1
- package/dist/native/androidProject/.idea/codeStyles/Project.xml +0 -123
- package/dist/native/androidProject/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/dist/native/androidProject/.idea/kotlinc.xml +0 -6
- package/dist/native/androidProject/.idea/other.xml +0 -329
- package/dist/native/androidProject/app/src/main/assets/webview_config.properties +0 -8
- package/dist/native/androidProject/app/src/main/cpp/CMakeLists.txt +0 -41
- package/dist/native/androidProject/app/src/main/cpp/native-lib.cpp +0 -22
- package/dist/native/iosnativeWebView/iosnativeWebView/ConfigConstants.swift +0 -7
- package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/project.xcworkspace/xcuserdata/mayankmahavar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/dist/native/iosnativeWebView/iosnativeWebView.xcodeproj/xcuserdata/mayankmahavar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -32
package/changelog.md
CHANGED
|
@@ -1,34 +1,44 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
## [0.0.3-canary.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
4
|
+
## [0.0.3-canary.7] - 2025-01-06
|
|
5
|
+
|
|
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
|
|
11
|
+
|
|
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
|
|
16
|
+
|
|
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
|
|
33
43
|
## Version
|
|
34
|
-
- Target version: 0.0.3-canary.
|
|
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>
|
|
@@ -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
|
|
@@ -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.
|
|
38
|
+
android:authorities="io.yourname.androidproject.fileprovider"
|
|
38
39
|
android:exported="false"
|
|
39
40
|
android:grantUriPermissions="true">
|
|
40
41
|
<meta-data
|