Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
d739e3dc
Commit
d739e3dc
authored
Mar 24, 2017
by
Tomasz Drwięga
Committed by
GitHub
Mar 24, 2017
Browse files
Updating readme and CLI options to support linux+android development. (#24)
parent
c4aa9b8e
Changes
5
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d739e3dc
...
...
@@ -17,12 +17,18 @@
```
./setup_macos.sh
echo "ndk.dir=$NDK_HOME" > android/local.properties
echo "sdk.dir=$ANDROID_HOME" >> android/local.properties
```
-
linux
```
./setup_linux.sh
echo "ndk.dir=$NDK_HOME" > android/local.properties
echo "sdk.dir=$ANDROID_HOME" >> android/local.properties
```
### usage
...
...
@@ -30,15 +36,13 @@
-
iOS
```
make -C rust/signer ios
react-native run-ios
npm run ios
```
-
Android
```
make -C rust/signer android
react-native run-android
npm run android
```
### Example
...
...
create-ndk-standalone.sh
View file @
d739e3dc
#! /bin/sh
#! /bin/
ba
sh
# based on https://github.com/kennytm/rust-ios-android
...
...
@@ -13,7 +13,7 @@ fi
MAKER
=
"
$NDK_HOME
/build/tools/make_standalone_toolchain.py"
if
[
-x
"
$MAKER
"
]
;
then
MAKER
=
"
$
(
brew
--prefix
android-ndk
)
/build/tools/make_standalone_toolchain.py"
MAKER
=
"
$
NDK_HOME
/build/tools/make_standalone_toolchain.py"
fi
if
[
-x
"
$MAKER
"
]
;
then
...
...
package.json
View file @
d739e3dc
...
...
@@ -3,8 +3,12 @@
"version"
:
"0.0.1"
,
"private"
:
true
,
"scripts"
:
{
"build-rust"
:
"cd rust/signer && make ios"
,
"start"
:
"npm run build-rust && node node_modules/react-native/local-cli/cli.js run-ios"
,
"build-rust-ios"
:
"cd rust/signer && make ios"
,
"ios"
:
"npm run build-rust-ios && npm run cli run-ios"
,
"build-rust-android"
:
"cd rust/signer && make android"
,
"android"
:
"npm run build-rust-android && npm run cli run-android"
,
"cli"
:
"node node_modules/react-native/local-cli/cli.js"
,
"start"
:
"npm run ios"
,
"test"
:
"jest"
,
"lint"
:
"standard"
,
"commit"
:
"commit-wizard"
...
...
setup_linux.sh
View file @
d739e3dc
#! /bin/bash
set
-e
# android
multirust add-target stable aarch64-linux-android
multirust add-target stable armv7-linux-androideabi
...
...
setup_macos.sh
View file @
d739e3dc
#! /bin/bash
set
-e
# ios
multirust add-target stable i386-apple-ios
multirust add-target stable x86_64-apple-ios
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment