catalyst-core-internal 0.0.1-beta.73 → 0.0.1-beta.74
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.
|
@@ -83,6 +83,14 @@ class AppNotificationManager(
|
|
|
83
83
|
notificationUtils.requestNotificationPermission(activity, callback)
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Check current notification permission status without requesting it
|
|
88
|
+
* @return Permission status string: "GRANTED", "DENIED", or "NOT_DETERMINED"
|
|
89
|
+
*/
|
|
90
|
+
fun checkPermissionStatus(): String {
|
|
91
|
+
return notificationUtils.checkPermissionStatus(context)
|
|
92
|
+
}
|
|
93
|
+
|
|
86
94
|
// ==================== PUSH NOTIFICATIONS ====================
|
|
87
95
|
|
|
88
96
|
/**
|
|
@@ -112,7 +112,8 @@ const imageWidth=splashConfig.imageWidth||120;const imageHeight=splashConfig.ima
|
|
|
112
112
|
public static let splashScreenImageWidth: CGFloat = 120
|
|
113
113
|
public static let splashScreenImageHeight: CGFloat = 120
|
|
114
114
|
public static let splashScreenCornerRadius: CGFloat = 20`;}// Ensure Notifications.enabled always exists (default to false if not configured)
|
|
115
|
-
if(!addedKeys.has("notifications")){progress.log("Notifications not found in config, adding default (false)","info");configContent+="\n public enum Notifications {\n public static let enabled = false\n }";addedKeys.add("notifications");}else{progress.log("Notifications config was processed from WEBVIEW_CONFIG","info");}//
|
|
115
|
+
if(!addedKeys.has("notifications")){progress.log("Notifications not found in config, adding default (false)","info");configContent+="\n public enum Notifications {\n public static let enabled = false\n }";addedKeys.add("notifications");}else{progress.log("Notifications config was processed from WEBVIEW_CONFIG","info");}// Ensure EdgeToEdge.enabled always exists (default to false if not configured)
|
|
116
|
+
if(!addedKeys.has("edgeToEdge")){progress.log("EdgeToEdge not found in config, adding default (false)","info");configContent+="\n public enum EdgeToEdge {\n public static let enabled = false\n }";addedKeys.add("edgeToEdge");}else{progress.log("EdgeToEdge config was processed from WEBVIEW_CONFIG","info");}// Close the enum
|
|
116
117
|
configContent+=`
|
|
117
118
|
}`;fs.writeFileSync(appConfigPath,configContent,"utf8");progress.log("Configuration constants generated successfully (SPM Package)","success");progress.complete("config");}catch(error){progress.fail("config",error.message);process.exit(1);}}// MARK: - Notification Asset Processing
|
|
118
119
|
// Notification asset definitions
|
|
@@ -16,7 +16,7 @@ public struct ContentView: View {
|
|
|
16
16
|
// Conditionally apply edge-to-edge based on config (matches Android behavior)
|
|
17
17
|
if ConfigConstants.EdgeToEdge.enabled {
|
|
18
18
|
WebViewContainer(urlString: ConfigConstants.url, viewModel: webViewModel)
|
|
19
|
-
.
|
|
19
|
+
.ignoresSafeArea()
|
|
20
20
|
.onAppear {
|
|
21
21
|
logger.info("WebView appeared with URL: \(ConfigConstants.url) [Edge-to-edge: enabled]")
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "catalyst-core-internal",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.74",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Web framework that provides great performance out of the box",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/tata1mg/catalyst-core
|
|
11
|
+
"url": "https://github.com/tata1mg/catalyst-core.git"
|
|
12
12
|
},
|
|
13
13
|
"_moduleAliases": {
|
|
14
14
|
"@catalyst/template": ".",
|