@aws-amplify/react-native 1.0.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 (141) hide show
  1. package/AmplifyRTNCore.podspec +35 -0
  2. package/LICENSE +201 -0
  3. package/android/build.gradle +103 -0
  4. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  5. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  6. package/android/gradle.properties +5 -0
  7. package/android/gradlew +234 -0
  8. package/android/gradlew.bat +89 -0
  9. package/android/src/hasPackageName/AndroidManifest.xml +4 -0
  10. package/android/src/main/AndroidManifest.xml +3 -0
  11. package/android/src/main/kotlin/com/amazonaws/amplify/rtncore/AmplifyRTNCoreModule.kt +29 -0
  12. package/android/src/main/kotlin/com/amazonaws/amplify/rtncore/AmplifyRTNCorePackage.kt +17 -0
  13. package/android/src/main/kotlin/com/amazonaws/amplify/rtncore/BigInteger.kt +65 -0
  14. package/ios/AmplifyRTNCore-Bridging-Header.h +5 -0
  15. package/ios/AmplifyRTNCore.mm +21 -0
  16. package/ios/AmplifyRTNCore.swift +29 -0
  17. package/ios/AmplifyRTNCore.xcodeproj/project.pbxproj +283 -0
  18. package/ios/AmplifyRTNCore.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
  19. package/ios/BigInteger.swift +78 -0
  20. package/ios/JKBigInteger/JKBigDecimal.h +40 -0
  21. package/ios/JKBigInteger/JKBigDecimal.m +224 -0
  22. package/ios/JKBigInteger/JKBigInteger.h +58 -0
  23. package/ios/JKBigInteger/JKBigInteger.m +419 -0
  24. package/ios/JKBigInteger/LICENSE.txt +18 -0
  25. package/ios/JKBigInteger/LibTomMath/tommath.c +6925 -0
  26. package/ios/JKBigInteger/LibTomMath/tommath.h +584 -0
  27. package/ios/JKBigInteger/LibTomMath/tommath_class.h +999 -0
  28. package/ios/JKBigInteger/LibTomMath/tommath_superclass.h +76 -0
  29. package/lib/apis/computeModPow.d.ts +2 -0
  30. package/lib/apis/computeModPow.js +9 -0
  31. package/lib/apis/computeModPow.js.map +1 -0
  32. package/lib/apis/computeS.d.ts +2 -0
  33. package/lib/apis/computeS.js +9 -0
  34. package/lib/apis/computeS.js.map +1 -0
  35. package/lib/apis/getOperatingSystem.d.ts +1 -0
  36. package/lib/apis/getOperatingSystem.js +9 -0
  37. package/lib/apis/getOperatingSystem.js.map +1 -0
  38. package/lib/apis/index.d.ts +3 -0
  39. package/lib/apis/index.js +12 -0
  40. package/lib/apis/index.js.map +1 -0
  41. package/lib/index.d.ts +2 -0
  42. package/lib/index.js +19 -0
  43. package/lib/index.js.map +1 -0
  44. package/lib/moduleLoaders/index.d.ts +8 -0
  45. package/lib/moduleLoaders/index.js +22 -0
  46. package/lib/moduleLoaders/index.js.map +1 -0
  47. package/lib/moduleLoaders/loadAmplifyPushNotification.d.ts +21 -0
  48. package/lib/moduleLoaders/loadAmplifyPushNotification.js +26 -0
  49. package/lib/moduleLoaders/loadAmplifyPushNotification.js.map +1 -0
  50. package/lib/moduleLoaders/loadAppState.d.ts +1 -0
  51. package/lib/moduleLoaders/loadAppState.js +9 -0
  52. package/lib/moduleLoaders/loadAppState.js.map +1 -0
  53. package/lib/moduleLoaders/loadAsyncStorage.d.ts +2 -0
  54. package/lib/moduleLoaders/loadAsyncStorage.js +26 -0
  55. package/lib/moduleLoaders/loadAsyncStorage.js.map +1 -0
  56. package/lib/moduleLoaders/loadBase64.d.ts +5 -0
  57. package/lib/moduleLoaders/loadBase64.js +9 -0
  58. package/lib/moduleLoaders/loadBase64.js.map +1 -0
  59. package/lib/moduleLoaders/loadBuffer.d.ts +22 -0
  60. package/lib/moduleLoaders/loadBuffer.js +9 -0
  61. package/lib/moduleLoaders/loadBuffer.js.map +1 -0
  62. package/lib/moduleLoaders/loadGetRandomValues.d.ts +1 -0
  63. package/lib/moduleLoaders/loadGetRandomValues.js +21 -0
  64. package/lib/moduleLoaders/loadGetRandomValues.js.map +1 -0
  65. package/lib/moduleLoaders/loadNetInfo.d.ts +4 -0
  66. package/lib/moduleLoaders/loadNetInfo.js +26 -0
  67. package/lib/moduleLoaders/loadNetInfo.js.map +1 -0
  68. package/lib/moduleLoaders/loadUrlPolyfill.d.ts +1 -0
  69. package/lib/moduleLoaders/loadUrlPolyfill.js +21 -0
  70. package/lib/moduleLoaders/loadUrlPolyfill.js.map +1 -0
  71. package/lib/nativeModule.d.ts +2 -0
  72. package/lib/nativeModule.js +18 -0
  73. package/lib/nativeModule.js.map +1 -0
  74. package/lib/types.d.ts +15 -0
  75. package/lib/types.js +5 -0
  76. package/lib/types.js.map +1 -0
  77. package/lib-esm/apis/computeModPow.d.ts +2 -0
  78. package/lib-esm/apis/computeModPow.js +5 -0
  79. package/lib-esm/apis/computeModPow.js.map +1 -0
  80. package/lib-esm/apis/computeS.d.ts +2 -0
  81. package/lib-esm/apis/computeS.js +5 -0
  82. package/lib-esm/apis/computeS.js.map +1 -0
  83. package/lib-esm/apis/getOperatingSystem.d.ts +1 -0
  84. package/lib-esm/apis/getOperatingSystem.js +5 -0
  85. package/lib-esm/apis/getOperatingSystem.js.map +1 -0
  86. package/lib-esm/apis/index.d.ts +3 -0
  87. package/lib-esm/apis/index.js +6 -0
  88. package/lib-esm/apis/index.js.map +1 -0
  89. package/lib-esm/index.d.ts +2 -0
  90. package/lib-esm/index.js +5 -0
  91. package/lib-esm/index.js.map +1 -0
  92. package/lib-esm/moduleLoaders/index.d.ts +8 -0
  93. package/lib-esm/moduleLoaders/index.js +11 -0
  94. package/lib-esm/moduleLoaders/index.js.map +1 -0
  95. package/lib-esm/moduleLoaders/loadAmplifyPushNotification.d.ts +21 -0
  96. package/lib-esm/moduleLoaders/loadAmplifyPushNotification.js +22 -0
  97. package/lib-esm/moduleLoaders/loadAmplifyPushNotification.js.map +1 -0
  98. package/lib-esm/moduleLoaders/loadAppState.d.ts +1 -0
  99. package/lib-esm/moduleLoaders/loadAppState.js +5 -0
  100. package/lib-esm/moduleLoaders/loadAppState.js.map +1 -0
  101. package/lib-esm/moduleLoaders/loadAsyncStorage.d.ts +2 -0
  102. package/lib-esm/moduleLoaders/loadAsyncStorage.js +22 -0
  103. package/lib-esm/moduleLoaders/loadAsyncStorage.js.map +1 -0
  104. package/lib-esm/moduleLoaders/loadBase64.d.ts +5 -0
  105. package/lib-esm/moduleLoaders/loadBase64.js +5 -0
  106. package/lib-esm/moduleLoaders/loadBase64.js.map +1 -0
  107. package/lib-esm/moduleLoaders/loadBuffer.d.ts +22 -0
  108. package/lib-esm/moduleLoaders/loadBuffer.js +5 -0
  109. package/lib-esm/moduleLoaders/loadBuffer.js.map +1 -0
  110. package/lib-esm/moduleLoaders/loadGetRandomValues.d.ts +1 -0
  111. package/lib-esm/moduleLoaders/loadGetRandomValues.js +17 -0
  112. package/lib-esm/moduleLoaders/loadGetRandomValues.js.map +1 -0
  113. package/lib-esm/moduleLoaders/loadNetInfo.d.ts +4 -0
  114. package/lib-esm/moduleLoaders/loadNetInfo.js +22 -0
  115. package/lib-esm/moduleLoaders/loadNetInfo.js.map +1 -0
  116. package/lib-esm/moduleLoaders/loadUrlPolyfill.d.ts +1 -0
  117. package/lib-esm/moduleLoaders/loadUrlPolyfill.js +17 -0
  118. package/lib-esm/moduleLoaders/loadUrlPolyfill.js.map +1 -0
  119. package/lib-esm/nativeModule.d.ts +2 -0
  120. package/lib-esm/nativeModule.js +15 -0
  121. package/lib-esm/nativeModule.js.map +1 -0
  122. package/lib-esm/types.d.ts +15 -0
  123. package/lib-esm/types.js +4 -0
  124. package/lib-esm/types.js.map +1 -0
  125. package/package.json +69 -0
  126. package/src/apis/computeModPow.ts +8 -0
  127. package/src/apis/computeS.ts +8 -0
  128. package/src/apis/getOperatingSystem.ts +6 -0
  129. package/src/apis/index.ts +6 -0
  130. package/src/index.ts +14 -0
  131. package/src/moduleLoaders/index.ts +11 -0
  132. package/src/moduleLoaders/loadAmplifyPushNotification.ts +29 -0
  133. package/src/moduleLoaders/loadAppState.ts +6 -0
  134. package/src/moduleLoaders/loadAsyncStorage.ts +29 -0
  135. package/src/moduleLoaders/loadBase64.ts +6 -0
  136. package/src/moduleLoaders/loadBuffer.ts +6 -0
  137. package/src/moduleLoaders/loadGetRandomValues.ts +19 -0
  138. package/src/moduleLoaders/loadNetInfo.ts +31 -0
  139. package/src/moduleLoaders/loadUrlPolyfill.ts +19 -0
  140. package/src/nativeModule.ts +22 -0
  141. package/src/types.ts +19 -0
