@functionland/react-native-fula 0.4.2 → 1.1.4
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 +99 -9
- package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5.1/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.idea/jarRepositories.xml +9 -9
- package/android/.idea/sonarlint/issuestore/index.pb +0 -0
- package/android/build.gradle +7 -5
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -6
- package/android/gradle.properties +1 -1
- package/android/gradlew +53 -2
- package/android/local.properties +1 -1
- package/android/src/main/java/land/fx/fula/FulaModule.java +840 -72
- package/android/src/main/java/land/fx/fula/FulaPackage.java +32 -32
- package/lib/commonjs/index.js +5 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/api-lookup.js +1653 -0
- package/lib/commonjs/interfaces/api-lookup.js.map +1 -0
- package/lib/commonjs/interfaces/fulaNativeModule.js +1 -1
- package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/commonjs/protocols/blockchain.js +404 -0
- package/lib/commonjs/protocols/blockchain.js.map +1 -0
- package/lib/commonjs/protocols/chain-api.js +87 -0
- package/lib/commonjs/protocols/chain-api.js.map +1 -0
- package/lib/commonjs/protocols/fula.js +120 -7
- package/lib/commonjs/protocols/fula.js.map +1 -1
- package/lib/commonjs/types/blockchain.js +2 -0
- package/lib/commonjs/types/blockchain.js.map +1 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/api-lookup.js +1648 -0
- package/lib/module/interfaces/api-lookup.js.map +1 -0
- package/lib/module/interfaces/fulaNativeModule.js +1 -1
- package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/module/protocols/blockchain.js +383 -0
- package/lib/module/protocols/blockchain.js.map +1 -0
- package/lib/module/protocols/chain-api.js +76 -0
- package/lib/module/protocols/chain-api.js.map +1 -0
- package/lib/module/protocols/fula.js +110 -4
- package/lib/module/protocols/fula.js.map +1 -1
- package/lib/module/types/blockchain.js +2 -0
- package/lib/module/types/blockchain.js.map +1 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/interfaces/api-lookup.d.ts +1643 -0
- package/lib/typescript/interfaces/fulaNativeModule.d.ts +40 -3
- package/lib/typescript/protocols/blockchain.d.ts +17 -0
- package/lib/typescript/protocols/chain-api.d.ts +6 -0
- package/lib/typescript/protocols/fula.d.ts +52 -2
- package/lib/typescript/types/blockchain.d.ts +68 -0
- package/package.json +13 -8
- package/src/index.tsx +3 -1
- package/src/interfaces/api-lookup.ts +1647 -0
- package/src/interfaces/fulaNativeModule.ts +50 -7
- package/src/protocols/blockchain.ts +460 -0
- package/src/protocols/chain-api.ts +80 -0
- package/src/protocols/fula.ts +157 -12
- package/src/types/blockchain.ts +81 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
package land.fx.fula;
|
|
2
|
-
|
|
3
|
-
import androidx.annotation.NonNull;
|
|
4
|
-
|
|
5
|
-
import com.facebook.react.ReactPackage;
|
|
6
|
-
import com.facebook.react.bridge.NativeModule;
|
|
7
|
-
import com.facebook.react.bridge.ReactApplicationContext;
|
|
8
|
-
import com.facebook.react.uimanager.ViewManager;
|
|
9
|
-
|
|
10
|
-
import java.util.ArrayList;
|
|
11
|
-
import java.util.Collections;
|
|
12
|
-
import java.util.List;
|
|
13
|
-
|
|
14
|
-
public class FulaPackage implements ReactPackage {
|
|
15
|
-
@NonNull
|
|
16
|
-
@Override
|
|
17
|
-
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
|
|
18
|
-
List<NativeModule> modules = new ArrayList<>();
|
|
19
|
-
try {
|
|
20
|
-
|
|
21
|
-
} catch (Exception e) {
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
return modules;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@NonNull
|
|
28
|
-
@Override
|
|
29
|
-
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
|
|
30
|
-
return Collections.emptyList();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
package land.fx.fula;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.ReactPackage;
|
|
6
|
+
import com.facebook.react.bridge.NativeModule;
|
|
7
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
8
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
9
|
+
|
|
10
|
+
import java.util.ArrayList;
|
|
11
|
+
import java.util.Collections;
|
|
12
|
+
import java.util.List;
|
|
13
|
+
|
|
14
|
+
public class FulaPackage implements ReactPackage {
|
|
15
|
+
@NonNull
|
|
16
|
+
@Override
|
|
17
|
+
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
|
|
18
|
+
List<NativeModule> modules = new ArrayList<>();
|
|
19
|
+
try {
|
|
20
|
+
modules.add(new FulaModule(reactContext));
|
|
21
|
+
} catch (Exception e) {
|
|
22
|
+
e.printStackTrace();
|
|
23
|
+
}
|
|
24
|
+
return modules;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@NonNull
|
|
28
|
+
@Override
|
|
29
|
+
public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
|
|
30
|
+
return Collections.emptyList();
|
|
31
|
+
}
|
|
32
|
+
}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.fula = void 0;
|
|
6
|
+
exports.fula = exports.chainApi = exports.blockchain = void 0;
|
|
7
7
|
var _fula = _interopRequireWildcard(require("./protocols/fula"));
|
|
8
8
|
exports.fula = _fula;
|
|
9
|
+
var _blockchain = _interopRequireWildcard(require("./protocols/blockchain"));
|
|
10
|
+
exports.blockchain = _blockchain;
|
|
11
|
+
var _chainApi = _interopRequireWildcard(require("./protocols/chain-api"));
|
|
12
|
+
exports.chainApi = _chainApi;
|
|
9
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * as fula from './protocols/fula';"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * as fula from './protocols/fula';\r\nexport * as blockchain from './protocols/blockchain';\r\nexport * as chainApi from './protocols/chain-api';"],"mappings":""}
|