@reclaimprotocol/inapp-rn-sdk 0.9.3-alpha.10 → 0.9.3-alpha.2

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 (37) hide show
  1. package/expo-plugin/build/android/index.d.ts +2 -2
  2. package/expo-plugin/build/android/index.js +5 -5
  3. package/expo-plugin/build/index.js +2 -2
  4. package/expo-plugin/src/android/index.ts +2 -2
  5. package/expo-plugin/src/android/{withReclaimAndroidManifest.ts → install_reclaim_android_manifest.ts} +1 -1
  6. package/expo-plugin/src/android/{withReclaimProjectBuildGradle.ts → install_reclaim_project_build_gradle.ts} +6 -6
  7. package/expo-plugin/src/index.ts +5 -5
  8. package/expo-plugin/tsconfig.json +1 -2
  9. package/lib/typescript/commonjs/expo-plugin/src/android/index.d.ts +3 -0
  10. package/lib/typescript/commonjs/expo-plugin/src/android/index.d.ts.map +1 -0
  11. package/lib/typescript/commonjs/expo-plugin/src/android/install_reclaim_android_manifest.d.ts +3 -0
  12. package/lib/typescript/commonjs/expo-plugin/src/android/install_reclaim_android_manifest.d.ts.map +1 -0
  13. package/lib/typescript/commonjs/expo-plugin/src/android/install_reclaim_project_build_gradle.d.ts +3 -0
  14. package/lib/typescript/commonjs/expo-plugin/src/android/install_reclaim_project_build_gradle.d.ts.map +1 -0
  15. package/lib/typescript/commonjs/expo-plugin/src/index.d.ts +4 -0
  16. package/lib/typescript/commonjs/expo-plugin/src/index.d.ts.map +1 -0
  17. package/lib/typescript/commonjs/user-workspace/src/App.d.ts +2 -0
  18. package/lib/typescript/commonjs/user-workspace/src/App.d.ts.map +1 -0
  19. package/lib/typescript/commonjs/user-workspace/src/App.overrides.d.ts +2 -0
  20. package/lib/typescript/commonjs/user-workspace/src/App.overrides.d.ts.map +1 -0
  21. package/lib/typescript/module/expo-plugin/src/android/index.d.ts +3 -0
  22. package/lib/typescript/module/expo-plugin/src/android/index.d.ts.map +1 -0
  23. package/lib/typescript/module/expo-plugin/src/android/install_reclaim_android_manifest.d.ts +3 -0
  24. package/lib/typescript/module/expo-plugin/src/android/install_reclaim_android_manifest.d.ts.map +1 -0
  25. package/lib/typescript/module/expo-plugin/src/android/install_reclaim_project_build_gradle.d.ts +3 -0
  26. package/lib/typescript/module/expo-plugin/src/android/install_reclaim_project_build_gradle.d.ts.map +1 -0
  27. package/lib/typescript/module/expo-plugin/src/index.d.ts +4 -0
  28. package/lib/typescript/module/expo-plugin/src/index.d.ts.map +1 -0
  29. package/lib/typescript/module/user-workspace/src/App.d.ts +2 -0
  30. package/lib/typescript/module/user-workspace/src/App.d.ts.map +1 -0
  31. package/lib/typescript/module/user-workspace/src/App.overrides.d.ts +2 -0
  32. package/lib/typescript/module/user-workspace/src/App.overrides.d.ts.map +1 -0
  33. package/package.json +1 -1
  34. package/expo-plugin/build/android/withReclaimAndroidManifest.d.ts +0 -2
  35. package/expo-plugin/build/android/withReclaimAndroidManifest.js +0 -38
  36. package/expo-plugin/build/android/withReclaimProjectBuildGradle.d.ts +0 -2
  37. package/expo-plugin/build/android/withReclaimProjectBuildGradle.js +0 -54
