-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use buffer instead of text-decoder
Signed-off-by: Berend Sliedrecht <[email protected]>
- Loading branch information
1 parent
1e67835
commit c0311e2
Showing
23 changed files
with
3,415 additions
and
1,893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"expo": { | ||
"name": "aries-askar-react-native-app", | ||
"slug": "aries-askar-react-native-app", | ||
"version": "1.0.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/icon.png", | ||
"userInterfaceStyle": "light", | ||
"splash": { | ||
"image": "./assets/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"assetBundlePatterns": [ | ||
"**/*" | ||
], | ||
"ios": { | ||
"supportsTablet": true, | ||
"bundleIdentifier": "org.hyperledger.ariesaskar.app" | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"foregroundImage": "./assets/adaptive-icon.png", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"package": "org.hyperledger.ariesaskar.app" | ||
}, | ||
"web": { | ||
"favicon": "./assets/favicon.png" | ||
} | ||
} | ||
} |
Binary file added
BIN
+17.1 KB
wrappers/javascript/aries-askar-react-native-app/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions
27
wrappers/javascript/aries-askar-react-native-app/babel.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const path = require('path') | ||
|
||
const ariesAskarReactNative = require('../aries-askar-react-native/package.json') | ||
const ariesAskarShared = require('../aries-askar-shared/package.json') | ||
|
||
module.exports = function (api) { | ||
api.cache(true) | ||
return { | ||
presets: ['babel-preset-expo'], | ||
plugins: [ | ||
[ | ||
'module-resolver', | ||
{ | ||
extensions: ['.tsx', '.ts', '.js', '.json'], | ||
alias: { | ||
[ariesAskarShared.name]: path.join(__dirname, '../aries-askar-shared', ariesAskarShared.source), | ||
[ariesAskarReactNative.name]: path.join( | ||
__dirname, | ||
'../aries-askar-react-native', | ||
ariesAskarReactNative.source | ||
), | ||
}, | ||
}, | ||
], | ||
], | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
wrappers/javascript/aries-askar-react-native-app/metro.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const { getDefaultConfig } = require('expo/metro-config') | ||
const path = require('path') | ||
|
||
const projectRoot = __dirname | ||
const workspaceRoot = path.resolve(projectRoot, '..') | ||
|
||
const config = getDefaultConfig(projectRoot) | ||
|
||
config.watchFolders = [workspaceRoot] | ||
config.resolver.nodeModulesPaths = [ | ||
path.resolve(projectRoot, 'node_modules'), | ||
path.resolve(workspaceRoot, 'node_modules'), | ||
] | ||
config.resolver.disableHierarchicalLookup = true | ||
|
||
module.exports = config |
24 changes: 24 additions & 0 deletions
24
wrappers/javascript/aries-askar-react-native-app/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "aries-askar-react-native-app", | ||
"version": "0.0.0", | ||
"private": true, | ||
"main": "./src/index.js", | ||
"scripts": { | ||
"prebuild": "expo prebuild", | ||
"start": "expo start", | ||
"android": "expo run:android", | ||
"ios": "expo run:ios" | ||
}, | ||
"dependencies": { | ||
"@hyperledger/aries-askar-react-native": "*", | ||
"expo": "~49.0.7", | ||
"expo-splash-screen": "~0.20.5", | ||
"expo-status-bar": "~1.6.0", | ||
"react": "18.2.0", | ||
"react-native": "0.72.3", | ||
"react-native-get-random-values": "~1.9.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.0" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
wrappers/javascript/aries-askar-react-native-app/src/App.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ariesAskar, Jwk } from '@hyperledger/aries-askar-react-native' | ||
import { StatusBar } from 'expo-status-bar' | ||
import { StyleSheet, Text, View } from 'react-native' | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}) | ||
|
||
export const App = () => { | ||
return ( | ||
<View style={styles.container}> | ||
<StatusBar style="auto" /> | ||
<Text>Aries Askar version: {ariesAskar.version()}</Text> | ||
</View> | ||
) | ||
} |
7 changes: 7 additions & 0 deletions
7
wrappers/javascript/aries-askar-react-native-app/src/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'react-native-get-random-values' | ||
|
||
import { registerRootComponent } from 'expo' | ||
|
||
import { App } from './App' | ||
|
||
registerRootComponent(App) |
7 changes: 7 additions & 0 deletions
7
wrappers/javascript/aries-askar-react-native-app/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"jsx": "react-native", | ||
"types": ["react-native"] | ||
} | ||
} |
4 changes: 0 additions & 4 deletions
4
wrappers/javascript/aries-askar-react-native/native/aries_askar.node
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import 'fast-text-encoding' | ||
|
||
export * from './error' | ||
export * from './ariesAskar' | ||
export * from './types' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.