Skip to content

Commit

Permalink
Merge pull request #81 from functionland/new-branch-name
Browse files Browse the repository at this point in the history
New branch name
  • Loading branch information
ehsan6sha authored Jan 23, 2024
2 parents 0099a73 + 31013d1 commit efeb45c
Show file tree
Hide file tree
Showing 8 changed files with 13,418 additions and 12,928 deletions.
1 change: 1 addition & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if linkage != nil
end

target 'FulaExample' do
pod 'Fula', :podspec => 'https://raw.githubusercontent.com/functionland/go-fula/main/build/ios/Fula.podspec.json'
config = use_native_modules!

# Flags change depending on the env values.
Expand Down
18 changes: 10 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ PODS:
- FlipperKit/Core
- FlipperKit/FlipperKitNetworkPlugin
- fmt (6.2.1)
- Fula (1.0.0)
- Fula (1.41.0)
- glog (0.3.5)
- hermes-engine (0.72.3):
- hermes-engine/Pre-built (= 0.72.3)
Expand Down Expand Up @@ -377,9 +377,9 @@ PODS:
- React-jsinspector (0.72.3)
- React-logger (0.72.3):
- glog
- react-native-fula (1.14.6):
- react-native-fula (1.41.0):
- CryptoSwift (~> 1.7.1)
- Fula (~> 1.0.0)
- Fula (~> 1.41.0)
- RCT-Folly (= 2021.07.22.00)
- React-Core
- Wnfs (= 1.1.1)
Expand Down Expand Up @@ -528,6 +528,7 @@ DEPENDENCIES:
- FlipperKit/FlipperKitReactPlugin (= 0.182.0)
- FlipperKit/FlipperKitUserDefaultsPlugin (= 0.182.0)
- FlipperKit/SKIOSNetworkPlugin (= 0.182.0)
- Fula (from `https://raw.githubusercontent.com/functionland/go-fula/main/build/ios/Fula.podspec.json`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
- libevent (~> 2.1.12)
Expand Down Expand Up @@ -583,7 +584,6 @@ SPEC REPOS:
- Flipper-PeerTalk
- FlipperKit
- fmt
- Fula
- libevent
- OpenSSL-Universal
- SocketRocket
Expand All @@ -600,6 +600,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/Libraries/FBLazyVector"
FBReactNativeSpec:
:path: "../node_modules/react-native/React/FBReactNativeSpec"
Fula:
:podspec: https://raw.githubusercontent.com/functionland/go-fula/main/build/ios/Fula.podspec.json
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
hermes-engine:
Expand Down Expand Up @@ -692,7 +694,7 @@ SPEC CHECKSUMS:
Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
FlipperKit: 2efad7007d6745a3f95e4034d547be637f89d3f6
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
Fula: a7b468e11348ba96ba565d142cb0ed7187b0e583
Fula: a730f7fff03572492851aa9cef67248bc8575a20
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: 10fbd3f62405c41ea07e71973ea61e1878d07322
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
Expand All @@ -712,7 +714,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: 59d1eb03af7d30b7d66589c410f13151271e8006
React-jsinspector: b511447170f561157547bc0bef3f169663860be7
React-logger: c5b527272d5f22eaa09bb3c3a690fee8f237ae95
react-native-fula: 17a71317faa0b12fdb5d77c4d4560972be871ec7
react-native-fula: a245e55bdc9d7fa16bdf89b0b141ac353c836ac5
React-NativeModulesApple: c57f3efe0df288a6532b726ad2d0322a9bf38472
React-perflogger: 6bd153e776e6beed54c56b0847e1220a3ff92ba5
React-RCTActionSheet: c0b62af44e610e69d9a2049a682f5dba4e9dff17
Expand All @@ -737,6 +739,6 @@ SPEC CHECKSUMS:
Yoga: 8796b55dba14d7004f980b54bcc9833ee45b28ce
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 894d220cf9833d2e19f55138952974df1c3d2b30
PODFILE CHECKSUM: 9feaaa4d041951b0954638a8606cdf7c5caed97c

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
8,592 changes: 4,493 additions & 4,099 deletions example/yarn.lock

Large diffs are not rendered by default.

49 changes: 0 additions & 49 deletions ios/Fula.mm
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,10 @@ @interface RCT_EXTERN_MODULE(FulaModule, NSObject)
RCT_EXTERN_METHOD(shutdown:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(createAccount:(NSString *)seedString
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(checkAccountExists:(NSString *)accountString
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(createPool:(NSString *)seedString
withPoolName: (NSString *)poolName
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(listPools:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

Expand All @@ -138,55 +129,15 @@ @interface RCT_EXTERN_MODULE(FulaModule, NSObject)
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(votePoolJoinRequest:(NSString *)seedString
withPoolID: (NSNumber *)poolID
withAccountString: (NSString *) accountString
withAccept: (BOOL) accept
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(leavePool:(NSString *)poolID
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(newReplicationRequest:(NSString *)seedString
withPoolID: (NSNumber *)poolID
withReplicationFactor: (NSNumber *) replicationFactor
withCid: (NSNumber *) cid
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(newStoreRequest:(NSString *)seedString
withPoolID: (NSNumber *)poolID
withUploader: (NSString *) uploader
withCid: (NSNumber *) cid
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)


RCT_EXTERN_METHOD(listAvailableReplicationRequests:(NSNumber *)poolID
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(removeReplicationRequest:(NSString *)seedString
withPoolID: (NSNumber *)poolID
withCid: (NSString *) cid
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(removeStorer:(NSString *)seedString
withPoolID: (NSNumber *)poolID
withCid: (NSString *) cid
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(removeStoredReplication:(NSString *)seedString
withUploader: (NSString *) uploader
withPoolID: (NSNumber *)poolID
withCid: (NSString *) cid
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)


RCT_EXTERN_METHOD(bloxFreeSpace:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)
Expand Down
Loading

0 comments on commit efeb45c

Please sign in to comment.