@@ -0,0 +1,76 @@
1
+ /* super class file for PK algos */
2
+
3
+ /* default ... include all MPI */
4
+ #define LTM_ALL
5
+
6
+ /* RSA only (does not support DH/DSA/ECC) */
7
+ /* #define SC_RSA_1 */
8
+
9
+ /* For reference.... On an Athlon64 optimizing for speed...
10
+
11
+ LTM's mpi.o with all functions [striped] is 142KiB in size.
12
+
13
+ */
14
+
15
+ /* Works for RSA only, mpi.o is 68KiB */
16
+ #ifdef SC_RSA_1
17
+ #define BN_MP_SHRINK_C
18
+ #define BN_MP_LCM_C
19
+ #define BN_MP_PRIME_RANDOM_EX_C
20
+ #define BN_MP_INVMOD_C
21
+ #define BN_MP_GCD_C
22
+ #define BN_MP_MOD_C
23
+ #define BN_MP_MULMOD_C
24
+ #define BN_MP_ADDMOD_C
25
+ #define BN_MP_EXPTMOD_C
26
+ #define BN_MP_SET_INT_C
27
+ #define BN_MP_INIT_MULTI_C
28
+ #define BN_MP_CLEAR_MULTI_C
29
+ #define BN_MP_UNSIGNED_BIN_SIZE_C
30
+ #define BN_MP_TO_UNSIGNED_BIN_C
31
+ #define BN_MP_MOD_D_C
32
+ #define BN_MP_PRIME_RABIN_MILLER_TRIALS_C
33
+ #define BN_REVERSE_C
34
+ #define BN_PRIME_TAB_C
35
+
36
+ /* other modifiers */
37
+ #define BN_MP_DIV_SMALL /* Slower division, not critical */
38
+
39
+ /* here we are on the last pass so we turn things off. The functions classes are still there
40
+ * but we remove them specifically from the build. This also invokes tweaks in functions
41
+ * like removing support for even moduli, etc...
42
+ */
43
+ #ifdef LTM_LAST
44
+ #undef BN_MP_TOOM_MUL_C
45
+ #undef BN_MP_TOOM_SQR_C
46
+ #undef BN_MP_KARATSUBA_MUL_C
47
+ #undef BN_MP_KARATSUBA_SQR_C
48
+ #undef BN_MP_REDUCE_C
49
+ #undef BN_MP_REDUCE_SETUP_C
50
+ #undef BN_MP_DR_IS_MODULUS_C
51
+ #undef BN_MP_DR_SETUP_C
52
+ #undef BN_MP_DR_REDUCE_C
53
+ #undef BN_MP_REDUCE_IS_2K_C
54
+ #undef BN_MP_REDUCE_2K_SETUP_C
55
+ #undef BN_MP_REDUCE_2K_C
56
+ #undef BN_S_MP_EXPTMOD_C
57
+ #undef BN_MP_DIV_3_C
58
+ #undef BN_S_MP_MUL_HIGH_DIGS_C
59
+ #undef BN_FAST_S_MP_MUL_HIGH_DIGS_C
60
+ #undef BN_FAST_MP_INVMOD_C
61
+
62
+ /* To safely undefine these you have to make sure your RSA key won't exceed the Comba threshold
63
+ * which is roughly 255 digits [7140 bits for 32-bit machines, 15300 bits for 64-bit machines]
64
+ * which means roughly speaking you can handle upto 2536-bit RSA keys with these defined without
65
+ * trouble.
66
+ */
67
+ #undef BN_S_MP_MUL_DIGS_C
68
+ #undef BN_S_MP_SQR_C
69
+ #undef BN_MP_MONTGOMERY_REDUCE_C
70
+ #endif
71
+
72
+ #endif
73
+
74
+ /* $Source$ */
75
+ /* $Revision: 0.36 $ */
76
+ /* $Date: 2005-08-01 16:37:28 +0000 $ */
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from '../types';
2
+ export declare const computeModPow: RTNCore['computeModPow'];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.computeModPow = void 0;
6
+ const nativeModule_1 = require("../nativeModule");
7
+ const computeModPow = payload => nativeModule_1.nativeModule.computeModPow(payload);
8
+ exports.computeModPow = computeModPow;
9
+ //# sourceMappingURL=computeModPow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeModPow.js","sourceRoot":"","sources":["../../src/apis/computeModPow.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,kDAA+C;AAGxC,MAAM,aAAa,GAA6B,OAAO,CAAC,EAAE,CAChE,2BAAY,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AADxB,QAAA,aAAa,iBACW"}
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from '../types';
2
+ export declare const computeS: RTNCore['computeS'];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.computeS = void 0;
6
+ const nativeModule_1 = require("../nativeModule");
7
+ const computeS = payload => nativeModule_1.nativeModule.computeS(payload);
8
+ exports.computeS = computeS;
9
+ //# sourceMappingURL=computeS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeS.js","sourceRoot":"","sources":["../../src/apis/computeS.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,kDAA+C;AAGxC,MAAM,QAAQ,GAAwB,OAAO,CAAC,EAAE,CACtD,2BAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AADnB,QAAA,QAAQ,YACW"}
@@ -0,0 +1 @@
1
+ export declare const getOperatingSystem: () => "ios" | "android" | "macos" | "windows" | "web";
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getOperatingSystem = void 0;
6
+ const react_native_1 = require("react-native");
7
+ const getOperatingSystem = () => react_native_1.Platform.OS;
8
+ exports.getOperatingSystem = getOperatingSystem;
9
+ //# sourceMappingURL=getOperatingSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOperatingSystem.js","sourceRoot":"","sources":["../../src/apis/getOperatingSystem.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,+CAAwC;AAEjC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,uBAAQ,CAAC,EAAE,CAAC;AAAvC,QAAA,kBAAkB,sBAAqB"}
@@ -0,0 +1,3 @@
1
+ export { computeModPow } from './computeModPow';
2
+ export { computeS } from './computeS';
3
+ export { getOperatingSystem } from './getOperatingSystem';
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
6
+ var computeModPow_1 = require("./computeModPow");
7
+ Object.defineProperty(exports, "computeModPow", { enumerable: true, get: function () { return computeModPow_1.computeModPow; } });
8
+ var computeS_1 = require("./computeS");
9
+ Object.defineProperty(exports, "computeS", { enumerable: true, get: function () { return computeS_1.computeS; } });
10
+ var getOperatingSystem_1 = require("./getOperatingSystem");
11
+ Object.defineProperty(exports, "getOperatingSystem", { enumerable: true, get: function () { return getOperatingSystem_1.getOperatingSystem; } });
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { computeModPow, computeS, getOperatingSystem } from './apis';
2
+ export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';
package/lib/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyPushNotification = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
6
+ var apis_1 = require("./apis");
7
+ Object.defineProperty(exports, "computeModPow", { enumerable: true, get: function () { return apis_1.computeModPow; } });
8
+ Object.defineProperty(exports, "computeS", { enumerable: true, get: function () { return apis_1.computeS; } });
9
+ Object.defineProperty(exports, "getOperatingSystem", { enumerable: true, get: function () { return apis_1.getOperatingSystem; } });
10
+ var moduleLoaders_1 = require("./moduleLoaders");
11
+ Object.defineProperty(exports, "loadAmplifyPushNotification", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyPushNotification; } });
12
+ Object.defineProperty(exports, "loadAsyncStorage", { enumerable: true, get: function () { return moduleLoaders_1.loadAsyncStorage; } });
13
+ Object.defineProperty(exports, "loadNetInfo", { enumerable: true, get: function () { return moduleLoaders_1.loadNetInfo; } });
14
+ Object.defineProperty(exports, "loadBuffer", { enumerable: true, get: function () { return moduleLoaders_1.loadBuffer; } });
15
+ Object.defineProperty(exports, "loadUrlPolyfill", { enumerable: true, get: function () { return moduleLoaders_1.loadUrlPolyfill; } });
16
+ Object.defineProperty(exports, "loadGetRandomValues", { enumerable: true, get: function () { return moduleLoaders_1.loadGetRandomValues; } });
17
+ Object.defineProperty(exports, "loadBase64", { enumerable: true, get: function () { return moduleLoaders_1.loadBase64; } });
18
+ Object.defineProperty(exports, "loadAppState", { enumerable: true, get: function () { return moduleLoaders_1.loadAppState; } });
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,+BAAqE;AAA5D,qGAAA,aAAa,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AACpD,iDASyB;AARxB,4HAAA,2BAA2B,OAAA;AAC3B,iHAAA,gBAAgB,OAAA;AAChB,4GAAA,WAAW,OAAA;AACX,2GAAA,UAAU,OAAA;AACV,gHAAA,eAAe,OAAA;AACf,oHAAA,mBAAmB,OAAA;AACnB,2GAAA,UAAU,OAAA;AACV,6GAAA,YAAY,OAAA"}
@@ -0,0 +1,8 @@
1
+ export { loadAmplifyPushNotification } from './loadAmplifyPushNotification';
2
+ export { loadAsyncStorage } from './loadAsyncStorage';
3
+ export { loadNetInfo } from './loadNetInfo';
4
+ export { loadBuffer } from './loadBuffer';
5
+ export { loadUrlPolyfill } from './loadUrlPolyfill';
6
+ export { loadGetRandomValues } from './loadGetRandomValues';
7
+ export { loadBase64 } from './loadBase64';
8
+ export { loadAppState } from './loadAppState';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyPushNotification = void 0;
6
+ var loadAmplifyPushNotification_1 = require("./loadAmplifyPushNotification");
7
+ Object.defineProperty(exports, "loadAmplifyPushNotification", { enumerable: true, get: function () { return loadAmplifyPushNotification_1.loadAmplifyPushNotification; } });
8
+ var loadAsyncStorage_1 = require("./loadAsyncStorage");
9
+ Object.defineProperty(exports, "loadAsyncStorage", { enumerable: true, get: function () { return loadAsyncStorage_1.loadAsyncStorage; } });
10
+ var loadNetInfo_1 = require("./loadNetInfo");
11
+ Object.defineProperty(exports, "loadNetInfo", { enumerable: true, get: function () { return loadNetInfo_1.loadNetInfo; } });
12
+ var loadBuffer_1 = require("./loadBuffer");
13
+ Object.defineProperty(exports, "loadBuffer", { enumerable: true, get: function () { return loadBuffer_1.loadBuffer; } });
14
+ var loadUrlPolyfill_1 = require("./loadUrlPolyfill");
15
+ Object.defineProperty(exports, "loadUrlPolyfill", { enumerable: true, get: function () { return loadUrlPolyfill_1.loadUrlPolyfill; } });
16
+ var loadGetRandomValues_1 = require("./loadGetRandomValues");
17
+ Object.defineProperty(exports, "loadGetRandomValues", { enumerable: true, get: function () { return loadGetRandomValues_1.loadGetRandomValues; } });
18
+ var loadBase64_1 = require("./loadBase64");
19
+ Object.defineProperty(exports, "loadBase64", { enumerable: true, get: function () { return loadBase64_1.loadBase64; } });
20
+ var loadAppState_1 = require("./loadAppState");
21
+ Object.defineProperty(exports, "loadAppState", { enumerable: true, get: function () { return loadAppState_1.loadAppState; } });
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/moduleLoaders/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,+CAA8C;AAArC,4GAAA,YAAY,OAAA"}
@@ -0,0 +1,21 @@
1
+ export declare const loadAmplifyPushNotification: () => {
2
+ addMessageEventListener: (event: string, listener: (message: import("@aws-amplify/rtn-push-notification").PushNotificationMessage | null, completionHandlerId?: string | undefined) => void) => import("react-native").EmitterSubscription;
3
+ addTokenEventListener: (event: string, listener: (token: string) => void) => import("react-native").EmitterSubscription;
4
+ completeNotification: (completionHandlerId: string) => void;
5
+ getBadgeCount: () => void | Promise<number | null>;
6
+ getConstants: () => {
7
+ NativeEvent: {
8
+ BACKGROUND_MESSAGE_RECEIVED?: string | undefined;
9
+ FOREGROUND_MESSAGE_RECEIVED: string;
10
+ LAUNCH_NOTIFICATION_OPENED: string;
11
+ NOTIFICATION_OPENED: string;
12
+ TOKEN_RECEIVED: string;
13
+ };
14
+ NativeHeadlessTaskKey?: string | undefined;
15
+ };
16
+ getLaunchNotification: () => Promise<import("@aws-amplify/rtn-push-notification").PushNotificationMessage | null>;
17
+ getPermissionStatus: () => Promise<import("@aws-amplify/rtn-push-notification").PushNotificationPermissionStatus>;
18
+ registerHeadlessTask: (task: (message: import("@aws-amplify/rtn-push-notification").PushNotificationMessage | null) => Promise<void>) => void;
19
+ requestPermissions: ({ alert, badge, sound }?: import("@aws-amplify/rtn-push-notification").PushNotificationPermissions | undefined) => Promise<boolean>;
20
+ setBadgeCount: (count: number) => void;
21
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadAmplifyPushNotification = void 0;
6
+ const loadAmplifyPushNotification = () => {
7
+ try {
8
+ // metro bundler requires static string for loading module.
9
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
+ const module = require('@aws-amplify/rtn-push-notification')
11
+ ?.module;
12
+ if (module) {
13
+ return module;
14
+ }
15
+ throw new Error('Ensure `@aws-amplify/rtn-push-notification` is installed and linked.');
16
+ }
17
+ catch (e) {
18
+ // The error parsing logic cannot be extracted with metro as the `require`
19
+ // would be confused when there is a `import` in the same file importing
20
+ // another module and that causes an error
21
+ const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-push-notification');
22
+ throw new Error(message);
23
+ }
24
+ };
25
+ exports.loadAmplifyPushNotification = loadAmplifyPushNotification;
26
+ //# sourceMappingURL=loadAmplifyPushNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAmplifyPushNotification.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadAmplifyPushNotification.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAI/B,MAAM,2BAA2B,GAAG,GAAG,EAAE;IAC/C,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,MAAM,MAAM,GAAG,OAAO,CAAC,oCAAoC,CAAC;YAC3D,EAAE,MAAgC,CAAC;QACpC,IAAI,MAAM,EAAE;YACX,OAAO,MAAM,CAAC;SACd;QAED,MAAM,IAAI,KAAK,CACd,sEAAsE,CACtE,CAAC;KACF;IAAC,OAAO,CAAC,EAAE;QACX,0EAA0E;QAC1E,wEAAwE;QACxE,0CAA0C;QAC1C,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,oCAAoC,CACpC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC;AAvBW,QAAA,2BAA2B,+BAuBtC"}
@@ -0,0 +1 @@
1
+ export declare const loadAppState: () => import("react-native").AppStateStatic;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadAppState = void 0;
6
+ const react_native_1 = require("react-native");
7
+ const loadAppState = () => react_native_1.AppState;
8
+ exports.loadAppState = loadAppState;
9
+ //# sourceMappingURL=loadAppState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAppState.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadAppState.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,+CAAwC;AAEjC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,uBAAQ,CAAC;AAA9B,QAAA,YAAY,gBAAkB"}
@@ -0,0 +1,2 @@
1
+ import type { AsyncStorageStatic } from '@react-native-async-storage/async-storage';
2
+ export declare const loadAsyncStorage: () => AsyncStorageStatic;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadAsyncStorage = void 0;
6
+ const loadAsyncStorage = () => {
7
+ try {
8
+ // metro bundler requires static string for loading module.
9
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
+ const module = require('@react-native-async-storage/async-storage')
11
+ ?.default;
12
+ if (module) {
13
+ return module;
14
+ }
15
+ throw new Error('Ensure `@react-native-async-storage/async-storage` is installed and linked.');
16
+ }
17
+ catch (e) {
18
+ // The error parsing logic cannot be extracted with metro as the `require`
19
+ // would be confused when there is a `import` in the same file importing
20
+ // another module and that causes an error
21
+ const message = e.message.replace(/undefined/g, '@react-native-async-storage/async-storage');
22
+ throw new Error(message);
23
+ }
24
+ };
25
+ exports.loadAsyncStorage = loadAsyncStorage;
26
+ //# sourceMappingURL=loadAsyncStorage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAsyncStorage.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadAsyncStorage.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAI/B,MAAM,gBAAgB,GAAG,GAAuB,EAAE;IACxD,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,MAAM,MAAM,GAAG,OAAO,CAAC,2CAA2C,CAAC;YAClE,EAAE,OAA6B,CAAC;QACjC,IAAI,MAAM,EAAE;YACX,OAAO,MAAM,CAAC;SACd;QAED,MAAM,IAAI,KAAK,CACd,6EAA6E,CAC7E,CAAC;KACF;IAAC,OAAO,CAAC,EAAE;QACX,0EAA0E;QAC1E,wEAAwE;QACxE,0CAA0C;QAC1C,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,2CAA2C,CAC3C,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC;AAvBW,QAAA,gBAAgB,oBAuB3B"}
@@ -0,0 +1,5 @@
1
+ import { decode, encode } from 'base-64';
2
+ export declare const loadBase64: () => {
3
+ decode: typeof decode;
4
+ encode: typeof encode;
5
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadBase64 = void 0;
6
+ const base_64_1 = require("base-64");
7
+ const loadBase64 = () => ({ decode: base_64_1.decode, encode: base_64_1.encode });
8
+ exports.loadBase64 = loadBase64;
9
+ //# sourceMappingURL=loadBase64.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadBase64.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadBase64.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,qCAAyC;AAElC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAN,gBAAM,EAAE,MAAM,EAAN,gBAAM,EAAE,CAAC,CAAC;AAAxC,QAAA,UAAU,cAA8B"}
@@ -0,0 +1,22 @@
1
+ /// <reference types="node" />
2
+ export declare const loadBuffer: () => {
3
+ new (str: string, encoding?: string | undefined): Buffer;
4
+ new (size: number): Buffer;
5
+ new (array: Uint8Array): Buffer;
6
+ new (arrayBuffer: ArrayBuffer): Buffer;
7
+ new (array: readonly any[]): Buffer;
8
+ new (buffer: Buffer): Buffer;
9
+ prototype: Buffer;
10
+ from(arrayBuffer: ArrayBuffer, byteOffset?: number | undefined, length?: number | undefined): Buffer;
11
+ from(data: string | readonly any[] | Buffer | ArrayBuffer): Buffer;
12
+ from(str: string, encoding?: string | undefined): Buffer;
13
+ isBuffer(obj: any): obj is Buffer;
14
+ isEncoding(encoding: string): boolean;
15
+ byteLength(string: string | Buffer | ArrayBuffer | DataView, encoding?: string | undefined): number;
16
+ concat(list: readonly Buffer[], totalLength?: number | undefined): Buffer;
17
+ compare(buf1: Buffer, buf2: Buffer): number;
18
+ alloc(size: number, fill?: string | number | Buffer | undefined, encoding?: string | undefined): Buffer;
19
+ allocUnsafe(size: number): Buffer;
20
+ allocUnsafeSlow(size: number): Buffer;
21
+ poolSize: number;
22
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadBuffer = void 0;
6
+ const buffer_1 = require("buffer");
7
+ const loadBuffer = () => buffer_1.Buffer;
8
+ exports.loadBuffer = loadBuffer;
9
+ //# sourceMappingURL=loadBuffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadBuffer.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadBuffer.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,mCAAgC;AAEzB,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,eAAM,CAAC;AAA1B,QAAA,UAAU,cAAgB"}
@@ -0,0 +1 @@
1
+ export declare const loadGetRandomValues: () => void;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadGetRandomValues = void 0;
6
+ const loadGetRandomValues = () => {
7
+ try {
8
+ // metro bundler requires static string for loading module.
9
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
+ require('react-native-get-random-values');
11
+ }
12
+ catch (e) {
13
+ // The error parsing logic cannot be extract as with metro the `require`
14
+ // would be confused when there is a `import` in the same file importing
15
+ // another module and that causes error
16
+ const message = e.message.replace(/undefined/g, 'react-native-get-random-values');
17
+ throw new Error(message);
18
+ }
19
+ };
20
+ exports.loadGetRandomValues = loadGetRandomValues;
21
+ //# sourceMappingURL=loadGetRandomValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadGetRandomValues.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadGetRandomValues.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAE/B,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACvC,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,OAAO,CAAC,gCAAgC,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAC,EAAE;QACX,wEAAwE;QACxE,wEAAwE;QACxE,uCAAuC;QACvC,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,gCAAgC,CAChC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC;AAfW,QAAA,mBAAmB,uBAe9B"}
@@ -0,0 +1,4 @@
1
+ import type NetInfo from '@react-native-community/netinfo';
2
+ type NetInfoModule = typeof NetInfo;
3
+ export declare const loadNetInfo: () => NetInfoModule;
4
+ export {};
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadNetInfo = void 0;
6
+ const loadNetInfo = () => {
7
+ try {
8
+ // metro bundler requires static string for loading module.
9
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
+ const module = require('@react-native-community/netinfo')
11
+ ?.default;
12
+ if (module) {
13
+ return module;
14
+ }
15
+ throw new Error('Ensure `@react-native-community/netinfo` is installed and linked.');
16
+ }
17
+ catch (e) {
18
+ // The error parsing logic cannot be extract as with metro the `require`
19
+ // would be confused when there is a `import` in the same file importing
20
+ // another module and that causes error
21
+ const message = e.message.replace(/undefined/g, '@react-native-community/netinfo');
22
+ throw new Error(message);
23
+ }
24
+ };
25
+ exports.loadNetInfo = loadNetInfo;
26
+ //# sourceMappingURL=loadNetInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadNetInfo.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadNetInfo.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAM/B,MAAM,WAAW,GAAG,GAAkB,EAAE;IAC9C,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,MAAM,MAAM,GAAG,OAAO,CAAC,iCAAiC,CAAC;YACxD,EAAE,OAAwB,CAAC;QAC5B,IAAI,MAAM,EAAE;YACX,OAAO,MAAM,CAAC;SACd;QAED,MAAM,IAAI,KAAK,CACd,mEAAmE,CACnE,CAAC;KACF;IAAC,OAAO,CAAC,EAAE;QACX,wEAAwE;QACxE,wEAAwE;QACxE,uCAAuC;QACvC,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,iCAAiC,CACjC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC;AAvBW,QAAA,WAAW,eAuBtB"}
@@ -0,0 +1 @@
1
+ export declare const loadUrlPolyfill: () => void;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadUrlPolyfill = void 0;
6
+ const loadUrlPolyfill = () => {
7
+ try {
8
+ // metro bundler requires static string for loading module.
9
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
+ require('react-native-url-polyfill/auto');
11
+ }
12
+ catch (e) {
13
+ // The error parsing logic cannot be extract as with metro the `require`
14
+ // would be confused when there is a `import` in the same file importing
15
+ // another module and that causes error
16
+ const message = e.message.replace(/undefined/g, 'react-native-url-polyfill');
17
+ throw new Error(message);
18
+ }
19
+ };
20
+ exports.loadUrlPolyfill = loadUrlPolyfill;
21
+ //# sourceMappingURL=loadUrlPolyfill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadUrlPolyfill.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadUrlPolyfill.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAE/B,MAAM,eAAe,GAAG,GAAG,EAAE;IACnC,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,OAAO,CAAC,gCAAgC,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAC,EAAE;QACX,wEAAwE;QACxE,wEAAwE;QACxE,uCAAuC;QACvC,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,2BAA2B,CAC3B,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC;AAfW,QAAA,eAAe,mBAe1B"}
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from './types';
2
+ export declare const nativeModule: RTNCore;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.nativeModule = void 0;
6
+ const react_native_1 = require("react-native");
7
+ const LINKING_ERROR = `The package '@aws-amplify/react-native' doesn't seem to be linked. Make sure: \n\n` +
8
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
9
+ '- You rebuilt the app after installing the package\n' +
10
+ '- You are not using Expo Go\n';
11
+ exports.nativeModule = react_native_1.NativeModules.AmplifyRTNCore
12
+ ? react_native_1.NativeModules.AmplifyRTNCore
13
+ : new Proxy({}, {
14
+ get() {
15
+ throw new Error(LINKING_ERROR);
16
+ },
17
+ });
18
+ //# sourceMappingURL=nativeModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeModule.js","sourceRoot":"","sources":["../src/nativeModule.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,+CAAuD;AAGvD,MAAM,aAAa,GAClB,oFAAoF;IACpF,uBAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,gCAAgC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACvE,sDAAsD;IACtD,+BAA+B,CAAC;AAEpB,QAAA,YAAY,GAAY,4BAAa,CAAC,cAAc;IAChE,CAAC,CAAC,4BAAa,CAAC,cAAc;IAC9B,CAAC,CAAC,IAAI,KAAK,CACT,EAAE,EACF;QACC,GAAG;YACF,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;QAChC,CAAC;KACD,CACA,CAAC"}
package/lib/types.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ export interface RTNCore {
2
+ computeModPow(payload: {
3
+ base: string;
4
+ exponent: string;
5
+ divisor: string;
6
+ }): Promise<string>;
7
+ computeS(payload: {
8
+ g: string;
9
+ x: string;
10
+ k: string;
11
+ a: string;
12
+ b: string;
13
+ u: string;
14
+ }): Promise<string>;
15
+ }
package/lib/types.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC"}
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from '../types';
2
+ export declare const computeModPow: RTNCore['computeModPow'];
@@ -0,0 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { nativeModule } from '../nativeModule';
4
+ export const computeModPow = payload => nativeModule.computeModPow(payload);
5
+ //# sourceMappingURL=computeModPow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeModPow.js","sourceRoot":"","sources":["../../src/apis/computeModPow.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,CAAC,MAAM,aAAa,GAA6B,OAAO,CAAC,EAAE,CAChE,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from '../types';
2
+ export declare const computeS: RTNCore['computeS'];
@@ -0,0 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { nativeModule } from '../nativeModule';
4
+ export const computeS = payload => nativeModule.computeS(payload);
5
+ //# sourceMappingURL=computeS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeS.js","sourceRoot":"","sources":["../../src/apis/computeS.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,CAAC,MAAM,QAAQ,GAAwB,OAAO,CAAC,EAAE,CACtD,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const getOperatingSystem: () => "ios" | "android" | "macos" | "windows" | "web";
@@ -0,0 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { Platform } from 'react-native';
4
+ export const getOperatingSystem = () => Platform.OS;
5
+ //# sourceMappingURL=getOperatingSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOperatingSystem.js","sourceRoot":"","sources":["../../src/apis/getOperatingSystem.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { computeModPow } from './computeModPow';
2
+ export { computeS } from './computeS';
3
+ export { getOperatingSystem } from './getOperatingSystem';
@@ -0,0 +1,6 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ export { computeModPow } from './computeModPow';
4
+ export { computeS } from './computeS';
5
+ export { getOperatingSystem } from './getOperatingSystem';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/apis/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { computeModPow, computeS, getOperatingSystem } from './apis';
2
+ export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';