@fountispanel/connect-react-native 1.0.0 → 1.2.0

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 (62) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/README.md +7 -6
  3. package/android/build.gradle +35 -16
  4. package/android/src/main/AndroidManifest.xml +5 -16
  5. package/build/index.js +1 -126
  6. package/build/index.web.js +1 -57
  7. package/ios/FountisConnect.xcframework/Info.plist +44 -0
  8. package/{android/connect-sdk/main/assets/fountis-connect → ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Engine}/engine.html +5 -5
  9. package/ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/FountisConnect +0 -0
  10. package/ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Info.plist +53 -0
  11. package/ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Modules/FountisConnect.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Modules/FountisConnect.swiftmodule/arm64-apple-ios.swiftinterface +48 -0
  13. package/ios/{FountisConnectSDK → FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework}/Engine/engine.html +5 -5
  14. package/ios/FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework/FountisConnect +0 -0
  15. package/ios/FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework/Info.plist +49 -0
  16. package/ios/FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework/Modules/FountisConnect.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  17. package/ios/FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework/Modules/FountisConnect.swiftmodule/arm64-apple-ios-simulator.swiftinterface +48 -0
  18. package/ios/FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework/Modules/FountisConnect.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  19. package/ios/FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework/Modules/FountisConnect.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +48 -0
  20. package/ios/FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework/PrivacyInfo.xcprivacy +23 -0
  21. package/ios/FountisConnectAppDelegateSubscriber.swift +3 -0
  22. package/ios/FountisConnectModule.swift +3 -0
  23. package/ios/FountisConnectReactNative.podspec +27 -6
  24. package/package.json +14 -12
  25. package/android/connect-sdk/main/kotlin/org/fountis/connect/ApiClient.kt +0 -161
  26. package/android/connect-sdk/main/kotlin/org/fountis/connect/FountisConnect.kt +0 -616
  27. package/android/connect-sdk/main/kotlin/org/fountis/connect/FountisSurveyActivity.kt +0 -321
  28. package/android/connect-sdk/main/kotlin/org/fountis/connect/LocalState.kt +0 -143
  29. package/android/connect-sdk/main/kotlin/org/fountis/connect/Matcher.kt +0 -167
  30. package/android/connect-sdk/main/kotlin/org/fountis/connect/Models.kt +0 -128
  31. package/android/connect-sdk/main/kotlin/org/fountis/connect/Notifier.kt +0 -109
  32. package/android/connect-sdk/main/kotlin/org/fountis/connect/RequestDeadline.kt +0 -74
  33. package/android/connect-sdk/main/kotlin/org/fountis/connect/Strings.kt +0 -45
  34. package/android/connect-sdk/main/kotlin/org/fountis/connect/TokenProviderCall.kt +0 -72
  35. package/android/connect-sdk/main/res/drawable/fountis_ic_notification.xml +0 -12
  36. package/android/connect-sdk/main/res/values/fountis_styles.xml +0 -13
  37. package/android/connect-sdk/main/res/values-v27/fountis_styles.xml +0 -12
  38. package/build/types.js +0 -1
  39. package/ios/FountisConnectBundle.swift +0 -15
  40. package/ios/FountisConnectSDK/ApiClient.swift +0 -113
  41. package/ios/FountisConnectSDK/FountisConnect.swift +0 -436
  42. package/ios/FountisConnectSDK/LocalState.swift +0 -81
  43. package/ios/FountisConnectSDK/Matcher.swift +0 -102
  44. package/ios/FountisConnectSDK/Models.swift +0 -116
  45. package/ios/FountisConnectSDK/Notifier.swift +0 -63
  46. package/ios/FountisConnectSDK/RequestDeadline.swift +0 -93
  47. package/ios/FountisConnectSDK/SheetController.swift +0 -259
  48. package/ios/FountisConnectSDK/Strings.swift +0 -34
  49. package/ios/FountisConnectSDK/TokenProviderCall.swift +0 -91
  50. package/scripts/vendor-native.sh +0 -16
  51. package/src/index.ts +0 -142
  52. package/src/index.web.ts +0 -64
  53. package/src/types.ts +0 -26
  54. /package/{android/connect-sdk/main/assets/fountis-connect → ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Engine}/i18n/ar.json +0 -0
  55. /package/{android/connect-sdk/main/assets/fountis-connect → ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Engine}/i18n/en.json +0 -0
  56. /package/{android/connect-sdk/main/assets/fountis-connect → ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Engine}/i18n/kmr.json +0 -0
  57. /package/{android/connect-sdk/main/assets/fountis-connect → ios/FountisConnect.xcframework/ios-arm64/FountisConnect.framework/Engine}/i18n/ku.json +0 -0
  58. /package/ios/{FountisConnectSDK → FountisConnect.xcframework/ios-arm64/FountisConnect.framework}/PrivacyInfo.xcprivacy +0 -0
  59. /package/ios/{FountisConnectSDK → FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework}/Engine/i18n/ar.json +0 -0
  60. /package/ios/{FountisConnectSDK → FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework}/Engine/i18n/en.json +0 -0
  61. /package/ios/{FountisConnectSDK → FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework}/Engine/i18n/kmr.json +0 -0
  62. /package/ios/{FountisConnectSDK → FountisConnect.xcframework/ios-arm64_x86_64-simulator/FountisConnect.framework}/Engine/i18n/ku.json +0 -0
