@hawcx/react-native-sdk 1.0.2 → 1.0.3

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 (34) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +6 -1
  3. package/docs/RELEASE.md +13 -2
  4. package/example/README.md +1 -1
  5. package/example/android/build.gradle +12 -0
  6. package/example/android/settings.gradle +34 -0
  7. package/example/ios/HawcxExampleApp.xcodeproj/project.xcworkspace/xcuserdata/agambhullar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  8. package/example/ios/Podfile.lock +2 -2
  9. package/example/package-lock.json +3 -3
  10. package/example/package.json +1 -1
  11. package/example/src/hawcx.config.ts +7 -1
  12. package/ios/Frameworks/HawcxFramework.xcframework/Info.plist +5 -5
  13. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/HawcxFramework +0 -0
  14. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios.abi.json +12 -258
  15. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
  16. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios.swiftinterface +1 -1
  17. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/HawcxFramework +0 -0
  18. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.abi.json +12 -258
  19. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -1
  20. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
  21. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json +12 -258
  22. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
  23. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/Modules/HawcxFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -1
  24. package/ios/Frameworks/HawcxFramework.xcframework/ios-arm64_x86_64-simulator/HawcxFramework.framework/_CodeSignature/CodeResources +16 -16
  25. package/ios/HawcxReactNative.swift +23 -1
  26. package/lib/commonjs/index.js +7 -1
  27. package/lib/commonjs/index.js.map +1 -1
  28. package/lib/module/index.js +7 -1
  29. package/lib/module/index.js.map +1 -1
  30. package/lib/typescript/index.d.ts +8 -0
  31. package/lib/typescript/index.d.ts.map +1 -1
  32. package/package.json +1 -1
  33. package/src/__tests__/index.test.ts +4 -0
  34. package/src/index.ts +15 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.3] - YYYY-MM-DD
4
+ - TODO: add release notes
5
+
3
6
  ## [1.0.2] - YYYY-MM-DD
4
7
  - OAuth flow update
5
8
  - Android release prep
package/README.md CHANGED
@@ -36,7 +36,10 @@ import { useEffect } from 'react';
36
36
  import { initialize, addAuthListener } from '@hawcx/react-native-sdk';
37
37
 
