payme-mini-app 0.1.7 → 0.1.9

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.
package/README.md CHANGED
@@ -1,31 +1,5 @@
1
- # payme-mini-app
2
-
3
-
4
-
5
- ## Installation
6
-
7
- ```sh
8
- npm install payme-mini-app
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import { multiply } from 'payme-mini-app';
15
-
16
- // ...
17
-
18
- const result = await multiply(3, 7);
19
- ```
20
-
21
- ## Contributing
22
-
23
- See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
24
-
25
- ## License
26
-
27
- MIT
28
-
29
- ---
30
-
31
- Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
1
+ ## ios
2
+ - (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler
3
+ {
4
+ completionHandler();
5
+ }
@@ -12,14 +12,6 @@ class RNPayMEMiniApp: RCTEventEmitter, PayMEDelegate {
12
12
  }
13
13
  }
14
14
 
15
- @objc func changeConfig(_ newConfig: NSDictionary) {
16
- DispatchQueue.main.sync {
17
- if let isLogging = newConfig["isLogging"] as? Bool {
18
- PayMEConfig.instance.isLogging = isLogging
19
- }
20
- }
21
- }
22
-
23
15
  @objc func open(_ type: String, param: NSDictionary) {
24
16
  let openAction: PayMEAction = {
25
17
  switch param["action"] as? String {
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PayMEMiniAppEvents = void 0;
7
- exports.changeConfig = changeConfig;
8
7
  exports.init = init;
9
8
  exports.open = open;
10
9
  var _reactNative = require("react-native");
@@ -15,9 +14,6 @@ function init(appId, publicKey, privateKey, env) {
15
14
  function open(type, openingParam) {
16
15
  return RNPayMEMiniApp.open(type, openingParam);
17
16
  }
18
- function changeConfig(config) {
19
- return RNPayMEMiniApp.changeConfig(config);
20
- }
21
17
  const PayMEMiniAppEvents = new _reactNative.NativeEventEmitter(RNPayMEMiniApp);
22
18
  exports.PayMEMiniAppEvents = PayMEMiniAppEvents;
23
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["RNPayMEMiniApp","NativeModules","init","appId","publicKey","privateKey","env","initPayME","open","type","openingParam","changeConfig","config","PayMEMiniAppEvents","NativeEventEmitter"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;AAAA;AAGA,MAAMA,cAAc,GAAGC,0BAAa,CAACD,cAAc;AAE5C,SAASE,IAAI,CAClBC,KAAa,EACbC,SAAiB,EACjBC,UAAkB,EAClBC,GAAa,EACb;EACA,OAAON,cAAc,CAACO,SAAS,CAACJ,KAAK,EAAEC,SAAS,EAAEC,UAAU,EAAEC,GAAG,CAAC;AACpE;AAEO,SAASE,IAAI,CAACC,IAAY,EAAEC,YAA+B,EAAE;EAClE,OAAOV,cAAc,CAACQ,IAAI,CAACC,IAAI,EAAEC,YAAY,CAAC;AAChD;AAEO,SAASC,YAAY,CAACC,MAAmB,EAAE;EAChD,OAAOZ,cAAc,CAACW,YAAY,CAACC,MAAM,CAAC;AAC5C;AAEO,MAAMC,kBAAkB,GAAG,IAAIC,+BAAkB,CAACd,cAAc,CAAC;AAAC"}
1
+ {"version":3,"names":["RNPayMEMiniApp","NativeModules","init","appId","publicKey","privateKey","env","initPayME","open","type","openingParam","PayMEMiniAppEvents","NativeEventEmitter"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;AAAA;AAGA,MAAMA,cAAc,GAAGC,0BAAa,CAACD,cAAc;AAE5C,SAASE,IAAI,CAClBC,KAAa,EACbC,SAAiB,EACjBC,UAAkB,EAClBC,GAAa,EACb;EACA,OAAON,cAAc,CAACO,SAAS,CAACJ,KAAK,EAAEC,SAAS,EAAEC,UAAU,EAAEC,GAAG,CAAC;AACpE;AAEO,SAASE,IAAI,CAACC,IAAY,EAAEC,YAA+B,EAAE;EAClE,OAAOV,cAAc,CAACQ,IAAI,CAACC,IAAI,EAAEC,YAAY,CAAC;AAChD;AAEO,MAAMC,kBAAkB,GAAG,IAAIC,+BAAkB,CAACZ,cAAc,CAAC;AAAC"}
@@ -6,8 +6,5 @@ export function init(appId, publicKey, privateKey, env) {
6
6
  export function open(type, openingParam) {
7
7
  return RNPayMEMiniApp.open(type, openingParam);
8
8
  }
9
- export function changeConfig(config) {
10
- return RNPayMEMiniApp.changeConfig(config);
11
- }
12
9
  export const PayMEMiniAppEvents = new NativeEventEmitter(RNPayMEMiniApp);
13
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["NativeEventEmitter","NativeModules","RNPayMEMiniApp","init","appId","publicKey","privateKey","env","initPayME","open","type","openingParam","changeConfig","config","PayMEMiniAppEvents"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAGhE,MAAMC,cAAc,GAAGD,aAAa,CAACC,cAAc;AAEnD,OAAO,SAASC,IAAI,CAClBC,KAAa,EACbC,SAAiB,EACjBC,UAAkB,EAClBC,GAAa,EACb;EACA,OAAOL,cAAc,CAACM,SAAS,CAACJ,KAAK,EAAEC,SAAS,EAAEC,UAAU,EAAEC,GAAG,CAAC;AACpE;AAEA,OAAO,SAASE,IAAI,CAACC,IAAY,EAAEC,YAA+B,EAAE;EAClE,OAAOT,cAAc,CAACO,IAAI,CAACC,IAAI,EAAEC,YAAY,CAAC;AAChD;AAEA,OAAO,SAASC,YAAY,CAACC,MAAmB,EAAE;EAChD,OAAOX,cAAc,CAACU,YAAY,CAACC,MAAM,CAAC;AAC5C;AAEA,OAAO,MAAMC,kBAAkB,GAAG,IAAId,kBAAkB,CAACE,cAAc,CAAC"}
1
+ {"version":3,"names":["NativeEventEmitter","NativeModules","RNPayMEMiniApp","init","appId","publicKey","privateKey","env","initPayME","open","type","openingParam","PayMEMiniAppEvents"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAGhE,MAAMC,cAAc,GAAGD,aAAa,CAACC,cAAc;AAEnD,OAAO,SAASC,IAAI,CAClBC,KAAa,EACbC,SAAiB,EACjBC,UAAkB,EAClBC,GAAa,EACb;EACA,OAAOL,cAAc,CAACM,SAAS,CAACJ,KAAK,EAAEC,SAAS,EAAEC,UAAU,EAAEC,GAAG,CAAC;AACpE;AAEA,OAAO,SAASE,IAAI,CAACC,IAAY,EAAEC,YAA+B,EAAE;EAClE,OAAOT,cAAc,CAACO,IAAI,CAACC,IAAI,EAAEC,YAAY,CAAC;AAChD;AAEA,OAAO,MAAMC,kBAAkB,GAAG,IAAIZ,kBAAkB,CAACE,cAAc,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { NativeEventEmitter } from 'react-native';
2
- import type { PayMEConfig, PayMEEnv, PayMEOpeningParam } from './index.type';
2
+ import type { PayMEEnv, PayMEOpeningParam } from './index.type';
3
3
  export declare function init(appId: string, publicKey: string, privateKey: string, env: PayMEEnv): any;
4
4
  export declare function open(type: string, openingParam: PayMEOpeningParam): any;
5
- export declare function changeConfig(config: PayMEConfig): any;
6
5
  export declare const PayMEMiniAppEvents: NativeEventEmitter;
7
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAI7E,wBAAgB,IAAI,CAClB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,QAAQ,OAGd;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,OAEjE;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,OAE/C;AAED,eAAO,MAAM,kBAAkB,oBAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIhE,wBAAgB,IAAI,CAClB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,QAAQ,OAGd;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,OAEjE;AAED,eAAO,MAAM,kBAAkB,oBAAyC,CAAC"}
@@ -16,8 +16,5 @@ export type PayMEOpeningParam = {
16
16
  data: PayMEPaymentParam;
17
17
  };
18
18
  export type PayMEEnv = 'PRODUCTION' | 'SANDBOX';
19
- export type PayMEConfig = {
20
- isLogging: boolean;
21
- };
22
19
  export {};
23
20
  //# sourceMappingURL=index.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.type.d.ts","sourceRoot":"","sources":["../../src/index.type.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"index.type.d.ts","sourceRoot":"","sources":["../../src/index.type.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GACzB;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payme-mini-app",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.swift_versions = "5.0"
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency "PayMEMiniApp", "0.0.2"
19
+ s.dependency "PayMEMiniApp", "0.0.4"
20
20
  s.dependency "React-Core"
21
21
  s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
package/src/index.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { NativeEventEmitter, NativeModules } from 'react-native';
2
- import type { PayMEConfig, PayMEEnv, PayMEOpeningParam } from './index.type';
2
+ import type { PayMEEnv, PayMEOpeningParam } from './index.type';
3
3
 
4
4
  const RNPayMEMiniApp = NativeModules.RNPayMEMiniApp;
5
5
 
@@ -16,8 +16,4 @@ export function open(type: string, openingParam: PayMEOpeningParam) {
16
16
  return RNPayMEMiniApp.open(type, openingParam);
17
17
  }
18
18
 
19
- export function changeConfig(config: PayMEConfig) {
20
- return RNPayMEMiniApp.changeConfig(config);
21
- }
22
-
23
19
  export const PayMEMiniAppEvents = new NativeEventEmitter(RNPayMEMiniApp);
package/src/index.type.ts CHANGED
@@ -11,7 +11,3 @@ export type PayMEOpeningParam =
11
11
  | { action: 'PAY'; phone: string; data: PayMEPaymentParam };
12
12
 
13
13
  export type PayMEEnv = 'PRODUCTION' | 'SANDBOX';
14
-
15
- export type PayMEConfig = {
16
- isLogging: boolean;
17
- };