orbis1-sdk-rn 0.0.3 → 0.0.5

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 (52) hide show
  1. package/README.md +211 -32
  2. package/android/build.gradle +35 -0
  3. package/android/src/main/java/com/orbis1sdk/Orbis1SdkPackage.kt +5 -5
  4. package/android/src/main/java/com/orbis1sdk/RgbModule.kt +3 -4
  5. package/ios/Rgb.swift +57 -2
  6. package/lib/module/Orbis1SDK.js +10 -5
  7. package/lib/module/Orbis1SDK.js.map +1 -1
  8. package/lib/module/features/gas-free/GasFreeModule.js +2 -2
  9. package/lib/module/features/gas-free/GasFreeModule.js.map +1 -1
  10. package/lib/module/features/gas-free/types/GasFreeConfig.js +9 -9
  11. package/lib/module/features/gas-free/types/GasFreeConfig.js.map +1 -1
  12. package/lib/module/features/watch-tower/WatchTowerModule.js +2 -2
  13. package/lib/module/features/watch-tower/WatchTowerModule.js.map +1 -1
  14. package/lib/module/features/watch-tower/index.js +0 -1
  15. package/lib/module/features/watch-tower/index.js.map +1 -1
  16. package/lib/module/features/watch-tower/types/WatchTowerConfig.js +11 -1
  17. package/lib/module/features/watch-tower/types/WatchTowerConfig.js.map +1 -1
  18. package/lib/module/features/watch-tower/types/index.js +0 -2
  19. package/lib/module/features/watch-tower/types/index.js.map +1 -1
  20. package/lib/module/index.js +1 -1
  21. package/lib/module/index.js.map +1 -1
  22. package/lib/module/types/IFeatureModule.js.map +1 -1
  23. package/lib/module/types/SDKConfig.js +28 -2
  24. package/lib/module/types/SDKConfig.js.map +1 -1
  25. package/lib/typescript/src/Orbis1SDK.d.ts.map +1 -1
  26. package/lib/typescript/src/features/gas-free/types/GasFreeConfig.d.ts +11 -6
  27. package/lib/typescript/src/features/gas-free/types/GasFreeConfig.d.ts.map +1 -1
  28. package/lib/typescript/src/features/watch-tower/index.d.ts +0 -1
  29. package/lib/typescript/src/features/watch-tower/index.d.ts.map +1 -1
  30. package/lib/typescript/src/features/watch-tower/types/WatchTowerConfig.d.ts +10 -2
  31. package/lib/typescript/src/features/watch-tower/types/WatchTowerConfig.d.ts.map +1 -1
  32. package/lib/typescript/src/features/watch-tower/types/index.d.ts +0 -1
  33. package/lib/typescript/src/features/watch-tower/types/index.d.ts.map +1 -1
  34. package/lib/typescript/src/index.d.ts +1 -1
  35. package/lib/typescript/src/index.d.ts.map +1 -1
  36. package/lib/typescript/src/types/IFeatureModule.d.ts +3 -0
  37. package/lib/typescript/src/types/IFeatureModule.d.ts.map +1 -1
  38. package/lib/typescript/src/types/SDKConfig.d.ts +31 -43
  39. package/lib/typescript/src/types/SDKConfig.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/src/Orbis1SDK.ts +20 -5
  42. package/src/features/gas-free/GasFreeModule.ts +2 -2
  43. package/src/features/gas-free/types/GasFreeConfig.ts +12 -10
  44. package/src/features/watch-tower/WatchTowerModule.ts +2 -2
  45. package/src/features/watch-tower/index.ts +0 -1
  46. package/src/features/watch-tower/types/WatchTowerConfig.ts +14 -2
  47. package/src/features/watch-tower/types/index.ts +0 -1
  48. package/src/index.tsx +1 -1
  49. package/src/types/IFeatureModule.ts +3 -0
  50. package/src/types/SDKConfig.ts +54 -9
  51. package/android/src/main/java/com/orbis1sdk/Orbis1SdkModule.kt +0 -15
  52. package/android/src/main/java/com/orbis1sdk/RgbPackage.kt +0 -33
@@ -1,33 +0,0 @@
1
- package com.orbis1sdk
2
-
3
- import com.facebook.react.BaseReactPackage
4
- import com.facebook.react.bridge.NativeModule
5
- import com.facebook.react.bridge.ReactApplicationContext
6
- import com.facebook.react.module.model.ReactModuleInfo
7
- import com.facebook.react.module.model.ReactModuleInfoProvider
8
- import java.util.HashMap
9
-
10
- class RgbPackage : BaseReactPackage() {
11
- override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
12
- return if (name == RgbModule.NAME) {
13
- RgbModule(reactContext)
14
- } else {
15
- null
16
- }
17
- }
18
-
19
- override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
20
- return ReactModuleInfoProvider {
21
- val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
22
- moduleInfos[RgbModule.NAME] = ReactModuleInfo(
23
- RgbModule.NAME,
24
- RgbModule.NAME,
25
- false, // canOverrideExistingModule
26
- false, // needsEagerInit
27
- false, // isCxxModule
28
- true // isTurboModule
29
- )
30
- moduleInfos
31
- }
32
- }
33
- }