@digia-engage/core 1.0.0-beta.1

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 (56) hide show
  1. package/DigiaEngageReactNative.podspec +21 -0
  2. package/README.md +277 -0
  3. package/android/build.gradle +82 -0
  4. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  5. package/android/gradlew +185 -0
  6. package/android/gradlew.bat +89 -0
  7. package/android/settings.gradle +33 -0
  8. package/android/src/main/AndroidManifest.xml +2 -0
  9. package/android/src/main/java/com/digia/engage/rn/DigiaModule.kt +234 -0
  10. package/android/src/main/java/com/digia/engage/rn/DigiaPackage.kt +69 -0
  11. package/android/src/main/java/com/digia/engage/rn/DigiaSlotViewManager.kt +64 -0
  12. package/android/src/main/java/com/digia/engage/rn/DigiaViewManager.kt +63 -0
  13. package/ios/DigiaEngageModule.m +71 -0
  14. package/lib/commonjs/Digia.js +106 -0
  15. package/lib/commonjs/Digia.js.map +1 -0
  16. package/lib/commonjs/DigiaHostView.js +73 -0
  17. package/lib/commonjs/DigiaHostView.js.map +1 -0
  18. package/lib/commonjs/DigiaSlotView.js +73 -0
  19. package/lib/commonjs/DigiaSlotView.js.map +1 -0
  20. package/lib/commonjs/NativeDigiaModule.js +56 -0
  21. package/lib/commonjs/NativeDigiaModule.js.map +1 -0
  22. package/lib/commonjs/index.js +27 -0
  23. package/lib/commonjs/index.js.map +1 -0
  24. package/lib/commonjs/types.js +2 -0
  25. package/lib/commonjs/types.js.map +1 -0
  26. package/lib/module/Digia.js +100 -0
  27. package/lib/module/Digia.js.map +1 -0
  28. package/lib/module/DigiaHostView.js +67 -0
  29. package/lib/module/DigiaHostView.js.map +1 -0
  30. package/lib/module/DigiaSlotView.js +66 -0
  31. package/lib/module/DigiaSlotView.js.map +1 -0
  32. package/lib/module/NativeDigiaModule.js +51 -0
  33. package/lib/module/NativeDigiaModule.js.map +1 -0
  34. package/lib/module/index.js +15 -0
  35. package/lib/module/index.js.map +1 -0
  36. package/lib/module/types.js +2 -0
  37. package/lib/module/types.js.map +1 -0
  38. package/lib/typescript/Digia.d.ts +62 -0
  39. package/lib/typescript/Digia.d.ts.map +1 -0
  40. package/lib/typescript/DigiaHostView.d.ts +40 -0
  41. package/lib/typescript/DigiaHostView.d.ts.map +1 -0
  42. package/lib/typescript/DigiaSlotView.d.ts +52 -0
  43. package/lib/typescript/DigiaSlotView.d.ts.map +1 -0
  44. package/lib/typescript/NativeDigiaModule.d.ts +45 -0
  45. package/lib/typescript/NativeDigiaModule.d.ts.map +1 -0
  46. package/lib/typescript/index.d.ts +15 -0
  47. package/lib/typescript/index.d.ts.map +1 -0
  48. package/lib/typescript/types.d.ts +58 -0
  49. package/lib/typescript/types.d.ts.map +1 -0
  50. package/package.json +89 -0
  51. package/src/Digia.ts +104 -0
  52. package/src/DigiaHostView.tsx +83 -0
  53. package/src/DigiaSlotView.tsx +79 -0
  54. package/src/NativeDigiaModule.ts +86 -0
  55. package/src/index.ts +15 -0
  56. package/src/types.ts +61 -0