@@ -1,2 +1,2 @@
1
- export { withReclaimAndroidManifest } from './withReclaimAndroidManifest';
2
- export { withReclaimProjectBuildGradle } from './withReclaimProjectBuildGradle';
1
+ export { installReclaimAndroidManifest } from './install_reclaim_android_manifest';
2
+ export { installReclaimProjectBuildGradle } from './install_reclaim_project_build_gradle';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withReclaimProjectBuildGradle = exports.withReclaimAndroidManifest = void 0;
4
- var withReclaimAndroidManifest_1 = require("./withReclaimAndroidManifest");
5
- Object.defineProperty(exports, "withReclaimAndroidManifest", { enumerable: true, get: function () { return withReclaimAndroidManifest_1.withReclaimAndroidManifest; } });
6
- var withReclaimProjectBuildGradle_1 = require("./withReclaimProjectBuildGradle");
7
- Object.defineProperty(exports, "withReclaimProjectBuildGradle", { enumerable: true, get: function () { return withReclaimProjectBuildGradle_1.withReclaimProjectBuildGradle; } });
3
+ exports.installReclaimProjectBuildGradle = exports.installReclaimAndroidManifest = void 0;
4
+ var install_reclaim_android_manifest_1 = require("./install_reclaim_android_manifest");
5
+ Object.defineProperty(exports, "installReclaimAndroidManifest", { enumerable: true, get: function () { return install_reclaim_android_manifest_1.installReclaimAndroidManifest; } });
6
+ var install_reclaim_project_build_gradle_1 = require("./install_reclaim_project_build_gradle");
7
+ Object.defineProperty(exports, "installReclaimProjectBuildGradle", { enumerable: true, get: function () { return install_reclaim_project_build_gradle_1.installReclaimProjectBuildGradle; } });
@@ -4,8 +4,8 @@ var config_plugins_1 = require("@expo/config-plugins");
4
4
  var android_1 = require("./android");
5
5
  var withReclaimInAppSdk = function (config) {
6
6
  return (0, config_plugins_1.withPlugins)(config, [
7
- android_1.withReclaimAndroidManifest,
8
- android_1.withReclaimProjectBuildGradle,
7
+ android_1.installReclaimAndroidManifest,
8
+ android_1.installReclaimProjectBuildGradle,
9
9
  ]);
10
10
  };
11
11
  exports.default = withReclaimInAppSdk;
@@ -1,2 +1,2 @@
1
- export { withReclaimAndroidManifest } from './withReclaimAndroidManifest';
2
- export { withReclaimProjectBuildGradle } from './withReclaimProjectBuildGradle';
1
+ export { installReclaimAndroidManifest } from './install_reclaim_android_manifest';
2
+ export { installReclaimProjectBuildGradle } from './install_reclaim_project_build_gradle';
@@ -1,6 +1,6 @@
1
1
  import { type ConfigPlugin, withAndroidManifest } from '@expo/config-plugins';
2
2
 
