Skip to content

Commit

Permalink
More Android Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Nov 28, 2023
1 parent 48c6a7a commit 9e3981b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected List<ReactPackage> getPackages() {
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new QuickCryptoPackage());
// packages.add(new QuickCryptoPackage());
return packages;
}

Expand Down
3 changes: 2 additions & 1 deletion example/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const crypto = require('crypto');
const quickCrypto = require('react-native-quick-crypto');
// const quickCrypto = require('react-native-quick-crypto');
import quickCrypto from 'react-native-quick-crypto';

crypto.publicEncrypt = quickCrypto.publicEncrypt;
crypto.privateDecrypt = quickCrypto.privateDecrypt;
Expand Down
6 changes: 2 additions & 4 deletions example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ const pak = require('../package.json');

const root = path.resolve(__dirname, '..');

const modules = Object.keys({
...pak.peerDependencies,
});
const modules = Object.keys({ ...pak.peerDependencies });

const config = {
projectRoot: __dirname,
watchFolders: [root],

// We need to make sure that only one version is loaded for peerDependencies
// So we blacklist them at the root, and alias them to the versions in example's node_modules
Expand Down
3 changes: 1 addition & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.9",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
"react-test-renderer": "18.2.0"
},
"jest": {
"preset": "react-native"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"react-native": "^0.72.7",
"react-native-builder-bob": "^0.18.1",
"release-it": "^14.11.5",
"typescript": "4.8.4"
"typescript": "^5.0.2"
},
"peerDependencies": {
"react": "*",
Expand Down

0 comments on commit 9e3981b

Please sign in to comment.