@@ -0,0 +1,21 @@
1
+ Pod::Spec.new do |s|
2
+ s.name = 'DigiaEngageReactNative'
3
+ s.version = '0.1.0'
4
+ s.summary = 'React Native bridge for the Digia Engage SDK (Android Compose UI).'
5
+ s.description = <<-DESC
6
+ Provides a React Native bridge that surfaces the Digia Engage Android
7
+ Compose UI SDK inside React Native applications. iOS support is stubbed
8
+ and will be added in a future release.
9
+ DESC
10
+
11
+ s.homepage = 'https://github.com/Digia-Technology-Private-Limited/digia_engage'
12
+ s.license = { :type => 'MIT', :file => '../LICENSE' }
13
+ s.author = { 'Digia Technology Private Limited' => '' }
14
+ s.source = { :git => 'https://github.com/Digia-Technology-Private-Limited/digia_engage.git', :tag => s.version.to_s }
15
+
16
+ s.ios.deployment_target = '13.0'
17
+
18
+ s.source_files = 'ios/**/*.{h,m,mm,swift}'
19
+
20
+ s.dependency 'React-Core'
21
+ end
package/README.md ADDED
@@ -0,0 +1,277 @@
1
+ # @digia/engage-react-native
2
+
3
+ React Native bridge for the **Digia Engage SDK** – renders native Android
4
+ Jetpack Compose UI (dialogs, bottom-sheets) inside React Native applications.
5
+
6
+ > **Platform support**
7
+ > | Platform | Status |
8
+ > |---|---|
9
+ > | Android | ✅ Full support |
10
+ > | iOS | 🚧 Stub (no-op – coming soon) |
11
+
12
+ ---
13
+
14
+ ## How it works
15
+
16
+ The Digia Engage Android SDK is built entirely with Jetpack Compose. In a
17
+ pure-Android app you wrap your content with the `DigiaHost { }` composable; it
18
+ then manages campaign-driven overlays (dialogs, bottom sheets) on top of your
19
+ content.
20
+
21
+ In a React Native app we cannot embed a Composable directly in the JS tree, so
22
+ the bridge uses two complementary mechanisms:
23
+
24
+ ```
25
+ ┌─────────────────────────────────────────┐
26
+ │ Android Activity (ReactActivity) │
27
+ │ │
28
+ │ ┌─────────────────────────────────┐ │
29
+ │ │ Android content FrameLayout │ │
30
+ │ │ │ │
31
+ │ │ ┌─────────────────────────┐ │ │
32
+ │ │ │ React Native RootView │ │ │
33
+ │ │ │ (your JS UI) │ │ │
34
+ │ │ └─────────────────────────┘ │ │
35
+ │ │ │ │
36
+ │ │ ┌─────────────────────────┐ │ │
37
+ │ │ │ DigiaHostComposeView │ │ │
38
+ │ │ │ (AbstractComposeView) │ │ │
39
+ │ │ │ hosts DigiaHost { } │ │ │
40
+ │ │ │ ← transparent, no │ │ │
41
+ │ │ │ touch interception │ │ │
42
+ │ │ └─────────────────────────┘ │ │
43
+ │ └─────────────────────────────────┘ │
44
+ │ │
45
+ │ ┌──────────────────────────────────┐ │
46
+ │ │ Compose Dialog window (overlay) │ │
47
+ │ │ Triggered by CEP campaign │ │
48
+ │ └──────────────────────────────────┘ │
49
+ └─────────────────────────────────────────┘
50
+ ```
51
+
52
+ 1. **`Digia.initialize()`** initialises the SDK and calls `addContentView()`
53
+ to attach a transparent `DigiaHostComposeView` on top of the React Native
54
+ view hierarchy. This is the anchor for the Compose composition.
55
+
56
+ 2. **`DigiaHost { }`** inside the `ComposeView` manages `DialogManager` and
57
+ `BottomSheetManager`. When a CEP plugin triggers a campaign, Compose
58
+ renders a `Dialog` or `ModalBottomSheet` – these are **separate Android
59
+ windows** that appear on top of everything, including React Native content.
60
+
61
+ 3. **`<DigiaHostView>`** is an optional React Native component you can place in
62
+ your component tree (e.g. as `StyleSheet.absoluteFill`) if you prefer a
63
+ declarative, component-based mount point instead of the auto-mount.
64
+
65
+ ---
66
+
67
+ ## Installation
68
+
69
+ ```sh
70
+ # npm
71
+ npm install @digia/engage-react-native
72
+
73
+ # yarn
74
+ yarn add @digia/engage-react-native
75
+ ```
76
+
77
+ React Native CLI auto-linking handles the rest. Rebuild the native app:
78
+
79
+ ```sh
80
+ npx react-native build-android
81
+ # or
82
+ cd android && ./gradlew assembleDebug
83
+ ```
84
+
85
+ ### Android – host app dependencies
86
+
87
+ Your app's `android/app/build.gradle` must declare the Digia Engage AAR
88
+ (or include it via your local Maven / private registry):
89
+
90
+ ```groovy
91
+ dependencies {
92
+ implementation 'com.digia:digia-ui:1.0.0-beta-1'
93
+ }
94
+ ```
95
+
96
+ If you are working inside the monorepo and building locally, add the `:digia-ui`
97
+ project instead:
98
+
99
+ ```groovy
100
+ implementation(project(':digia-ui'))
101
+ ```
102
+
103
+ ### iOS
104
+
105
+ iOS is a no-op stub. All methods resolve immediately without error.
106
+
107
+ ---
108
+
109
+ ## Usage
110
+
111
+ ### 1 – Initialise the SDK
112
+
113
+ Call `Digia.initialize()` once, as early as possible (e.g. the top of
114
+ `App.tsx`):
115
+
116
+ ```tsx
117
+ import React, { useEffect } from 'react';
118
+ import { NavigationContainer } from '@react-navigation/native';
119
+ import { Digia } from '@digia/engage-react-native';
120
+
121
+ export default function App() {
122
+ useEffect(() => {
123
+ Digia.initialize({
124
+ apiKey: 'YOUR_DIGIA_API_KEY',
125
+ environment: 'production', // or 'sandbox'
126
+ logLevel: 'error',
127
+ });
128
+ }, []);
129
+
130
+ return <NavigationContainer>{/* … */}</NavigationContainer>;
131
+ }
132
+ ```
133
+
134
+ `initialize()` returns a `Promise<void>` and automatically attaches the Compose
135
+ overlay host to the Activity. You do **not** need to add `<DigiaHostView>`
136
+ unless you want an explicit component-based mount point.
137
+
138
+ ### 2 – Track screen changes
139
+
140
+ Wire `setCurrentScreen()` to your navigation state so the SDK can trigger
141
+ campaigns based on the active screen:
142
+
143
+ ```tsx
144
+ import { useNavigationContainerRef } from '@react-navigation/native';
145
+ import { Digia } from '@digia/engage-react-native';
146
+
147
+ // Inside your App component:
148
+ const navRef = useNavigationContainerRef();
149
+
150
+ <NavigationContainer
151
+ ref={navRef}
152
+ onStateChange={() => {
153
+ const currentRoute = navRef.getCurrentRoute();
154
+ if (currentRoute) {
155
+ Digia.setCurrentScreen(currentRoute.name);
156
+ }
157
+ }}
158
+ >
159
+ ```
160
+
161
+ ### 3 – Open the Digia UI navigation flow (Android)
162
+
163
+ Launch the full-screen Compose navigation activity managed by the Digia DSL
164
+ configuration:
165
+
166
+ ```tsx
167
+ import { Digia } from '@digia/engage-react-native';
168
+
169
+ function MyScreen() {
170
+ return (
171
+ <Button
172
+ title="Open Digia Experience"
173
+ onPress={() =>
174
+ Digia.openNavigation({
175
+ startPageId: 'onboarding',
176
+ pageArgs: { userId: '123' },
177
+ })
178
+ }
179
+ />
180
+ );
181
+ }
182
+ ```
183
+
184
+ ### 4 – (Optional) Declarative overlay mount via `<DigiaHostView>`
185
+
186
+ If you prefer an explicit React component instead of the auto-mount, skip the
187
+ `initialize()` auto-mount and place `<DigiaHostView>` at the root of your
188
+ component tree:
189
+
190
+ ```tsx
191
+ import React from 'react';
192
+ import { StyleSheet, View } from 'react-native';
193
+ import { DigiaHostView } from '@digia/engage-react-native';
194
+
195
+ export default function App() {
196
+ return (
197
+ <View style={styles.root}>
198
+ {/* DigiaHostView must be above all other content in z-order */}
199
+ <DigiaHostView style={StyleSheet.absoluteFill} />
200
+
201
+ {/* Your navigation / content here */}
202
+ </View>
203
+ );
204
+ }
205
+
206
+ const styles = StyleSheet.create({ root: { flex: 1 } });
207
+ ```
208
+
209
+ ---
210
+
211
+ ## API Reference
212
+
213
+ ### `Digia`
214
+
215
+ | Method | Signature | Description |
216
+ |---|---|---|
217
+ | `initialize` | `(config: DigiaConfig) => Promise<void>` | Initialise the SDK and mount the Compose overlay host. |
218
+ | `setCurrentScreen` | `(name: string) => void` | Notify the SDK of the current screen. |
219
+ | `openNavigation` | `(options?: DigiaNavigationOptions) => void` | Launch the full-screen Digia UI navigation activity. |
220
+
221
+ ### `DigiaConfig`
222
+
223
+ | Prop | Type | Default | Description |
224
+ |---|---|---|---|
225
+ | `apiKey` | `string` | — | **Required.** Your Digia project API key. |
226
+ | `environment` | `'production' \| 'sandbox'` | `'production'` | Target environment. |
227
+ | `logLevel` | `'none' \| 'error' \| 'verbose'` | `'error'` | Log verbosity. |
228
+
229
+ ### `DigiaNavigationOptions`
230
+
231
+ | Prop | Type | Description |
232
+ |---|---|---|
233
+ | `startPageId` | `string?` | DSL page ID to start from. |
234
+ | `pageArgs` | `Record<string, string>?` | Key/value args forwarded to the start page. |
235
+
236
+ ### `<DigiaHostView>`
237
+
238
+ A transparent React Native view that hosts the Compose overlay anchor.
239
+
240
+ | Prop | Type | Description |
241
+ |---|---|---|
242
+ | `style` | `ViewStyle?` | Custom style (defaults to `absoluteFill` behaviour). |
243
+
244
+ ---
245
+
246
+ ## Architecture overview
247
+
248
+ ```
249
+ react-native/
250
+ ├── src/
251
+ │ ├── index.ts ← Public API exports
252
+ │ ├── types.ts ← TypeScript interfaces
253
+ │ ├── Digia.ts ← High-level JS SDK wrapper
254
+ │ ├── NativeDigiaModule.ts ← Low-level native module binding
255
+ │ └── DigiaHostView.tsx ← <DigiaHostView> React component
256
+
257
+ ├── android/
258
+ │ ├── build.gradle ← Android library build config
259
+ │ └── src/main/java/com/digia/engage/rn/
260
+ │ ├── DigiaPackage.kt ← ReactPackage (registers module + view)
261
+ │ ├── DigiaModule.kt ← NativeModule (initialize, setCurrentScreen, openNavigation)
262
+ │ ├── DigiaViewManager.kt ← ViewManager for <DigiaHostView>
263
+ │ └── DigiaHostComposeView.kt ← AbstractComposeView hosting DigiaHost { }
264
+
265
+ ├── ios/
266
+ │ └── DigiaEngageModule.m ← iOS no-op stub
267
+
268
+ ├── DigiaEngageReactNative.podspec
269
+ ├── react-native.config.js ← Auto-linking config
270
+ └── package.json
271
+ ```
272
+
273
+ ---
274
+
275
+ ## License
276
+
277
+ MIT © Digia Technology Private Limited
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Android Gradle build file for the @digia/engage-react-native library module.
3
+ *
4
+ * This module is a thin bridge layer that:
5
+ * • Depends on the Digia Engage Android AAR (digia-ui)
6
+ * • Depends on the React Native SDK
7
+ * • Exposes a ReactPackage (DigiaPackage) that registers the native module
8
+ * and native view to React Native's bridge
9
+ *
10
+ * The Compose runtime/tooling dependencies are inherited transitively from
11
+ * the digia-ui AAR via `api` declarations; we only add what is needed for
12
+ * the bridge code itself.
13
+ */
14
+
15
+ plugins {
16
+ id 'com.android.library'
17
+ id 'org.jetbrains.kotlin.android'
18
+ id 'org.jetbrains.kotlin.plugin.compose'
19
+ id 'com.facebook.react'
20
+ }
21
+
22
+ android {
23
+ compileSdk 35
24
+ namespace 'com.digia.engage.rn'
25
+
26
+ defaultConfig {
27
+ minSdk 24
28
+ targetSdk 35
29
+ }
30
+
31
+ buildTypes {
32
+ release {
33
+ minifyEnabled false
34
+ }
35
+ }
36
+
37
+ compileOptions {
38
+ sourceCompatibility JavaVersion.VERSION_17
39
+ targetCompatibility JavaVersion.VERSION_17
40
+ }
41
+
42
+ kotlinOptions {
43
+ jvmTarget = '17'
44
+ }
45
+
46
+ buildFeatures {
47
+ compose true
48
+ }
49
+
50
+ sourceSets {
51
+ main {
52
+ java.srcDirs += 'src/main/java'
53
+ }
54
+ }
55
+ }
56
+
57
+ dependencies {
58
+ // Digia Engage Android library (published to Maven Local)
59
+ implementation 'com.digia:digia-engage:1.0.0-beta.6'
60
+
61
+ // ── React Native ─────────────────────────────────────────────────────────
62
+ // React Native is provided by the host app; mark as compileOnly so it is
63
+ // NOT bundled into this library.
64
+ compileOnly "com.facebook.react:react-android"
65
+
66
+ // ── Jetpack Compose ───────────────────────────────────────────────────────
67
+ // Compose UI is transitively provided by digia-ui; we only need the
68
+ // platform BOM for version alignment.
69
+ implementation platform('androidx.compose:compose-bom:2023.03.00')
70
+
71
+ // UI tooling annotations (used by AbstractComposeView / preview)
72
+ implementation 'androidx.compose.ui:ui'
73
+
74
+ // Lifecycle: ViewTreeLifecycleOwner / setViewTreeLifecycleOwner
75
+ implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
76
+
77
+ // SavedState: setViewTreeSavedStateRegistryOwner
78
+ implementation 'androidx.savedstate:savedstate-ktx:1.2.1'
79
+
80
+ // Activity: ComponentActivity needed for lifecycle owner detection
81
+ implementation 'androidx.activity:activity-compose:1.7.2'
82
+ }
@@ -0,0 +1,185 @@
1
+ #!/usr/bin/env sh
2
+
3
+ #
4
+ # Copyright 2015 the original author or authors.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ ##############################################################################
20
+ ##
21
+ ## Gradle start up script for UN*X
22
+ ##
23
+ ##############################################################################
24
+
25
+ # Attempt to set APP_HOME
26
+ # Resolve links: $0 may be a link
27
+ PRG="$0"
28
+ # Need this for relative symlinks.
29
+ while [ -h "$PRG" ] ; do
30
+ ls=`ls -ld "$PRG"`
31
+ link=`expr "$ls" : '.*-> \(.*\)$'`
32
+ if expr "$link" : '/.*' > /dev/null; then
33
+ PRG="$link"
34
+ else
35
+ PRG=`dirname "$PRG"`"/$link"
36
+ fi
37
+ done
38
+ SAVED="`pwd`"
39
+ cd "`dirname \"$PRG\"`/" >/dev/null
40
+ APP_HOME="`pwd -P`"
41
+ cd "$SAVED" >/dev/null
42
+
43
+ APP_NAME="Gradle"
44
+ APP_BASE_NAME=`basename "$0"`
45
+
46
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
+
49
+ # Use the maximum available, or set MAX_FD != -1 to use that value.
50
+ MAX_FD="maximum"
51
+
52
+ warn () {
53
+ echo "$*"
54
+ }
55
+
56
+ die () {
57
+ echo
58
+ echo "$*"
59
+ echo
60
+ exit 1
61
+ }
62
+
63
+ # OS specific support (must be 'true' or 'false').
64
+ cygwin=false
65
+ msys=false
66
+ darwin=false
67
+ nonstop=false
68
+ case "`uname`" in
69
+ CYGWIN* )
70
+ cygwin=true
71
+ ;;
72
+ Darwin* )
73
+ darwin=true
74
+ ;;
75
+ MINGW* )
76
+ msys=true
77
+ ;;
78
+ NONSTOP* )
79
+ nonstop=true
80
+ ;;
81
+ esac
82
+
83
+ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
+
85
+
86
+ # Determine the Java command to use to start the JVM.
87
+ if [ -n "$JAVA_HOME" ] ; then
88
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89
+ # IBM's JDK on AIX uses strange locations for the executables
90
+ JAVACMD="$JAVA_HOME/jre/sh/java"
91
+ else
92
+ JAVACMD="$JAVA_HOME/bin/java"
93
+ fi
94
+ if [ ! -x "$JAVACMD" ] ; then
95
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96
+
97
+ Please set the JAVA_HOME variable in your environment to match the
98
+ location of your Java installation."
99
+ fi
100
+ else
101
+ JAVACMD="java"
102
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103
+
104
+ Please set the JAVA_HOME variable in your environment to match the
105
+ location of your Java installation."
106
+ fi
107
+
108
+ # Increase the maximum file descriptors if we can.
109
+ if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110
+ MAX_FD_LIMIT=`ulimit -H -n`
111
+ if [ $? -eq 0 ] ; then
112
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113
+ MAX_FD="$MAX_FD_LIMIT"
114
+ fi
115
+ ulimit -n $MAX_FD
116
+ if [ $? -ne 0 ] ; then
117
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
118
+ fi
119
+ else
120
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121
+ fi
122
+ fi
123
+
124
+ # For Darwin, add options to specify how the application appears in the dock
125
+ if $darwin; then
126
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127
+ fi
128
+
129
+ # For Cygwin or MSYS, switch paths to Windows format before running java
130
+ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133
+
134
+ JAVACMD=`cygpath --unix "$JAVACMD"`
135
+
136
+ # We build the pattern for arguments to be converted via cygpath
137
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138
+ SEP=""
139
+ for dir in $ROOTDIRSRAW ; do
140
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
141
+ SEP="|"
142
+ done
143
+ OURCYGPATTERN="(^($ROOTDIRS))"
144
+ # Add a user-defined pattern to the cygpath arguments
145
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147
+ fi
148
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
149
+ i=0
150
+ for arg in "$@" ; do
151
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153
+
154
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156
+ else
157
+ eval `echo args$i`="\"$arg\""
158
+ fi
159
+ i=`expr $i + 1`
160
+ done
161
+ case $i in
162
+ 0) set -- ;;
163
+ 1) set -- "$args0" ;;
164
+ 2) set -- "$args0" "$args1" ;;
165
+ 3) set -- "$args0" "$args1" "$args2" ;;
166
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172
+ esac
173
+ fi
174
+
175
+ # Escape application args
176
+ save () {
177
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178
+ echo " "
179
+ }
180
+ APP_ARGS=`save "$@"`
181
+
182
+ # Collect all arguments for the java command, following the shell quoting and substitution rules
183
+ eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184
+
185
+ exec "$JAVACMD" "$@"
@@ -0,0 +1,89 @@
1
+ @rem
2
+ @rem Copyright 2015 the original author or authors.
3
+ @rem
4
+ @rem Licensed under the Apache License, Version 2.0 (the "License");
5
+ @rem you may not use this file except in compliance with the License.
6
+ @rem You may obtain a copy of the License at
7
+ @rem
8
+ @rem https://www.apache.org/licenses/LICENSE-2.0
9
+ @rem
10
+ @rem Unless required by applicable law or agreed to in writing, software
11
+ @rem distributed under the License is distributed on an "AS IS" BASIS,
12
+ @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ @rem See the License for the specific language governing permissions and
14
+ @rem limitations under the License.
15
+ @rem
16
+
17
+ @if "%DEBUG%" == "" @echo off
18
+ @rem ##########################################################################
19
+ @rem
20
+ @rem Gradle startup script for Windows
21
+ @rem
22
+ @rem ##########################################################################
23
+
24
+ @rem Set local scope for the variables with windows NT shell
25
+ if "%OS%"=="Windows_NT" setlocal
26
+
27
+ set DIRNAME=%~dp0
28
+ if "%DIRNAME%" == "" set DIRNAME=.
29
+ set APP_BASE_NAME=%~n0
30
+ set APP_HOME=%DIRNAME%
31
+
32
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
+
35
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37
+
38
+ @rem Find java.exe
39
+ if defined JAVA_HOME goto findJavaFromJavaHome
40
+
41
+ set JAVA_EXE=java.exe
42
+ %JAVA_EXE% -version >NUL 2>&1
43
+ if "%ERRORLEVEL%" == "0" goto execute
44
+
45
+ echo.
46
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
+ echo.
48
+ echo Please set the JAVA_HOME variable in your environment to match the
49
+ echo location of your Java installation.
50
+
51
+ goto fail
52
+
53
+ :findJavaFromJavaHome
54
+ set JAVA_HOME=%JAVA_HOME:"=%
55
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
+
57
+ if exist "%JAVA_EXE%" goto execute
58
+
59
+ echo.
60
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
+ echo.
62
+ echo Please set the JAVA_HOME variable in your environment to match the
63
+ echo location of your Java installation.
64
+
65
+ goto fail
66
+
67
+ :execute
68
+ @rem Setup the command line
69
+
70
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71
+
72
+
73
+ @rem Execute Gradle
74
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75
+
76
+ :end
77
+ @rem End local scope for the variables with windows NT shell
78
+ if "%ERRORLEVEL%"=="0" goto mainEnd
79
+
80
+ :fail
81
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
+ rem the _cmd.exe /c_ return code!
83
+ if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
+ exit /b 1
85
+
86
+ :mainEnd
87
+ if "%OS%"=="Windows_NT" endlocal
88
+
89
+ :omega
@@ -0,0 +1,33 @@
1
+ pluginManagement {
2
+ plugins {
3
+ id 'com.android.library' version '8.11.2'
4
+ id 'com.android.application' version '8.11.2'
5
+ id 'org.jetbrains.kotlin.android' version '2.1.0'
6
+ id 'org.jetbrains.kotlin.plugin.compose' version '2.1.0'
7
+ id 'org.jetbrains.kotlin.plugin.serialization' version '2.1.0'
8
+ }
9
+ repositories {
10
+ google()
11
+ mavenCentral()
12
+ gradlePluginPortal()
13
+ }
14
+ }
15
+
16
+ dependencyResolutionManagement {
17
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
18
+ repositories {
19
+ google()
20
+ mavenCentral()
21
+ mavenLocal()
22
+ maven { url 'https://jitpack.io' }
23
+ }
24
+ versionCatalogs {
25
+ libs {
26
+ from(files("../../android/gradle/libs.versions.toml"))
27
+ }
28
+ }
29
+ }
30
+
31
+ rootProject.name = "digia-engage-rn"
32
+ include ':digia-engage-rn'
33
+ project(':digia-engage-rn').projectDir = file('.')
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android" />