Skip to content

Commit

Permalink
Update SDKs to 0.7.0 (#148)
Browse files Browse the repository at this point in the history
* sdks: bump versions

Signed-off-by: Sander Pick <sanderpick@gmail.com>

* cafes: update checkMessages signature

Signed-off-by: Sander Pick <sanderpick@gmail.com>
  • Loading branch information
sanderpick authored Aug 21, 2019
1 parent cf5a4c1 commit 11d556d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion android/manifest.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ ext {
mavenGradleVersion = '2.1'

// Textile
textileVersion = '2.0.6'
textileVersion = '2.0.7'
}
18 changes: 11 additions & 7 deletions android/src/main/java/io/textile/rnmobile/CafesBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,17 @@ public void checkMessages(final Promise promise) {
executor.execute(new Runnable() {
@Override
public void run() {
try {
Textile.instance().cafes.checkMessages();
promise.resolve(null);
}
catch (final Exception e) {
promise.reject("checkMessages", e);
}
Textile.instance().cafes.checkMessages(new Handlers.ErrorHandler() {
@Override
public void onComplete() {
promise.resolve(null);
}

@Override
public void onError(final Exception e) {
promise.reject("checkMessages", e);
}
});
}
});
}
Expand Down
6 changes: 3 additions & 3 deletions ios/CafesBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ - (dispatch_queue_t)methodQueue {
}

RCT_EXPORT_METHOD(checkMessages:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
NSError *error;
[Textile.instance.cafes checkMessages:&error];
fulfillWithResult(nil, error, resolve, reject);
[Textile.instance.cafes checkMessages:^(NSError * _Nonnull error) {
fulfillWithResult(nil, error, resolve, reject);
}];
}

@end
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@textile/react-native-sdk",
"version": "3.0.7",
"version": "3.0.8",
"description": "## Getting started",
"nativePackage": true,
"main": "dist/index.js",
Expand Down Expand Up @@ -62,7 +62,7 @@
"typescript": "^3.1.1"
},
"dependencies": {
"@textile/js-types": "0.6.11",
"@textile/js-types": "0.7.0",
"buffer": "^5.2.1"
},
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion textile-react-native-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = '9.0'

s.dependency 'React'
s.dependency 'Textile', '2.0.7'
s.dependency 'Textile', '2.0.8'

s.preserve_paths = 'README.md', 'LICENSE', 'package.json'
s.source_files = 'ios/**/*.{h,m}'
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,10 @@
version "1.1.0"
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"

"@textile/js-types@0.6.11":
version "0.6.11"
resolved "https://registry.yarnpkg.com/@textile/js-types/-/js-types-0.6.11.tgz#ca3df3e960d6f284566d55021ca582f43cd68f41"
integrity sha512-TuX8yXLbtRWVb2l7UjWndtbiyxE+xVAYSl+1RXO7vm2MejFEIyI+sO9p4NmZZ9w5BBoEDWjcsPZ16AFJoa16fQ==
"@textile/js-types@0.7.0":
version "0.7.0"
resolved "https://registry.yarnpkg.com/@textile/js-types/-/js-types-0.7.0.tgz#0fabd0c6be57e91a0f32c6ea6ee3299192095c82"
integrity sha512-qhn7oep8a+0Qbx8XO0h05vOFVHENBmpgEQF7kNetfPeEuL3GTcIRXnp0caQdbmYaer1YomGS5e0a4FACFg4HRA==
dependencies:
protobufjs "^6.8.8"

Expand Down

0 comments on commit 11d556d

Please # to comment.