3
- export const withReclaimAndroidManifest: ConfigPlugin = (config) => {
3
+ export const installReclaimAndroidManifest: ConfigPlugin = (config) => {
4
4
  return withAndroidManifest(config, (config) => {
5
5
  let androidManifest = config.modResults.manifest;
6
6
  const cannotInstallMessage = 'cannot install reclaim inapp android sdk';
@@ -3,7 +3,7 @@ import {
3
3
  withProjectBuildGradle,
4
4
  } from '@expo/config-plugins';
5
5
 
6
- export const withReclaimProjectBuildGradle: ConfigPlugin = (config) => {
6
+ export const installReclaimProjectBuildGradle: ConfigPlugin = (config) => {
7
7
  return withProjectBuildGradle(config, async (config) => {
8
8
  const flutterStorageUrl = process.env.EXPO_PUBLIC_FLUTTER_STORAGE_BASE_URL || "https://storage.googleapis.com"
9
9
  const reclaimStorageUrl = process.env.EXPO_PUBLIC_RECLAIM_STORAGE_BASE_URL || "https://reclaim-inapp-sdk.s3.ap-south-1.amazonaws.com/android/repo"
@@ -11,12 +11,12 @@ export const withReclaimProjectBuildGradle: ConfigPlugin = (config) => {
11
11
  if (!config.modResults.contents.match('reclaim-inapp-sdk')) {
12
12
  config.modResults.contents = config.modResults.contents.replace(
13
13
  /mavenCentral\(\)/g,
14
- `
15
- mavenCentral()
16
- maven { url "${reclaimStorageUrl}" }
17
- maven { url "${flutterStorageUrl}/download.flutter.io" }`
14
+ `
15
+ mavenCentral()
16
+ maven { url "${reclaimStorageUrl}" }
17
+ maven { url "${flutterStorageUrl}/download.flutter.io" }`
18
18
  );
19
19
  }
20
20
  return config;
21
21
  });
22
- };
22
+ };
@@ -1,13 +1,13 @@
1
- import { type ConfigPlugin, createRunOncePlugin, withPlugins } from '@expo/config-plugins';
1
+ import { type ConfigPlugin, withPlugins } from '@expo/config-plugins';
2
2
  import {
3
- withReclaimAndroidManifest,
4
- withReclaimProjectBuildGradle,
3
+ installReclaimAndroidManifest,
4
+ installReclaimProjectBuildGradle,
5
5
  } from './android';
6
6
 
7
7
  const withReclaimInAppSdk: ConfigPlugin = (config) => {
8
8
  return withPlugins(config, [
9
- withReclaimAndroidManifest,
10
- withReclaimProjectBuildGradle,
9
+ installReclaimAndroidManifest,
10
+ installReclaimProjectBuildGradle,
11
11
  ]);
12
12
  };
13
13
 
@@ -7,6 +7,5 @@
7
7
  },
8
8
  "include": [
9
9
  "src"
10
- ],
11
- "exclude": ["**/__mocks__/*", "**/__tests__/*"]
10
+ ]
12
11
  }
@@ -0,0 +1,3 @@
1
+ export { installReclaimAndroidManifest } from './install_reclaim_android_manifest';
2
+ export { installReclaimProjectBuildGradle } from './install_reclaim_project_build_gradle';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../expo-plugin/src/android/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const installReclaimAndroidManifest: ConfigPlugin;
3
+ //# sourceMappingURL=install_reclaim_android_manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install_reclaim_android_manifest.d.ts","sourceRoot":"","sources":["../../../../../../expo-plugin/src/android/install_reclaim_android_manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,sBAAsB,CAAC;AAE9E,eAAO,MAAM,6BAA6B,EAAE,YAyC3C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const installReclaimProjectBuildGradle: ConfigPlugin;
3
+ //# sourceMappingURL=install_reclaim_project_build_gradle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install_reclaim_project_build_gradle.d.ts","sourceRoot":"","sources":["../../../../../../expo-plugin/src/android/install_reclaim_project_build_gradle.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,YAAY,EAEpB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,gCAAgC,EAAE,YAgB9C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ declare const withReclaimInAppSdk: ConfigPlugin;
3
+ export default withReclaimInAppSdk;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../expo-plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,sBAAsB,CAAC;AAMtE,QAAA,MAAM,mBAAmB,EAAE,YAK1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../user-workspace/src/App.tsx"],"names":[],"mappings":"AAsBA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAuN1B"}
@@ -0,0 +1,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.overrides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.overrides.d.ts","sourceRoot":"","sources":["../../../../../user-workspace/src/App.overrides.tsx"],"names":[],"mappings":"AAsBA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAyR1B"}
@@ -0,0 +1,3 @@
1
+ export { installReclaimAndroidManifest } from './install_reclaim_android_manifest';
2
+ export { installReclaimProjectBuildGradle } from './install_reclaim_project_build_gradle';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../expo-plugin/src/android/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const installReclaimAndroidManifest: ConfigPlugin;
3
+ //# sourceMappingURL=install_reclaim_android_manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install_reclaim_android_manifest.d.ts","sourceRoot":"","sources":["../../../../../../expo-plugin/src/android/install_reclaim_android_manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,sBAAsB,CAAC;AAE9E,eAAO,MAAM,6BAA6B,EAAE,YAyC3C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const installReclaimProjectBuildGradle: ConfigPlugin;
3
+ //# sourceMappingURL=install_reclaim_project_build_gradle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install_reclaim_project_build_gradle.d.ts","sourceRoot":"","sources":["../../../../../../expo-plugin/src/android/install_reclaim_project_build_gradle.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,YAAY,EAEpB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,gCAAgC,EAAE,YAgB9C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ declare const withReclaimInAppSdk: ConfigPlugin;
3
+ export default withReclaimInAppSdk;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../expo-plugin/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,sBAAsB,CAAC;AAMtE,QAAA,MAAM,mBAAmB,EAAE,YAK1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../user-workspace/src/App.tsx"],"names":[],"mappings":"AAsBA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAuN1B"}
@@ -0,0 +1,2 @@
1
+ export default function App(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=App.overrides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.overrides.d.ts","sourceRoot":"","sources":["../../../../../user-workspace/src/App.overrides.tsx"],"names":[],"mappings":"AAsBA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAyR1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reclaimprotocol/inapp-rn-sdk",
3
- "version": "0.9.3-alpha.10",
3
+ "version": "0.9.3-alpha.2",
4
4
  "description": "Reclaim Protocol's InApp React Native SDK for ZK proof generations for requests with an in-app experience of web verification",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/commonjs/index.js",
@@ -1,2 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- export declare const withReclaimAndroidManifest: ConfigPlugin;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withReclaimAndroidManifest = void 0;
4
- var config_plugins_1 = require("@expo/config-plugins");
5
- var withReclaimAndroidManifest = function (config) {
6
- return (0, config_plugins_1.withAndroidManifest)(config, function (config) {
7
- var androidManifest = config.modResults.manifest;
8
- var cannotInstallMessage = 'cannot install reclaim inapp android sdk';
9
- if (!androidManifest) {
10
- throw new Error("No AndroidManifest found, ".concat(cannotInstallMessage));
11
- }
12
- var application = androidManifest.application[0];
13
- // Add the tools to apply permission remove
14
- // Let the consumer app apply the permission on their app. All permissions are optional for this Reclaim InApp SDK.
15
- // androidManifest.$ = {
16
- // ...androidManifest.$,
17
- // 'xmlns:tools': 'http://schemas.android.com/tools',
18
- // };
19
- if (!application) {
20
- throw new Error("No base application found, ".concat(cannotInstallMessage));
21
- }
22
- application.activity = application.activity.filter(function (act) {
23
- return act.$['android:name'] !=
24
- 'org.reclaimprotocol.inapp_sdk.ReclaimActivity';
25
- });
26
- application.activity.push({
27
- $: {
28
- 'android:name': 'org.reclaimprotocol.inapp_sdk.ReclaimActivity',
29
- 'android:theme': '@style/Theme.ReclaimInAppSdk.LaunchTheme',
30
- 'android:configChanges': 'orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode',
31
- 'android:hardwareAccelerated': 'true',
32
- 'android:windowSoftInputMode': 'adjustResize',
33
- },
34
- });
35
- return config;
36
- });
37
- };
38
- exports.withReclaimAndroidManifest = withReclaimAndroidManifest;
@@ -1,2 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- export declare const withReclaimProjectBuildGradle: ConfigPlugin;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.withReclaimProjectBuildGradle = void 0;
40
- var config_plugins_1 = require("@expo/config-plugins");
41
- var withReclaimProjectBuildGradle = function (config) {
42
- return (0, config_plugins_1.withProjectBuildGradle)(config, function (config) { return __awaiter(void 0, void 0, void 0, function () {
43
- var flutterStorageUrl, reclaimStorageUrl;
44
- return __generator(this, function (_a) {
45
- flutterStorageUrl = process.env.EXPO_PUBLIC_FLUTTER_STORAGE_BASE_URL || "https://storage.googleapis.com";
46
- reclaimStorageUrl = process.env.EXPO_PUBLIC_RECLAIM_STORAGE_BASE_URL || "https://reclaim-inapp-sdk.s3.ap-south-1.amazonaws.com/android/repo";
47
- if (!config.modResults.contents.match('reclaim-inapp-sdk')) {
48
- config.modResults.contents = config.modResults.contents.replace(/mavenCentral\(\)/g, "\n mavenCentral()\n maven { url \"".concat(reclaimStorageUrl, "\" }\n maven { url \"").concat(flutterStorageUrl, "/download.flutter.io\" }"));
49
- }
50
- return [2 /*return*/, config];
51
- });
52
- }); });
53
- };
54
- exports.withReclaimProjectBuildGradle = withReclaimProjectBuildGradle;