@veryai/react-native-sdk 1.0.16 → 1.0.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.
@@ -14,7 +14,7 @@ apply plugin: 'kotlin-android'
14
14
 
15
15
  android {
16
16
  if (project.android.hasProperty("namespace")) {
17
- namespace 'com.verymobilesdk.rn'
17
+ namespace 'com.verysdk.rn'
18
18
  }
19
19
 
20
20
  compileSdkVersion 34
@@ -49,11 +49,11 @@ dependencies {
49
49
  implementation "com.facebook.react:react-native:+"
50
50
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
51
51
 
52
- // Very Mobile SDK - use published Maven artifact in production,
52
+ // Very SDK - use published Maven artifact in production,
53
53
  // or local project dependency during development
54
- if (findProject(':very-mobile-sdk') != null) {
55
- implementation project(':very-mobile-sdk')
54
+ if (findProject(':very-sdk') != null) {
55
+ implementation project(':very-sdk')
56
56
  } else {
57
- implementation "org.very.mobile:sdk:${project.findProperty('veryMobileSDKVersion') ?: '1.0.16'}"
57
+ implementation "org.very:sdk:${project.findProperty('verySDKVersion') ?: '1.0.20'}"
58
58
  }
59
59
  }
@@ -1 +1 @@
1
- VeryMobileSDKRN_kotlinVersion=1.7.22
1
+ VerySDKRN_kotlinVersion=1.7.22
@@ -1,3 +1,3 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.verymobilesdk.rn">
2
+ package="com.verysdk.rn">
3
3
  </manifest>
@@ -1,14 +1,14 @@
1
- package com.verymobilesdk.rn
1
+ package com.verysdk.rn
2
2
 
3
3
  import com.facebook.react.bridge.*
4
- import org.very.mobile.sdk.VeryConfig
5
- import org.very.mobile.sdk.VeryMobileSDK
6
- import org.very.mobile.sdk.VeryPresentationStyle
4
+ import org.very.sdk.VeryConfig
5
+ import org.very.sdk.VerySDK
6
+ import org.very.sdk.VeryPresentationStyle
7
7
 
8
- class VeryMobileSDKModule(reactContext: ReactApplicationContext) :
8
+ class VerySDKModule(reactContext: ReactApplicationContext) :
9
9
  ReactContextBaseJavaModule(reactContext) {
10
10
 
11
- override fun getName(): String = "VeryMobileSDKRN"
11
+ override fun getName(): String = "VerySDKRN"
12
12
 
13
13
  @ReactMethod
14
14
  fun authenticate(configMap: ReadableMap, promise: Promise) {
@@ -31,7 +31,7 @@ class VeryMobileSDKModule(reactContext: ReactApplicationContext) :
31
31
  else -> VeryPresentationStyle.FULL_SCREEN
32
32
  }
33
33
 
34
- VeryMobileSDK.authenticate(activity, config, style) { result ->
34
+ VerySDK.authenticate(activity, config, style) { result ->
35
35
  val map = Arguments.createMap().apply {
36
36
  putString("code", result.code)
37
37
  putString("userId", result.userId)
@@ -47,6 +47,6 @@ class VeryMobileSDKModule(reactContext: ReactApplicationContext) :
47
47
  @ReactMethod
48
48
  fun isSupported(promise: Promise) {
49
49
  val context = currentActivity ?: reactApplicationContext
50
- promise.resolve(VeryMobileSDK.isSupport(context))
50
+ promise.resolve(VerySDK.isSupport(context))
51
51
  }
52
52
  }
@@ -1,13 +1,13 @@
1
- package com.verymobilesdk.rn
1
+ package com.verysdk.rn
2
2
 
3
3
  import com.facebook.react.ReactPackage
4
4
  import com.facebook.react.bridge.NativeModule
5
5
  import com.facebook.react.bridge.ReactApplicationContext
6
6
  import com.facebook.react.uimanager.ViewManager
7
7
 
8
- class VeryMobileSDKPackage : ReactPackage {
8
+ class VerySDKPackage : ReactPackage {
9
9
  override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
10
- return listOf(VeryMobileSDKModule(reactContext))
10
+ return listOf(VerySDKModule(reactContext))
11
11
  }
12
12
 
13
13
  override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
@@ -1,6 +1,6 @@
1
1
  #import <React/RCTBridgeModule.h>
2
2
 
3
- @interface RCT_EXTERN_MODULE(VeryMobileSDKRN, NSObject)
3
+ @interface RCT_EXTERN_MODULE(VerySDKRN, NSObject)
4
4
 
5
5
  RCT_EXTERN_METHOD(authenticate:(NSDictionary *)config
6
6
  resolver:(RCTPromiseResolveBlock)resolve
@@ -1,8 +1,8 @@
1
1
  import Foundation
2
- import VeryMobileSDK
2
+ import VerySDK
3
3
 
4
- @objc(VeryMobileSDKRN)
5
- class VeryMobileSDKRN: NSObject {
4
+ @objc(VerySDKRN)
5
+ class VerySDKRN: NSObject {
6
6
 
7
7
  @objc static func requiresMainQueueSetup() -> Bool { return false }
8
8
 
@@ -33,7 +33,7 @@ class VeryMobileSDKRN: NSObject {
33
33
 
34
34
  let style: VeryPresentationStyle = .modal
35
35
 
36
- VeryMobileSDK.authenticate(from: rootVC, config: veryConfig, presentationStyle: style) { result in
36
+ VerySDK.authenticate(from: rootVC, config: veryConfig, presentationStyle: style) { result in
37
37
  var dict: [String: Any] = [
38
38
  "code": result.code,
39
39
  "userId": result.userId ?? "",
@@ -55,7 +55,7 @@ class VeryMobileSDKRN: NSObject {
55
55
 
56
56
  @objc func isSupported(_ resolve: RCTPromiseResolveBlock,
57
57
  rejecter reject: RCTPromiseRejectBlock) {
58
- resolve(VeryMobileSDK.isSupport())
58
+ resolve(VerySDK.isSupport())
59
59
  }
60
60
 
61
61
  // MARK: - Helper
@@ -9,10 +9,10 @@ const LINKING_ERROR = `The package '@veryai/react-native-sdk' doesn't seem to be
9
9
  ios: "- You have run 'pod install'\n",
10
10
  default: ''
11
11
  }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
12
- const VeryMobileSDKRN = _reactNative.NativeModules.VeryMobileSDKRN ? _reactNative.NativeModules.VeryMobileSDKRN : new Proxy({}, {
12
+ const VerySDKRN = _reactNative.NativeModules.VerySDKRN ? _reactNative.NativeModules.VerySDKRN : new Proxy({}, {
13
13
  get() {
14
14
  throw new Error(LINKING_ERROR);
15
15
  }
16
16
  });
17
- var _default = exports.default = VeryMobileSDKRN;
18
- //# sourceMappingURL=NativeVeryMobileSDK.js.map
17
+ var _default = exports.default = VerySDKRN;
18
+ //# sourceMappingURL=NativeVerySDK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","VerySDKRN","NativeModules","Proxy","get","Error","_default","exports"],"sourceRoot":"../../src","sources":["NativeVerySDK.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,mFAAmF,GACnFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,SAAS,GAAGC,0BAAa,CAACD,SAAS,GACrCC,0BAAa,CAACD,SAAS,GACvB,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAP,OAAA,GAOSC,SAAS","ignoreList":[]}
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.VeryMobileSDK = void 0;
7
- var _NativeVeryMobileSDK = _interopRequireDefault(require("./NativeVeryMobileSDK"));
6
+ exports.VerySDK = void 0;
7
+ var _NativeVerySDK = _interopRequireDefault(require("./NativeVerySDK"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- const VeryMobileSDK = exports.VeryMobileSDK = {
9
+ const VerySDK = exports.VerySDK = {
10
10
  async authenticate(config) {
11
- const raw = await _NativeVeryMobileSDK.default.authenticate({
11
+ const raw = await _NativeVerySDK.default.authenticate({
12
12
  sdkKey: config.sdkKey,
13
13
  userId: config.userId ?? null,
14
14
  language: config.language ?? null,
@@ -26,7 +26,7 @@ const VeryMobileSDK = exports.VeryMobileSDK = {
26
26
  };
27
27
  },
28
28
  async isSupported() {
29
- return _NativeVeryMobileSDK.default.isSupported();
29
+ return _NativeVerySDK.default.isSupported();
30
30
  }
31
31
  };
32
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_NativeVeryMobileSDK","_interopRequireDefault","require","e","__esModule","default","VeryMobileSDK","exports","authenticate","config","raw","NativeModule","sdkKey","userId","language","themeMode","baseUrl","presentationStyle","code","signedToken","undefined","error","errorMessage","isSuccess","isSupported"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAiD,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAK1C,MAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3B,MAAME,YAAYA,CAACC,MAAkB,EAAuB;IAC1D,MAAMC,GAAG,GAAG,MAAMC,4BAAY,CAACH,YAAY,CAAC;MAC1CI,MAAM,EAAEH,MAAM,CAACG,MAAM;MACrBC,MAAM,EAAEJ,MAAM,CAACI,MAAM,IAAI,IAAI;MAC7BC,QAAQ,EAAEL,MAAM,CAACK,QAAQ,IAAI,IAAI;MACjCC,SAAS,EAAEN,MAAM,CAACM,SAAS,IAAI,MAAM;MACrCC,OAAO,EAAEP,MAAM,CAACO,OAAO,IAAI,IAAI;MAC/BC,iBAAiB,EAAER,MAAM,CAACQ,iBAAiB,IAAI;IACjD,CAAC,CAAC;IACF,OAAO;MACLC,IAAI,EAAER,GAAG,CAACQ,IAAc;MACxBL,MAAM,EAAEH,GAAG,CAACG,MAAgB;MAC5BM,WAAW,EAAGT,GAAG,CAACS,WAAW,IAAeC,SAAS;MACrDC,KAAK,EAAGX,GAAG,CAACW,KAAK,IAAeD,SAAS;MACzCE,YAAY,EAAGZ,GAAG,CAACY,YAAY,IAAeF,SAAS;MACvDG,SAAS,EAAEb,GAAG,CAACa;IACjB,CAAC;EACH,CAAC;EAED,MAAMC,WAAWA,CAAA,EAAqB;IACpC,OAAOb,4BAAY,CAACa,WAAW,CAAC,CAAC;EACnC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_NativeVerySDK","_interopRequireDefault","require","e","__esModule","default","VerySDK","exports","authenticate","config","raw","NativeModule","sdkKey","userId","language","themeMode","baseUrl","presentationStyle","code","signedToken","undefined","error","errorMessage","isSuccess","isSupported"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAKpC,MAAMG,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG;EACrB,MAAME,YAAYA,CAACC,MAAkB,EAAuB;IAC1D,MAAMC,GAAG,GAAG,MAAMC,sBAAY,CAACH,YAAY,CAAC;MAC1CI,MAAM,EAAEH,MAAM,CAACG,MAAM;MACrBC,MAAM,EAAEJ,MAAM,CAACI,MAAM,IAAI,IAAI;MAC7BC,QAAQ,EAAEL,MAAM,CAACK,QAAQ,IAAI,IAAI;MACjCC,SAAS,EAAEN,MAAM,CAACM,SAAS,IAAI,MAAM;MACrCC,OAAO,EAAEP,MAAM,CAACO,OAAO,IAAI,IAAI;MAC/BC,iBAAiB,EAAER,MAAM,CAACQ,iBAAiB,IAAI;IACjD,CAAC,CAAC;IACF,OAAO;MACLC,IAAI,EAAER,GAAG,CAACQ,IAAc;MACxBL,MAAM,EAAEH,GAAG,CAACG,MAAgB;MAC5BM,WAAW,EAAGT,GAAG,CAACS,WAAW,IAAeC,SAAS;MACrDC,KAAK,EAAGX,GAAG,CAACW,KAAK,IAAeD,SAAS;MACzCE,YAAY,EAAGZ,GAAG,CAACY,YAAY,IAAeF,SAAS;MACvDG,SAAS,EAAEb,GAAG,CAACa;IACjB,CAAC;EACH,CAAC;EAED,MAAMC,WAAWA,CAAA,EAAqB;IACpC,OAAOb,sBAAY,CAACa,WAAW,CAAC,CAAC;EACnC;AACF,CAAC","ignoreList":[]}
@@ -3,10 +3,10 @@ const LINKING_ERROR = `The package '@veryai/react-native-sdk' doesn't seem to be
3
3
  ios: "- You have run 'pod install'\n",
4
4
  default: ''
5
5
  }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
6
- const VeryMobileSDKRN = NativeModules.VeryMobileSDKRN ? NativeModules.VeryMobileSDKRN : new Proxy({}, {
6
+ const VerySDKRN = NativeModules.VerySDKRN ? NativeModules.VerySDKRN : new Proxy({}, {
7
7
  get() {
8
8
  throw new Error(LINKING_ERROR);
9
9
  }
10
10
  });
11
- export default VeryMobileSDKRN;
12
- //# sourceMappingURL=NativeVeryMobileSDK.js.map
11
+ export default VerySDKRN;
12
+ //# sourceMappingURL=NativeVerySDK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","VerySDKRN","Proxy","get","Error"],"sourceRoot":"../../src","sources":["NativeVerySDK.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GACjB,mFAAmF,GACnFD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,SAAS,GAAGN,aAAa,CAACM,SAAS,GACrCN,aAAa,CAACM,SAAS,GACvB,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAOL,eAAeI,SAAS","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import NativeModule from './NativeVeryMobileSDK';
2
- export const VeryMobileSDK = {
1
+ import NativeModule from './NativeVerySDK';
2
+ export const VerySDK = {
3
3
  async authenticate(config) {
4
4
  const raw = await NativeModule.authenticate({
5
5
  sdkKey: config.sdkKey,
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModule","VeryMobileSDK","authenticate","config","raw","sdkKey","userId","language","themeMode","baseUrl","presentationStyle","code","signedToken","undefined","error","errorMessage","isSuccess","isSupported"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,YAAY,MAAM,uBAAuB;AAKhD,OAAO,MAAMC,aAAa,GAAG;EAC3B,MAAMC,YAAYA,CAACC,MAAkB,EAAuB;IAC1D,MAAMC,GAAG,GAAG,MAAMJ,YAAY,CAACE,YAAY,CAAC;MAC1CG,MAAM,EAAEF,MAAM,CAACE,MAAM;MACrBC,MAAM,EAAEH,MAAM,CAACG,MAAM,IAAI,IAAI;MAC7BC,QAAQ,EAAEJ,MAAM,CAACI,QAAQ,IAAI,IAAI;MACjCC,SAAS,EAAEL,MAAM,CAACK,SAAS,IAAI,MAAM;MACrCC,OAAO,EAAEN,MAAM,CAACM,OAAO,IAAI,IAAI;MAC/BC,iBAAiB,EAAEP,MAAM,CAACO,iBAAiB,IAAI;IACjD,CAAC,CAAC;IACF,OAAO;MACLC,IAAI,EAAEP,GAAG,CAACO,IAAc;MACxBL,MAAM,EAAEF,GAAG,CAACE,MAAgB;MAC5BM,WAAW,EAAGR,GAAG,CAACQ,WAAW,IAAeC,SAAS;MACrDC,KAAK,EAAGV,GAAG,CAACU,KAAK,IAAeD,SAAS;MACzCE,YAAY,EAAGX,GAAG,CAACW,YAAY,IAAeF,SAAS;MACvDG,SAAS,EAAEZ,GAAG,CAACY;IACjB,CAAC;EACH,CAAC;EAED,MAAMC,WAAWA,CAAA,EAAqB;IACpC,OAAOjB,YAAY,CAACiB,WAAW,CAAC,CAAC;EACnC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeModule","VerySDK","authenticate","config","raw","sdkKey","userId","language","themeMode","baseUrl","presentationStyle","code","signedToken","undefined","error","errorMessage","isSuccess","isSupported"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,YAAY,MAAM,iBAAiB;AAK1C,OAAO,MAAMC,OAAO,GAAG;EACrB,MAAMC,YAAYA,CAACC,MAAkB,EAAuB;IAC1D,MAAMC,GAAG,GAAG,MAAMJ,YAAY,CAACE,YAAY,CAAC;MAC1CG,MAAM,EAAEF,MAAM,CAACE,MAAM;MACrBC,MAAM,EAAEH,MAAM,CAACG,MAAM,IAAI,IAAI;MAC7BC,QAAQ,EAAEJ,MAAM,CAACI,QAAQ,IAAI,IAAI;MACjCC,SAAS,EAAEL,MAAM,CAACK,SAAS,IAAI,MAAM;MACrCC,OAAO,EAAEN,MAAM,CAACM,OAAO,IAAI,IAAI;MAC/BC,iBAAiB,EAAEP,MAAM,CAACO,iBAAiB,IAAI;IACjD,CAAC,CAAC;IACF,OAAO;MACLC,IAAI,EAAEP,GAAG,CAACO,IAAc;MACxBL,MAAM,EAAEF,GAAG,CAACE,MAAgB;MAC5BM,WAAW,EAAGR,GAAG,CAACQ,WAAW,IAAeC,SAAS;MACrDC,KAAK,EAAGV,GAAG,CAACU,KAAK,IAAeD,SAAS;MACzCE,YAAY,EAAGX,GAAG,CAACW,YAAY,IAAeF,SAAS;MACvDG,SAAS,EAAEZ,GAAG,CAACY;IACjB,CAAC;EACH,CAAC;EAED,MAAMC,WAAWA,CAAA,EAAqB;IACpC,OAAOjB,YAAY,CAACiB,WAAW,CAAC,CAAC;EACnC;AACF,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- export interface NativeVeryMobileSDKSpec {
1
+ export interface NativeVerySDKSpec {
2
2
  authenticate(config: Record<string, any>): Promise<Record<string, any>>;
3
3
  isSupported(): Promise<boolean>;
4
4
  }
5
- declare const _default: NativeVeryMobileSDKSpec;
5
+ declare const _default: NativeVerySDKSpec;
6
6
  export default _default;
7
- //# sourceMappingURL=NativeVeryMobileSDK.d.ts.map
7
+ //# sourceMappingURL=NativeVerySDK.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeVerySDK.d.ts","sourceRoot":"","sources":["../../src/NativeVerySDK.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IACxE,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC;wBAE2B,iBAAiB;AAA7C,wBAA8C"}
@@ -1,6 +1,6 @@
1
1
  import type { VeryConfig, VeryResult } from './types';
2
2
  export type { VeryConfig, VeryResult };
3
- export declare const VeryMobileSDK: {
3
+ export declare const VerySDK: {
4
4
  authenticate(config: VeryConfig): Promise<VeryResult>;
5
5
  isSupported(): Promise<boolean>;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEtD,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAEvC,eAAO,MAAM,aAAa;yBACG,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;mBAmBtC,OAAO,CAAC,OAAO,CAAC;CAGtC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEtD,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAEvC,eAAO,MAAM,OAAO;yBACS,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;mBAmBtC,OAAO,CAAC,OAAO,CAAC;CAGtC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veryai/react-native-sdk",
3
- "version": "1.0.16",
4
- "description": "React Native wrapper for Very Mobile SDK - Palm biometrics verification",
3
+ "version": "1.0.20",
4
+ "description": "React Native wrapper for Very SDK - Palm biometrics verification",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
7
  "types": "lib/typescript/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "verification",
30
30
  "very"
31
31
  ],
32
- "repository": "https://github.com/veroslabs/very-mobile-sdk",
32
+ "repository": "https://github.com/veroslabs/very-sdk",
33
33
  "author": "Very Mobile Inc.",
34
34
  "license": "MIT",
35
35
  "peerDependencies": {
@@ -6,8 +6,8 @@ const LINKING_ERROR =
6
6
  '- You rebuilt the app after installing the package\n' +
7
7
  '- You are not using Expo Go\n';
8
8
 
9
- const VeryMobileSDKRN = NativeModules.VeryMobileSDKRN
10
- ? NativeModules.VeryMobileSDKRN
9
+ const VerySDKRN = NativeModules.VerySDKRN
10
+ ? NativeModules.VerySDKRN
11
11
  : new Proxy(
12
12
  {},
13
13
  {
@@ -17,9 +17,9 @@ const VeryMobileSDKRN = NativeModules.VeryMobileSDKRN
17
17
  }
18
18
  );
19
19
 
20
- export interface NativeVeryMobileSDKSpec {
20
+ export interface NativeVerySDKSpec {
21
21
  authenticate(config: Record<string, any>): Promise<Record<string, any>>;
22
22
  isSupported(): Promise<boolean>;
23
23
  }
24
24
 
25
- export default VeryMobileSDKRN as NativeVeryMobileSDKSpec;
25
+ export default VerySDKRN as NativeVerySDKSpec;
package/src/index.tsx CHANGED
@@ -1,9 +1,9 @@
1
- import NativeModule from './NativeVeryMobileSDK';
1
+ import NativeModule from './NativeVerySDK';
2
2
  import type { VeryConfig, VeryResult } from './types';
3
3
 
4
4
  export type { VeryConfig, VeryResult };
5
5
 
6
- export const VeryMobileSDK = {
6
+ export const VerySDK = {
7
7
  async authenticate(config: VeryConfig): Promise<VeryResult> {
8
8
  const raw = await NativeModule.authenticate({
9
9
  sdkKey: config.sdkKey,
@@ -8,11 +8,11 @@ Pod::Spec.new do |s|
8
8
  s.homepage = "https://very.org"
9
9
  s.license = "MIT"
10
10
  s.author = { "Very Mobile Inc." => "mail@very.org" }
11
- s.source = { :git => "https://github.com/veroslabs/very-mobile-sdk.git", :tag => s.version }
11
+ s.source = { :git => "https://github.com/veroslabs/very-sdk.git", :tag => s.version }
12
12
  s.platform = :ios, "13.0"
13
13
 
14
14
  s.source_files = "ios/**/*.{swift,h,m}"
15
15
  s.dependency "React-Core"
16
- s.dependency "VeryMobileSDK", "1.0.16"
16
+ s.dependency "VerySDK", "1.0.20"
17
17
  s.swift_version = "5.0"
18
18
  end
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","VeryMobileSDKRN","NativeModules","Proxy","get","Error","_default","exports"],"sourceRoot":"../../src","sources":["NativeVeryMobileSDK.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,mFAAmF,GACnFC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,eAAe,GAAGC,0BAAa,CAACD,eAAe,GACjDC,0BAAa,CAACD,eAAe,GAC7B,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAP,OAAA,GAOSC,eAAe","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","VeryMobileSDKRN","Proxy","get","Error"],"sourceRoot":"../../src","sources":["NativeVeryMobileSDK.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GACjB,mFAAmF,GACnFD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,eAAe,GAAGN,aAAa,CAACM,eAAe,GACjDN,aAAa,CAACM,eAAe,GAC7B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAOL,eAAeI,eAAe","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeVeryMobileSDK.d.ts","sourceRoot":"","sources":["../../src/NativeVeryMobileSDK.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IACxE,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC;wBAEiC,uBAAuB;AAAzD,wBAA0D"}