38
38
  export function bootstrapHawcx() {
39
- return initialize({ projectApiKey: 'YOUR_PROJECT_API_KEY' }).then(() => {
39
+ return initialize({
40
+ projectApiKey: 'YOUR_PROJECT_API_KEY',
41
+ baseUrl: 'https://your-hawcx-host.example.com',
42
+ }).then(() => {
40
43
  const subscription = addAuthListener(event => {
41
44
  if (event.type === 'auth_error') {
42
45
  console.warn('Hawcx error', event.payload);
@@ -49,6 +52,8 @@ export function bootstrapHawcx() {
49
52
 
50
53
  Call `bootstrapHawcx()` once when your app starts (e.g., inside your root component or Redux saga). After that you can use hooks or imperative helpers to drive Smart‑Connect.
51
54
 
55
+ > **Note:** `baseUrl` must be the tenant-specific Hawcx host (e.g., `https://hawcx-api.hawcx.com`). The native SDK appends `/hc_auth` internally and routes all APIs through that cluster.
56
+
52
57
  ### Authentication flow (OTP + authorization code)
53
58
 
54
59
  The SDK now always returns an authorization code. Your frontend must forward it to your backend, which redeems it with Hawcx using the OAuth client credentials we issued for your project.
package/docs/RELEASE.md CHANGED
@@ -36,11 +36,13 @@ This document outlines every command, directory, and deliverable required to pub
36
36
  npm test
37
37
  npm run build # produces lib/
38
38
  ./gradlew -p android clean lintRelease testReleaseUnitTest assembleRelease publishToMavenLocal
39
+ Ensure to udpate api("api.hawcx:hawcx:5.1.1") version in dev_react/android/build.gradle if android aar file version changed
40
+ Then run ./gradlew clean assembleRelease --refresh-dependencies to test if android picks up new aar maven release
39
41
  pod lib lint HawcxReactNative.podspec
40
42
  ```
41
43
  - `./gradlew … publishToMavenLocal` validates the Android bridge (with the bundled Hawcx AAR) builds and can be published.
42
44
  - `pod lib lint` confirms the Podspec + `HawcxFramework.xcframework` remain valid.
43
-
45
+
44
46
  3. **Update version + changelog (repo root)**
45
47
  - Edit `package.json` → bump `version` (run `npm install` afterward so `package-lock.json` picks up the new number).
46
48
  - Update `android/build.gradle`’s fallback `version` string and `example/package.json` (re-run `npm install` inside `example/` so its lockfile updates).
@@ -54,10 +56,19 @@ This document outlines every command, directory, and deliverable required to pub
54
56
  Include refreshed native artifacts (`ios/Frameworks/*.xcframework`, `android/libs/*.aar`) in the same commit when they change.
55
57
 
56
58
  4. **Smoke test the example app**
59
+
60
+ rm -rf ~/Library/Developer/Xcode/DerivedData/HawcxExampleApp*
61
+
57
62
  ```bash
58
63
  cd example
59
64
  npm install
60
- npm run ios
65
+ For ios:
66
+ cd example/ios: pod install
67
+ cd ..
68
+ npm run ios or npm run ios -- --no-packager
69
+ For android:
70
+ cd example/android: ./gradlew clean
71
+ cd ..
61
72
  npm run android
62
73
  # Use your dev credentials in example/src/hawcx.config.ts
63
74
  cd ..
package/example/README.md CHANGED
@@ -9,7 +9,7 @@ This example demonstrates the cross-platform APIs exported by `@hawcx/react-nati
9
9
  cd example
10
10
  npm install
11
11
  ```
12
- 2. Configure credentials in `src/hawcx.config.ts`. The file ships with dev defaults—replace the API key and OAuth values with your own.
12
+ 2. Configure credentials in `src/hawcx.config.ts`. The file ships with dev defaults—replace the API key **and** `HAWCX_BASE_URL` host with your tenant’s values.
13
13
  3. **iOS only:** install pods:
14
14
  ```bash
15
15
  cd ios && pod install && cd ..
@@ -21,3 +21,15 @@ buildscript {
21
21
  }
22
22
 
23
23
  apply plugin: "com.facebook.react.rootproject"
24
+
25
+ subprojects { subproject ->
26
+ subproject.configurations.all { config ->
27
+ config.resolutionStrategy.eachDependency { details ->
28
+ if (details.requested.group == "androidx.core" &&
29
+ (details.requested.name == "core" || details.requested.name == "core-ktx")) {
30
+ details.useVersion("1.13.1")
31
+ details.because("core-ktx 1.16.0 requires compileSdk/AGP 35+, but the demo targets 34/AGP 8.1.1")
32
+ }
33
+ }
34
+ }
35
+ }
@@ -1,3 +1,37 @@
1
+ import org.gradle.api.initialization.resolve.RepositoriesMode
2
+
3
+ dependencyResolutionManagement {
4
+ repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
5
+ repositories {
6
+ google()
7
+ mavenCentral()
8
+ maven { url = uri("https://www.jitpack.io") }
9
+ maven {
10
+ url = uri("https://raw.githubusercontent.com/hawcx/hawcx_android_sdk/main/maven")
11
+ content {
12
+ includeGroup("api.hawcx")
13
+ }
14
+ metadataSources {
15
+ mavenPom()
16
+ artifact()
17
+ }
18
+ }
19
+ def localHawcxRepo = new File(rootDir, "../../../prod_android/hawcx_android_sdk/maven")
20
+ if (localHawcxRepo.exists()) {
21
+ maven {
22
+ url = localHawcxRepo.toURI()
23
+ content {
24
+ includeGroup("api.hawcx")
25
+ }
26
+ metadataSources {
27
+ mavenPom()
28
+ artifact()
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+
1
35
  rootProject.name = 'com.hawcx.example'
2
36
  apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3
37
  include ':app'
@@ -11,7 +11,7 @@ PODS:
11
11
  - ReactCommon/turbomodule/core (= 0.73.9)
12
12
  - fmt (6.2.1)
13
13
  - glog (0.3.5)
14
- - HawcxReactNative (1.0.2):
14
+ - HawcxReactNative (1.0.3):
15
15
  - React-Core
16
16
  - hermes-engine (0.73.9):
17
17
  - hermes-engine/Pre-built (= 0.73.9)
@@ -1236,7 +1236,7 @@ SPEC CHECKSUMS:
1236
1236
  FBReactNativeSpec: 4fe1d8c2fadc7949344b197d933f76b40401aac5
1237
1237
  fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
1238
1238
  glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
1239
- HawcxReactNative: f27677aa2158f6d4a0e76629d1776a2e86cda742
1239
+ HawcxReactNative: e4e76d64721d7f806116d3899ec122766d5c2b65
1240
1240
  hermes-engine: ed62e0dcd013bf4a3b487f164feec1c4e705b5b5
1241
1241
  libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
1242
1242
  RCT-Folly: cd21f1661364f975ae76b3308167ad66b09f53f5
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "hawcx-react-native-sdk-example",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "hawcx-react-native-sdk-example",
9
- "version": "1.0.2",
9
+ "version": "1.0.3",
10
10
  "dependencies": {
11
11
  "@hawcx/react-native-sdk": "file:..",
12
12
  "react": "18.2.0",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "..": {
31
31
  "name": "@hawcx/react-native-sdk",
32
- "version": "1.0.2",
32
+ "version": "1.0.3",
33
33
  "license": "MIT",
34
34
  "devDependencies": {
35
35
  "@react-native/eslint-config": "^0.74.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hawcx-react-native-sdk-example",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "start": "react-native start",
@@ -4,15 +4,21 @@ import type { HawcxInitializeConfig } from '@hawcx/react-native-sdk';
4
4
  * Populate the API key locally for testing or use the in-app form.
5
5
  * Leaving it blank ensures we never ship real credentials in git history.
6
6
  */
7
- export const HAWCX_PROJECT_API_KEY = 'YOUR_API_KEY';
7
+ export const HAWCX_PROJECT_API_KEY = 'ceasar2';
8
+ export const HAWCX_BASE_URL = 'https://ceasar-api.hawcx.com';
8
9
 
9
10
  const buildDefaultConfig = (): HawcxInitializeConfig | null => {
10
11
  const trimmedKey = HAWCX_PROJECT_API_KEY.trim();
11
12
  if (!trimmedKey) {
12
13
  return null;
13
14
  }
15
+ const trimmedBase = HAWCX_BASE_URL.trim();
16
+ if (!trimmedBase) {
17
+ return null;
18
+ }
14
19
  return {
15
20
  projectApiKey: trimmedKey,
21
+ baseUrl: trimmedBase,
16
22
  };
17
23
  };
18
24
 
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>HawcxFramework.framework/HawcxFramework</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>HawcxFramework.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
- <string>x86_64</string>
18
17
  </array>
19
18
  <key>SupportedPlatform</key>
20
19
  <string>ios</string>
21
- <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
23
20
  </dict>
24
21
  <dict>
25
22
  <key>BinaryPath</key>
26
23
  <string>HawcxFramework.framework/HawcxFramework</string>
27
24
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64</string>
25
+ <string>ios-arm64_x86_64-simulator</string>
29
26
  <key>LibraryPath</key>
30
27
  <string>HawcxFramework.framework</string>
31
28
  <key>SupportedArchitectures</key>
32
29
  <array>
33
30
  <string>arm64</string>
31
+ <string>x86_64</string>
34
32
  </array>
35
33
  <key>SupportedPlatform</key>
36
34
  <string>ios</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -7730,7 +7730,7 @@
7730
7730
  {
7731
7731
  "kind": "Constructor",
7732
7732
  "name": "init",
7733
- "printedName": "init(projectApiKey:oauthConfig:)",
7733
+ "printedName": "init(projectApiKey:baseURL:oauthConfig:)",
7734
7734
  "children": [
7735
7735
  {
7736
7736
  "kind": "TypeNominal",
@@ -7744,6 +7744,12 @@
7744
7744
  "printedName": "Swift.String",
7745
7745
  "usr": "s:SS"
7746
7746
  },
7747
+ {
7748
+ "kind": "TypeNominal",
7749
+ "name": "String",
7750
+ "printedName": "Swift.String",
7751
+ "usr": "s:SS"
7752
+ },
7747
7753
  {
7748
7754
  "kind": "TypeNominal",
7749
7755
  "name": "Optional",
@@ -7761,8 +7767,8 @@
7761
7767
  }
7762
7768
  ],
7763
7769
  "declKind": "Constructor",
7764
- "usr": "s:14HawcxFramework0A3SDKC13projectApiKey11oauthConfigACSS_AA0a5OAuthH0VSgtcfc",
7765
- "mangledName": "$s14HawcxFramework0A3SDKC13projectApiKey11oauthConfigACSS_AA0a5OAuthH0VSgtcfc",
7770
+ "usr": "s:14HawcxFramework0A3SDKC13projectApiKey7baseURL11oauthConfigACSS_SSAA0a5OAuthJ0VSgtcfc",
7771
+ "mangledName": "$s14HawcxFramework0A3SDKC13projectApiKey7baseURL11oauthConfigACSS_SSAA0a5OAuthJ0VSgtcfc",
7766
7772
  "moduleName": "HawcxFramework",
7767
7773
  "declAttributes": [
7768
7774
  "AccessControl"
@@ -9189,14 +9195,14 @@
9189
9195
  {
9190
9196
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV4.swift",
9191
9197
  "kind": "BooleanLiteral",
9192
- "offset": 1807,
9198
+ "offset": 1901,
9193
9199
  "length": 5,
9194
9200
  "value": "false"
9195
9201
  },
9196
9202
  {
9197
9203
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/auth\/HawcxAuthV5.swift",
9198
9204
  "kind": "BooleanLiteral",
9199
- "offset": 1502,
9205
+ "offset": 1539,
9200
9206
  "length": 5,
9201
9207
  "value": "false"
9202
9208
  },
@@ -9504,7 +9510,7 @@
9504
9510
  {
9505
9511
  "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/internal\/HawcxSDK.swift",
9506
9512
  "kind": "StringLiteral",
9507
- "offset": 1826,
9513
+ "offset": 1863,
9508
9514
  "length": 39,
9509
9515
  "value": "\"hawcx_sdk_last_registered_apns_token_\""
9510
9516
  },
@@ -9668,258 +9674,6 @@
9668
9674
  "offset": 609,
9669
9675
  "length": 11,
9670
9676
  "value": "\"web_token\""
9671
- },
9672
- {
9673
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9674
- "kind": "StringLiteral",
9675
- "offset": 445,
9676
- "length": 42,
9677
- "value": "\"https:\/\/parenthive-api.hawcx.com\/hc_auth\""
9678
- },
9679
- {
9680
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9681
- "kind": "StringLiteral",
9682
- "offset": 541,
9683
- "length": 42,
9684
- "value": "\"https:\/\/parenthive-api.hawcx.com\/hc_auth\""
9685
- },
9686
- {
9687
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9688
- "kind": "StringLiteral",
9689
- "offset": 725,
9690
- "length": 41,
9691
- "value": "\"https:\/\/parenthive-api.hawcx.com\/hc_reg\""
9692
- },
9693
- {
9694
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9695
- "kind": "StringLiteral",
9696
- "offset": 807,
9697
- "length": 43,
9698
- "value": "\"https:\/\/parenthive-api.hawcx.com\/hc_login\""
9699
- },
9700
- {
9701
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9702
- "kind": "StringLiteral",
9703
- "offset": 886,
9704
- "length": 45,
9705
- "value": "\"https:\/\/parenthive-api.hawcx.com\/ha_session\""
9706
- },
9707
- {
9708
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9709
- "kind": "StringLiteral",
9710
- "offset": 999,
9711
- "length": 43,
9712
- "value": "\"https:\/\/parenthive-api.hawcx.com\/ha_login\""
9713
- },
9714
- {
9715
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9716
- "kind": "StringLiteral",
9717
- "offset": 1120,
9718
- "length": 34,
9719
- "value": "\"\""
9720
- },
9721
- {
9722
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9723
- "kind": "StringLiteral",
9724
- "offset": 1140,
9725
- "length": 1,
9726
- "value": "\"\/v4\/auth-init\""
9727
- },
9728
- {
9729
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9730
- "kind": "StringLiteral",
9731
- "offset": 1186,
9732
- "length": 35,
9733
- "value": "\"\""
9734
- },
9735
- {
9736
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9737
- "kind": "StringLiteral",
9738
- "offset": 1206,
9739
- "length": 1,
9740
- "value": "\"\/v4\/verify-otp\""
9741
- },
9742
- {
9743
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9744
- "kind": "StringLiteral",
9745
- "offset": 1256,
9746
- "length": 38,
9747
- "value": "\"\""
9748
- },
9749
- {
9750
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9751
- "kind": "StringLiteral",
9752
- "offset": 1276,
9753
- "length": 1,
9754
- "value": "\"\/v4\/verify-device\""
9755
- },
9756
- {
9757
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9758
- "kind": "StringLiteral",
9759
- "offset": 1329,
9760
- "length": 38,
9761
- "value": "\"\""
9762
- },
9763
- {
9764
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9765
- "kind": "StringLiteral",
9766
- "offset": 1349,
9767
- "length": 1,
9768
- "value": "\"\/v4\/verify-cipher\""
9769
- },
9770
- {
9771
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9772
- "kind": "StringLiteral",
9773
- "offset": 1427,
9774
- "length": 34,
9775
- "value": "\"\""
9776
- },
9777
- {
9778
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9779
- "kind": "StringLiteral",
9780
- "offset": 1447,
9781
- "length": 1,
9782
- "value": "\"\/v5\/auth-init\""
9783
- },
9784
- {
9785
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9786
- "kind": "StringLiteral",
9787
- "offset": 1493,
9788
- "length": 35,
9789
- "value": "\"\""
9790
- },
9791
- {
9792
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9793
- "kind": "StringLiteral",
9794
- "offset": 1513,
9795
- "length": 1,
9796
- "value": "\"\/v5\/verify-otp\""
9797
- },
9798
- {
9799
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9800
- "kind": "StringLiteral",
9801
- "offset": 1563,
9802
- "length": 38,
9803
- "value": "\"\""
9804
- },
9805
- {
9806
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9807
- "kind": "StringLiteral",
9808
- "offset": 1583,
9809
- "length": 1,
9810
- "value": "\"\/v5\/verify-device\""
9811
- },
9812
- {
9813
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9814
- "kind": "StringLiteral",
9815
- "offset": 1636,
9816
- "length": 38,
9817
- "value": "\"\""
9818
- },
9819
- {
9820
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9821
- "kind": "StringLiteral",
9822
- "offset": 1656,
9823
- "length": 1,
9824
- "value": "\"\/v5\/verify-cipher\""
9825
- },
9826
- {
9827
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9828
- "kind": "StringLiteral",
9829
- "offset": 1775,
9830
- "length": 44,
9831
- "value": "\"\""
9832
- },
9833
- {
9834
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9835
- "kind": "StringLiteral",
9836
- "offset": 1795,
9837
- "length": 1,
9838
- "value": "\"\/v4\/push\/register-token\""
9839
- },
9840
- {
9841
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9842
- "kind": "StringLiteral",
9843
- "offset": 1853,
9844
- "length": 51,
9845
- "value": "\"\""
9846
- },
9847
- {
9848
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9849
- "kind": "StringLiteral",
9850
- "offset": 1873,
9851
- "length": 1,
9852
- "value": "\"\/v4\/push\/login-request-details\""
9853
- },
9854
- {
9855
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9856
- "kind": "StringLiteral",
9857
- "offset": 1938,
9858
- "length": 51,
9859
- "value": "\"\""
9860
- },
9861
- {
9862
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9863
- "kind": "StringLiteral",
9864
- "offset": 1958,
9865
- "length": 1,
9866
- "value": "\"\/v4\/push\/approve-login-request\""
9867
- },
9868
- {
9869
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9870
- "kind": "StringLiteral",
9871
- "offset": 2023,
9872
- "length": 51,
9873
- "value": "\"\""
9874
- },
9875
- {
9876
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9877
- "kind": "StringLiteral",
9878
- "offset": 2043,
9879
- "length": 1,
9880
- "value": "\"\/v4\/push\/decline-login-request\""
9881
- },
9882
- {
9883
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9884
- "kind": "StringLiteral",
9885
- "offset": 2183,
9886
- "length": 43,
9887
- "value": "\"\""
9888
- },
9889
- {
9890
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9891
- "kind": "StringLiteral",
9892
- "offset": 2203,
9893
- "length": 1,
9894
- "value": "\"\/v4\/websession-details\""
9895
- },
9896
- {
9897
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9898
- "kind": "StringLiteral",
9899
- "offset": 2256,
9900
- "length": 43,
9901
- "value": "\"\""
9902
- },
9903
- {
9904
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9905
- "kind": "StringLiteral",
9906
- "offset": 2276,
9907
- "length": 1,
9908
- "value": "\"\/v4\/websession-approve\""
9909
- },
9910
- {
9911
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9912
- "kind": "StringLiteral",
9913
- "offset": 2329,
9914
- "length": 41,
9915
- "value": "\"\""
9916
- },
9917
- {
9918
- "filePath": "\/Users\/agambhullar\/dev_ios\/ios_sdk\/HawcxFramework\/network\/EndPoints.swift",
9919
- "kind": "StringLiteral",
9920
- "offset": 2354,
9921
- "length": 1,
9922
- "value": "\"\/device\/details\""
9923
9677
  }
9924
9678
  ]
9925
9679
  }
@@ -261,7 +261,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
263
  #if compiler(>=5.3) && $NonescapableTypes
264
- public init(projectApiKey: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
264
+ public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
267
267
  public func submitOtpV4(otp: Swift.String)
@@ -261,7 +261,7 @@ public protocol HawcxPushAuthDelegate : AnyObject {
261
261
  public class HawcxSDK {
262
262
  weak public var pushAuthDelegate: (any HawcxFramework.HawcxPushAuthDelegate)?
263
263
  #if compiler(>=5.3) && $NonescapableTypes
264
- public init(projectApiKey: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
264
+ public init(projectApiKey: Swift.String, baseURL: Swift.String, oauthConfig: HawcxFramework.HawcxOAuthConfig? = nil)
265
265
  #endif
266
266
  public func authenticateV4(userid: Swift.String, callback: any HawcxFramework.AuthV4Callback)
267
267
  public func submitOtpV4(otp: Swift.String)