package/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 1.2.0
4
4
 
5
+ - New API address: `https://api.fountis.org/connect/v1`. If you pass `apiBase` to `start()` (or `apiBase` in the config plugin), remove it or change it to this address.
6
+ - Smaller builds.
7
+ - **Breaking, iOS: Mac Catalyst is not supported from 1.2.0.** The bundled iOS SDK is a prebuilt XCFramework with an iOS device slice and an iOS Simulator slice only. An app that builds for Mac Catalyst cannot use 1.2.0 or later.
8
+
9
+ ## 1.1.0 — 2026-10-19
10
+
11
+ - Android: guest device check with Google Play Integrity when FOUNTIS asks for it for your app (see the Android SDK changelog). The Android build now depends on `com.google.android.play:integrity:1.6.0`. Link the FOUNTIS Google Cloud project to your app in Play Console (App integrity, Play Integrity API).
12
+ - iOS: guest device attestation with App Attest, from the bundled iOS SDK (see its changelog). If FOUNTIS asks for it on your guests, add the App Attest capability to the iOS app (entitlement `com.apple.developer.devicecheck.appattest-environment`; in Expo `ios.entitlements`). Nothing changes when attestation is off.
5
13
  - npm package renamed to `@fountispanel/connect-react-native`. Nothing else changes; install and import it under the new name.
6
14
  - Android: every API request now has an overall 15 second deadline (connection, request and the whole response), the same as the Web SDK, so a server that keeps sending a few bytes cannot keep `show()` busy. The failure ends as `noFill` like any network error. This comes from the bundled Android SDK (see its changelog).
7
15
  - Docs: the Android minimum now names Android System WebView 88 or later next to API 23 (on an older WebView `show()` returns `noFill`), and the README token example reads the `{ "token": "..." }` reply of the sample server, treating a reply without a token as a failure.
package/README.md CHANGED
@@ -78,14 +78,15 @@ Notes:
78
78
  - The token function runs in JavaScript. A background check that wakes the app without JavaScript running gets no answer
79
79
  and does nothing; checks work while the app is open or recently used, and the study also appears on app open.
80
80
  - **Guests:** when the token function returns `null` and FOUNTIS has switched guests on for your app (adult-only apps only), the SDK offers the free studies marked open to guests, after an 18+ confirmation. There is nothing to call; an app without accounts can pass `setUserToken(() => null)`. Guests never see a reward. If your token request fails, throw instead of returning `null`, so a signed-in person is not shown guest studies.
81
+ - **Android guest device check:** when FOUNTIS asks for it, an Android guest's device is checked with Google Play Integrity before the guest session starts. Link the FOUNTIS Google Cloud project to your app in Play Console (App integrity, Play Integrity API); FOUNTIS gives you the project number. Nothing to call, and signed-in users are not checked. See the Android SDK README.
82
+ - **Guest attestation (iOS):** if FOUNTIS asks for device attestation on your guests, add the App Attest capability to the iOS app (entitlement `com.apple.developer.devicecheck.appattest-environment` = `production`; in Expo set it under `ios.entitlements`). There is nothing to call.
81
83
  - On the web, `enableNotifications()` turns on the in-page invitation, and `handlePush` always resolves `false`.
