Skip to content

Commit

Permalink
Androidx Support (#168)
Browse files Browse the repository at this point in the history
* Point at new android-textile

Signed-off-by: Aaron Sutula <hi@asutula.com>

* updated yarn lock

Signed-off-by: Aaron Sutula <hi@asutula.com>

* Remove unneeded exception handling

Signed-off-by: Aaron Sutula <hi@asutula.com>
  • Loading branch information
asutula authored Dec 9, 2019
1 parent 70bb3ef commit daf9dfc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 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.1.0'
textileVersion = '2.1.1'
}
9 changes: 2 additions & 7 deletions android/src/main/java/io/textile/rnmobile/IpfsBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ public void cancelPubsubSub(final String queryId, final Promise promise) {
executor.execute(new Runnable() {
@Override
public void run() {
try {
Textile.instance().ipfs.cancelPubsubSub(queryId);
promise.resolve(null);
}
catch (final Exception e) {
promise.reject("cancelPubsubSub", e);
}
Textile.instance().ipfs.cancelPubsubSub(queryId);
promise.resolve(null);
}
});
}
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.1.1",
"version": "3.1.2",
"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.7.6",
"@textile/js-types": "0.7.7",
"buffer": "^5.2.1"
},
"directories": {
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.7.6":
version "0.7.6"
resolved "https://registry.yarnpkg.com/@textile/js-types/-/js-types-0.7.6.tgz#43209cc8c30682afdaabd6f781dc9386d39e1284"
integrity sha512-McXaGmOJ7oAyeS0pp/E//3V1mNRlFG+D6LOan2Zh9XVJUoEpsiKgBLNEFb4Jpolnx8a331P7BK65Gp9e5d2ZJA==
"@textile/js-types@0.7.7":
version "0.7.7"
resolved "https://registry.yarnpkg.com/@textile/js-types/-/js-types-0.7.7.tgz#e73a5c905e65ff2a7e6a1e21bc60885066281939"
integrity sha512-oITYWFE+TvMk/LKjnS91Psvh3/VfnQ/qZ2MSw9GvHUhLBTdZxi68Ye/rCtsGsBHHE0VFMCtyswNt5DEiYmFOvw==
dependencies:
protobufjs "^6.8.8"

Expand Down

0 comments on commit daf9dfc

Please # to comment.