catalyst-core 0.0.3-canary.19 → 0.0.3-canary.20
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 +4 -0
- package/dist/native/androidProject/app/build.gradle.kts +1 -3
- package/dist/native/androidProject/app/src/debug/res/xml/network_security_config.xml +8 -0
- package/dist/native/androidProject/app/src/main/AndroidManifest.xml +2 -1
- package/dist/native/androidProject/app/src/main/res/xml/network_security_config.xml +12 -0
- package/dist/native/iosnativeWebView/Sources/Core/Utils/FrameworkServerUtils.swift +2 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-canary.20] - 2025-12-12
|
|
4
|
+
|
|
5
|
+
- Patch: Allow localhost traffic to be served from http
|
|
6
|
+
|
|
3
7
|
## [0.0.3-canary.19] - 2025-12-09
|
|
4
8
|
|
|
5
9
|
- Offline fallback support: packages `public/offline.html` into Android/iOS bundles and shows it automatically when connectivity drops (with retry handling)
|
|
@@ -77,7 +77,6 @@ android {
|
|
|
77
77
|
|
|
78
78
|
buildTypes {
|
|
79
79
|
debug {
|
|
80
|
-
manifestPlaceholders += mapOf("allowCleartextTraffic" to true)
|
|
81
80
|
applicationIdSuffix = ".debug"
|
|
82
81
|
versionNameSuffix = "-debug"
|
|
83
82
|
isMinifyEnabled = false
|
|
@@ -85,7 +84,6 @@ android {
|
|
|
85
84
|
buildConfigField("String", "LOCAL_IP", "\"${getLocalIpAddress()}\"")
|
|
86
85
|
}
|
|
87
86
|
release {
|
|
88
|
-
manifestPlaceholders += mapOf("allowCleartextTraffic" to false)
|
|
89
87
|
isMinifyEnabled = true
|
|
90
88
|
isShrinkResources = true
|
|
91
89
|
proguardFiles(
|
|
@@ -413,4 +411,4 @@ tasks.register("createAppBundle") {
|
|
|
413
411
|
=======================================================
|
|
414
412
|
""".trimIndent())
|
|
415
413
|
}
|
|
416
|
-
}
|
|
414
|
+
}
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
22
22
|
android:supportsRtl="true"
|
|
23
23
|
android:theme="@style/Theme.AndroidProject"
|
|
24
|
-
android:usesCleartextTraffic="
|
|
24
|
+
android:usesCleartextTraffic="true"
|
|
25
|
+
android:networkSecurityConfig="@xml/network_security_config"
|
|
25
26
|
tools:targetApi="31">
|
|
26
27
|
<activity
|
|
27
28
|
android:name="io.yourname.androidproject.SplashActivity"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<network-security-config>
|
|
3
|
+
<base-config cleartextTrafficPermitted="false">
|
|
4
|
+
<trust-anchors>
|
|
5
|
+
<certificates src="system" />
|
|
6
|
+
</trust-anchors>
|
|
7
|
+
</base-config>
|
|
8
|
+
<domain-config cleartextTrafficPermitted="true">
|
|
9
|
+
<domain includeSubdomains="true">localhost</domain>
|
|
10
|
+
<domain includeSubdomains="false">127.0.0.1</domain>
|
|
11
|
+
</domain-config>
|
|
12
|
+
</network-security-config>
|
|
@@ -520,9 +520,9 @@ class FrameworkServerUtils {
|
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
// Bind to localhost only for security
|
|
523
|
-
|
|
523
|
+
_ = NWEndpoint.Host("127.0.0.1")
|
|
524
524
|
let port = NWEndpoint.Port(integerLiteral: serverPort)
|
|
525
|
-
parameters.requiredLocalEndpoint = .hostPort(host: host, port: port)
|
|
525
|
+
// parameters.requiredLocalEndpoint = .hostPort(host: host, port: port)
|
|
526
526
|
|
|
527
527
|
listener = try NWListener(using: parameters, on: port)
|
|
528
528
|
|