82
84
  - `start` also takes `engineUrl` on the web, to point at another hosted engine.
83
85
 
84
- ## In this repository
86
+ ## Native code
85
87
 
86
- The native SDKs live in `../ios` and `../android`. The podspec copies the Swift sources into `ios/FountisConnectSDK`
87
- when `pod install` runs (re-run it after changing the SDK), and `android/build.gradle` reads `../../android/connect`
88
- in place. `npm pack` copies both into the package (`scripts/vendor-native.sh`), so the tarball is self-contained.
88
+ iOS links the prebuilt `FountisConnect.xcframework` that comes with the package (`npx pod-install` for a bare app).
89
+ Android uses the `org.fountis:connect` library from Maven Central, which Gradle downloads (your app needs
90
+ `mavenCentral()` in its repositories, as every React Native app has). There is nothing else to set up.
89
91
 
90
- Sample app: `../samples/react-native` (`npm install && npx expo prebuild && npx expo run:ios`).
91
- `npm run typecheck` checks the TypeScript.
92
+ Sample app: `samples/react-native` in the public repository (`npm install && npx expo prebuild && npx expo run:ios`).
@@ -4,33 +4,52 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'org.fountis'
7
- version = '1.0.0'
7
+ version = '1.2.0'
8
8
 
9
- // In this repository the Kotlin SDK is next to this package. In the npm package, scripts/vendor-native.sh
10
- // copies it to android/connect-sdk (run automatically on `npm pack`).
9
+ // Two ways to get the FOUNTIS Android SDK into the app:
10
+ //
11
+ // - Published package (the normal case): the SDK is the Maven library org.fountis:connect, downloaded by Gradle
12
+ // (the app's repositories need mavenCentral(), which every React Native app has). This module is only the bridge.
13
+ // Keep that version equal to `version` above (scripts/check-versions.mjs checks the line above).
14
+ // - inRepo: this package sits next to the SDK sources, in the FOUNTIS repository. That mode exists only for CI and
15
+ // development inside this repository: the SDK sources are compiled into this module, so a change to them shows up
16
+ // without publishing anything. A published package never has ../../android/connect, so it never takes this path.
11
17
  def inRepo = file('../../android/connect/src/main').exists()
12
- def sdkMain = inRepo ? file('../../android/connect/src/main') : file('connect-sdk/main')
13
18
 
