diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e9d3b56ff..5d6fdbc5a 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -119,12 +119,12 @@ PODS: - React - RNReanimated (1.0.1): - React - - Textile (2.0.9): + - Textile (2.0.10): - Protobuf (~> 3.7) - TextileCore (= 0.7.1) - - textile-react-native-sdk (3.0.10): + - textile-react-native-sdk (3.0.11): - React - - Textile (= 2.0.9) + - Textile (= 2.0.10) - TextileCore (0.7.1): - Protobuf (~> 3.7) - yoga (0.58.6.React) @@ -204,8 +204,8 @@ SPEC CHECKSUMS: React: 130b87b2d5e2baac646954282cab87be986d98fc RNFirebase: 0025ab54718dbd3fa76e216be7eda9a37c89772d RNReanimated: c8dd490ca98a4edcba229bfa49f2516c95a43afb - Textile: e87cd654e40e082e912fb730e0afb06331c3e101 - textile-react-native-sdk: 5fb9262060d583172d069f22e7a1b2cd6d3634f7 + Textile: 5dc335e1e41bd308d26ac14025ba6cccbef11732 + textile-react-native-sdk: 36ab72bc11c777bf46764d031757afc2c56966ef TextileCore: 4376d528c22aa0abfdd29ffa3967f4b62d7569c1 yoga: 32d7ef1081951e9a35a4c72a7be797598b138a48 diff --git a/ios/Pods/Local Podspecs/textile-react-native-sdk.podspec.json b/ios/Pods/Local Podspecs/textile-react-native-sdk.podspec.json index d04a8c751..a1a79510b 100644 --- a/ios/Pods/Local Podspecs/textile-react-native-sdk.podspec.json +++ b/ios/Pods/Local Podspecs/textile-react-native-sdk.podspec.json @@ -1,6 +1,6 @@ { "name": "textile-react-native-sdk", - "version": "3.0.10", + "version": "3.0.11", "summary": "## Getting started", "description": "## Getting started", "homepage": "https://github.com/textileio/react-native-sdk#readme", @@ -8,7 +8,7 @@ "authors": "textile.io", "source": { "git": "https://github.com/textileio/react-native-sdk.git", - "tag": "v3.0.10" + "tag": "v3.0.11" }, "platforms": { "ios": "9.0", @@ -19,7 +19,7 @@ ], "Textile": [ - "2.0.9" + "2.0.10" ] }, "preserve_paths": [ diff --git a/ios/Pods/Manifest.lock b/ios/Pods/Manifest.lock index e9d3b56ff..5d6fdbc5a 100644 --- a/ios/Pods/Manifest.lock +++ b/ios/Pods/Manifest.lock @@ -119,12 +119,12 @@ PODS: - React - RNReanimated (1.0.1): - React - - Textile (2.0.9): + - Textile (2.0.10): - Protobuf (~> 3.7) - TextileCore (= 0.7.1) - - textile-react-native-sdk (3.0.10): + - textile-react-native-sdk (3.0.11): - React - - Textile (= 2.0.9) + - Textile (= 2.0.10) - TextileCore (0.7.1): - Protobuf (~> 3.7) - yoga (0.58.6.React) @@ -204,8 +204,8 @@ SPEC CHECKSUMS: React: 130b87b2d5e2baac646954282cab87be986d98fc RNFirebase: 0025ab54718dbd3fa76e216be7eda9a37c89772d RNReanimated: c8dd490ca98a4edcba229bfa49f2516c95a43afb - Textile: e87cd654e40e082e912fb730e0afb06331c3e101 - textile-react-native-sdk: 5fb9262060d583172d069f22e7a1b2cd6d3634f7 + Textile: 5dc335e1e41bd308d26ac14025ba6cccbef11732 + textile-react-native-sdk: 36ab72bc11c777bf46764d031757afc2c56966ef TextileCore: 4376d528c22aa0abfdd29ffa3967f4b62d7569c1 yoga: 32d7ef1081951e9a35a4c72a7be797598b138a48 diff --git a/ios/Pods/Textile/Textile/Classes/Public/TextileApi.h b/ios/Pods/Textile/Textile/Classes/Public/TextileApi.h index c859b0efb..3b04cc0c8 100644 --- a/ios/Pods/Textile/Textile/Classes/Public/TextileApi.h +++ b/ios/Pods/Textile/Textile/Classes/Public/TextileApi.h @@ -221,8 +221,9 @@ NS_ASSUME_NONNULL_BEGIN /** * Reset the local Textile node instance so it can be re-initialized + * @param completion A block that gets called after the Textile instance is reset */ -- (void)destroy; +- (void)destroyWithCompletion:(nullable void (^)(BOOL success, NSError * _Nullable error))completion; @end diff --git a/ios/Pods/Textile/Textile/Classes/Public/TextileApi.m b/ios/Pods/Textile/Textile/Classes/Public/TextileApi.m index 4cd19a44b..1861dee58 100644 --- a/ios/Pods/Textile/Textile/Classes/Public/TextileApi.m +++ b/ios/Pods/Textile/Textile/Classes/Public/TextileApi.m @@ -155,31 +155,36 @@ - (void)stopWithCompletion:(void (^)(BOOL, NSError * _Nullable))completion { [self.lifecycleManager stopWithCompletion:completion]; } -- (void)destroy { +- (void)destroyWithCompletion:(void (^)(BOOL, NSError * _Nullable))completion { [self stopWithCompletion:^(BOOL success, NSError * _Nullable error) { - self.delegate = nil; - self.node = nil; - self.messenger = nil; - self.lifecycleManager = nil; - self.requestsHandler = nil; - - self.account = nil; - self.cafes = nil; - self.comments = nil; - self.contacts = nil; - self.feed = nil; - self.files = nil; - self.flags = nil; - self.ignores = nil; - self.invites = nil; - self.ipfs = nil; - self.likes = nil; - self.logs = nil; - self.messages = nil; - self.notifications = nil; - self.profile = nil; - self.schemas = nil; - self.threads = nil; + if (success) { + self.delegate = nil; + self.node = nil; + self.messenger = nil; + self.lifecycleManager = nil; + self.requestsHandler = nil; + + self.account = nil; + self.cafes = nil; + self.comments = nil; + self.contacts = nil; + self.feed = nil; + self.files = nil; + self.flags = nil; + self.ignores = nil; + self.invites = nil; + self.ipfs = nil; + self.likes = nil; + self.logs = nil; + self.messages = nil; + self.notifications = nil; + self.profile = nil; + self.schemas = nil; + self.threads = nil; + } + if (completion) { + completion(success, error); + } }]; } diff --git a/package.json b/package.json index 1603b57a3..77b1a9cf5 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dependencies": { "@textile/react-native-camera-roll": "1.1.6", "@textile/react-native-icon": "^1.0.0", - "@textile/react-native-sdk": "3.0.10", + "@textile/react-native-sdk": "3.0.11", "moment": "^2.22.2", "prop-types": "^15.6.2", "react": "16.6.3", diff --git a/yarn.lock b/yarn.lock index f3957c4aa..97ec078c1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -877,10 +877,10 @@ dependencies: react-native-vector-icons "^6.2.0" -"@textile/react-native-sdk@3.0.10": - version "3.0.10" - resolved "https://registry.yarnpkg.com/@textile/react-native-sdk/-/react-native-sdk-3.0.10.tgz#c850fdb6e65589015c610e837af5b92da4fe789b" - integrity sha512-MozduLZXoTgYsv3fu16/xEN2Dm7Yjrn2ehB5Eg5muwFu47nToN7A+7qWWfYOVYj3mnEdERXlJP7AKjVUGZTWVQ== +"@textile/react-native-sdk@3.0.11": + version "3.0.11" + resolved "https://registry.yarnpkg.com/@textile/react-native-sdk/-/react-native-sdk-3.0.11.tgz#a660cb8e2ce85eeaceaede17e453d57383d65214" + integrity sha512-T7kHcp/L6fyejwpuZ8sMxqOsp/x5FilOFxAwnCQ8sJi/e/vIraG+D8mTIhRKwMViPJ0fq9caVAasVQVuXrbEsg== dependencies: "@textile/js-types" "0.7.1" buffer "^5.2.1"