14
19
  android {
15
- // Same namespace as the SDK, so its R class (notification icon, styles) resolves unchanged.
16
- namespace 'org.fountis.connect'
20
+ // inRepo: the same namespace as the SDK, so its R class (notification icon, styles) resolves unchanged.
21
+ // Published: the bridge's own namespace; the SDK's R class lives in the library.
22
+ namespace(inRepo ? 'org.fountis.connect' : 'org.fountis.connect.rn')
17
23
  defaultConfig {
18
24
  versionCode 1
19
- versionName '1.0.0'
25
+ versionName '1.2.0'
20
26
  }
21
- sourceSets {
22
- main {
23
- java.srcDirs += new File(sdkMain, 'kotlin')
24
- res.srcDirs += new File(sdkMain, 'res')
25
- assets.srcDirs += new File(sdkMain, 'assets')
27
+ if (inRepo) {
28
+ def sdkMain = file('../../android/connect/src/main')
29
+ sourceSets {
30
+ main {
31
+ java.srcDirs += new File(sdkMain, 'kotlin')
32
+ res.srcDirs += new File(sdkMain, 'res')
33
+ assets.srcDirs += new File(sdkMain, 'assets')
34
+ // The SDK's own manifest, kept here (not in src/main, which is shipped) because the SDK is compiled in.
35
+ manifest.srcFile 'repo/AndroidManifest.xml'
36
+ }
26
37
  }
27
38
  }
28
39
  }
29
40
 
30
41
  dependencies {
31
- implementation 'androidx.core:core-ktx:1.15.0'
32
- implementation 'androidx.work:work-runtime-ktx:2.10.0'
33
- implementation 'androidx.webkit:webkit:1.12.1'
34
- implementation 'androidx.lifecycle:lifecycle-process:2.8.7'
42
+ // The bridge itself uses coroutines (CompletableDeferred, withTimeoutOrNull for the token request).
35
43
  implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0'
44
+ if (inRepo) {
45
+ // What the SDK sources need. Keep in step with android/connect/build.gradle.kts.
46
+ implementation 'androidx.core:core-ktx:1.15.0'
47
+ implementation 'androidx.work:work-runtime-ktx:2.10.0'
48
+ implementation 'androidx.webkit:webkit:1.12.1'
49
+ implementation 'androidx.lifecycle:lifecycle-process:2.8.7'
50
+ implementation 'com.google.android.play:integrity:1.6.0'
51
+ } else {
52
+ // The SDK, with its own dependencies, manifest and resources.
53
+ implementation 'org.fountis:connect:1.2.0'
54
+ }
36
55
  }
@@ -1,18 +1,7 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
-
3
- <uses-permission android:name="android.permission.INTERNET" />
4
- <!-- Only asked at runtime (Android 13+) when the app calls enableNotifications(). -->
5
- <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
6
-
7
- <application>
8
- <!-- The full-screen FOUNTIS survey. Not exported; opened only by the SDK. -->
9
- <activity
10
- android:name="org.fountis.connect.FountisSurveyActivity"
11
- android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|uiMode|density|layoutDirection|locale|fontScale"
12
- android:enableOnBackInvokedCallback="true"
13
- android:exported="false"
14
- android:launchMode="singleTop"
15
- android:theme="@style/FountisConnect.Survey"
16
- android:windowSoftInputMode="adjustResize" />
17
- </application>
2
+ <!--
3
+ Nothing to declare here. The permissions (INTERNET, POST_NOTIFICATIONS) and the survey screen
4
+ (org.fountis.connect.FountisSurveyActivity) come from the org.fountis:connect library's own manifest, which Gradle
5
+ merges into the app. Declaring them a second time would make a manifest conflict the day the library changes one.
6
+ -->
18
7
  </manifest>
package/build/index.js CHANGED
@@ -1,126 +1 @@
1
- /**
2
- * @fountispanel/connect-react-native. Public API (same names as the native and web SDKs):
3
- * start, setUserToken, enableNotifications, show, handlePush, setUserConsent, signOut, onEvent
4
- *
5
- * iOS and Android use the native FOUNTIS Connect SDKs (needs an Expo development build or a bare app, not Expo Go).
6
- * React Native Web wraps the Web SDK (see index.web.ts).
7
- */
8
- import { requireNativeModule } from 'expo-modules-core';
9
- let cached;
10
- /** The native module, or null (with one console warning) when it is missing, for example in Expo Go. */
11
- function native() {
12
- if (cached !== undefined)
13
- return cached;
14
- try {
15
- cached = requireNativeModule('FountisConnect');
16
- }
17
- catch {
18
- cached = null;
19
- console.warn('[FountisConnect] The native module was not found. Use an Expo development build or a bare React Native app (not Expo Go), and add the "@fountispanel/connect-react-native" config plugin.');
20
- }
21
- return cached;
22
- }
23
- let provider = null;
24
- let tokenSub = null;
25
- function ensureTokenListener(n) {
26
- if (tokenSub)
27
- return;
28
- // The native SDK asks for a token when it needs one. We answer from the function the app gave us.
29
- tokenSub = n.addListener('onTokenRequest', async (e) => {
30
- let token;
31
- try {
32
- token = (await provider?.()) ?? null;
33
- }
34
- catch {
35
- // A provider that throws could not get a token (a failed request, say). That is not "signed out", so never
36
- // answer null here: null makes the SDK offer guest studies to someone who is signed in. Report the failure instead.
37
- // An older native binary has no rejectToken: nothing is sent, the request times out as before and is read as null
38
- // (the old behaviour). Rebuild the native app to get the fix.
39
- if (typeof n.rejectToken === 'function')
40
- n.rejectToken(e.id);
41
- return;
42
- }
43
- n.resolveToken(e.id, token);
44
- });
45
- }
46
- /** Starts the SDK. Call once, early. Safe to call again. */
47
- export function start(options) {
48
- try {
49
- native()?.start(options.key, options.apiBase ?? null);
50
- }
51
- catch { }
52
- }
53
- /**
54
- * Gives the SDK a way to get the signed user token from your server. The function returns the token when someone is
55
- * signed in and `null` only when nobody is. Throw (or reject) when you cannot get a token, for example when your token
56
- * endpoint fails: nothing is shown then, and the person is not treated as a guest. No answer within 10 seconds also
57
- * counts as a failure.
58
- */
59
- export function setUserToken(tokenProvider) {
60
- try {
61
- provider = typeof tokenProvider === 'function' ? tokenProvider : () => tokenProvider;
62
- const n = native();
63
- if (!n)
64
- return;
65
- ensureTokenListener(n);
66
- n.setTokenProviderEnabled(true);
67
- }
68
- catch { }
69
- }
70
- /** Turns on the background check and asks for the notification permission. One notification a day at most. */
71
- export function enableNotifications() {
72
- try {
73
- native()?.enableNotifications();
74
- }
75
- catch { }
76
- }
77
- /** Looks for a matching study and shows it full screen. Resolves when the person is done. */
78
- export async function show() {
79
- try {
80
- return (await native()?.show()) ?? 'noFill';
81
- }
82
- catch {
83
- return 'noFill';
84
- }
85
- }
86
- /** Call from your push handler with the message data. Resolves `true` if it was a FOUNTIS push (it has a `fountis` key). */
87
- export async function handlePush(data) {
88
- try {
89
- const strings = {};
90
- for (const [k, v] of Object.entries(data ?? {}))
91
- strings[k] = typeof v === 'string' ? v : String(v);
92
- return (await native()?.handlePush(strings)) ?? false;
93
- }
94
- catch {
95
- return false;
96
- }
97
- }
98
- /** Pass the person's consent to be offered studies. Default: true. */
99
- export function setUserConsent(granted) {
100
- try {
101
- native()?.setUserConsent(granted);
102
- }
103
- catch { }
104
- }
105
- /** Forget the signed-in person: removes their local state and pending notifications. */
106
- export function signOut() {
107
- try {
108
- native()?.signOut();
109
- }
110
- catch { }
111
- }
112
- /** Listens to anonymous lifecycle events. Returns a function that removes the listener. */
113
- export function onEvent(listener) {
114
- const n = native();
115
- if (!n)
116
- return () => { };
117
- const sub = n.addListener('onFountisEvent', (e) => {
118
- try {
119
- listener(e);
120
- }
121
- catch { }
122
- });
123
- return () => sub.remove();
124
- }
125
- const FountisConnect = { start, setUserToken, enableNotifications, show, handlePush, setUserConsent, signOut, onEvent };
126
- export default FountisConnect;
1
+ import{requireNativeModule as c}from"expo-modules-core";var r;function n(){if(r!==void 0)return r;try{r=c("FountisConnect")}catch{r=null,console.warn('[FountisConnect] The native module was not found. Use an Expo development build or a bare React Native app (not Expo Go), and add the "@fountispanel/connect-react-native" config plugin.')}return r}var a=null,s=null;function u(t){s||(s=t.addListener("onTokenRequest",async e=>{let o;try{o=await a?.()??null}catch{typeof t.rejectToken=="function"&&t.rejectToken(e.id);return}t.resolveToken(e.id,o)}))}function l(t){try{n()?.start(t.key,t.apiBase??null)}catch{}}function d(t){try{a=typeof t=="function"?t:()=>t;let e=n();if(!e)return;u(e),e.setTokenProviderEnabled(!0)}catch{}}function v(){try{n()?.enableNotifications()}catch{}}async function p(){try{return await n()?.show()??"noFill"}catch{return"noFill"}}async function f(t){try{let e={};for(let[o,i]of Object.entries(t??{}))e[o]=typeof i=="string"?i:String(i);return await n()?.handlePush(e)??!1}catch{return!1}}function h(t){try{n()?.setUserConsent(t)}catch{}}function y(){try{n()?.signOut()}catch{}}function g(t){let e=n();if(!e)return()=>{};let o=e.addListener("onFountisEvent",i=>{try{t(i)}catch{}});return()=>o.remove()}var b={start:l,setUserToken:d,enableNotifications:v,show:p,handlePush:f,setUserConsent:h,signOut:y,onEvent:g},T=b;export{T as default,v as enableNotifications,f as handlePush,g as onEvent,h as setUserConsent,d as setUserToken,p as show,y as signOut,l as start};
@@ -1,57 +1 @@
1
- /**
2
- * React Native Web: wraps the Web SDK (`@fountispanel/connect`). Same API as the native build.
3
- * Notifications are an in-page invitation only, and there are no push messages on the web.
4
- */
5
- import * as web from '@fountispanel/connect';
6
- export function start(options) {
7
- try {
8
- web.start({ key: options.key, apiBase: options.apiBase, engineUrl: options.engineUrl });
9
- }
10
- catch { }
11
- }
12
- export function setUserToken(tokenProvider) {
13
- try {
14
- web.setUserToken(typeof tokenProvider === 'function' ? async () => (await tokenProvider()) ?? null : (tokenProvider ?? null));
15
- }
16
- catch { }
17
- }
18
- export function enableNotifications() {
19
- try {
20
- web.enableNotifications();
21
- }
22
- catch { }
23
- }
24
- export async function show() {
25
- try {
26
- return await web.show();
27
- }
28
- catch {
29
- return 'noFill';
30
- }
31
- }
32
- /** The web has no push messages. */
33
- export async function handlePush(_data) {
34
- return false;
35
- }
36
- export function setUserConsent(granted) {
37
- try {
38
- web.setUserConsent(granted);
39
- }
40
- catch { }
41
- }
42
- export function signOut() {
43
- try {
44
- web.signOut();
45
- }
46
- catch { }
47
- }
48
- export function onEvent(listener) {
49
- try {
50
- return web.onEvent((e) => listener(e));
51
- }
52
- catch {
53
- return () => { };
54
- }
55
- }
56
- const FountisConnect = { start, setUserToken, enableNotifications, show, handlePush, setUserConsent, signOut, onEvent };
57
- export default FountisConnect;
1
+ import*as t from"@fountispanel/connect";function o(e){try{t.start({key:e.key,apiBase:e.apiBase,engineUrl:e.engineUrl})}catch{}}function r(e){try{t.setUserToken(typeof e=="function"?async()=>await e()??null:e??null)}catch{}}function i(){try{t.enableNotifications()}catch{}}async function s(){try{return await t.show()}catch{return"noFill"}}async function a(e){return!1}function c(e){try{t.setUserConsent(e)}catch{}}function u(){try{t.signOut()}catch{}}function l(e){try{return t.onEvent(n=>e(n))}catch{return()=>{}}}var p={start:o,setUserToken:r,enableNotifications:i,show:s,handlePush:a,setUserConsent:c,signOut:u,onEvent:l},f=p;export{f as default,i as enableNotifications,a as handlePush,l as onEvent,c as setUserConsent,r as setUserToken,s as show,u as signOut,o as start};
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>FountisConnect.framework/FountisConnect</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
+ <key>LibraryPath</key>
13
+ <string>FountisConnect.framework</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ <string>x86_64</string>
18
+ </array>
19
+ <key>SupportedPlatform</key>
20
+ <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
23
+ </dict>
24
+ <dict>
25
+ <key>BinaryPath</key>
26
+ <string>FountisConnect.framework/FountisConnect</string>
27
+ <key>LibraryIdentifier</key>
28
+ <string>ios-arm64</string>
29
+ <key>LibraryPath</key>
30
+ <string>FountisConnect.framework</string>
31
+ <key>SupportedArchitectures</key>
32
+ <array>
33
+ <string>arm64</string>
34
+ </array>
35
+ <key>SupportedPlatform</key>
36
+ <string>ios</string>
37
+ </dict>
38
+ </array>
39
+ <key>CFBundlePackageType</key>
40
+ <string>XFWK</string>
41
+ <key>XCFrameworkFormatVersion</key>
42
+ <string>1.0</string>
43
+ </dict>
44
+ </plist>