Skip to content

Archimedes1618/safecoin-mobile

 
 

Repository files navigation

SafeCoin Mobile

SafeCoin mobile app built using Onsen UI, Redux, React and Webpack.

Use node v7.10.1

Setup instructions

sudo apt-get install default-jdk gradle
mkdir android_sdk
cd android_sdk
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip
./tools/bin/sdkmanager --install "system-images;android-27;google_apis;x86"
./tools/bin/sdkmanager "build-tools;27.0.3" "platforms;android-27" "tools"
./tools/bin/sdkmanager "platforms;android-25"
./tools/bin/sdkmanager "build-tools;25.0.3"
export ANDROID_HOME="/home/your_username/android_sdk"

nvm install v7.10.1
nvm use v7.10.1
npm install -g yarn [email protected]
yarn install

cordova plugin add cordova-plugin-qrscanner cordova-plugin-file cordova-plugin-http cordova-clipboard cordova-plugin-inappbrowser cordova-plugin-device cordova-plugin-wkwebview-engine cordova-plugin-whitelist
cordova plugin add cordova-plugin-google-analytics
cordova platform add [[email protected] | ios]

debug ios/android

cordova run android
cordova run ios

final ios/android

cordova run ios --release
cordova run android --release

======= cordova plugin add cordova-plugin-qrscanner cordova-plugin-file cordova-plugin-http cordova-clipboard cordova-plugin-inappbrowser cordova-plugin-device cordova-plugin-wkwebview-engine cordova-plugin-whitelist cordova-plugin-statusbar [email protected]

Part1 create safecoin.keystore file for signed APK

keytool -genkey -v -keystore ~/safecoin.keystore -alias safecoin_play -keyalg RSA -keysize 2048 -validity 10000

Part2 Optional (PKCS12 format which is an industry standard format using)

keytool -importkeystore -srckeystore ~/safecoin.keystore -destkeystore ~/safecoin.keystore -deststoretype pkcs12

sign:android

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/safecoin.keystore -signedjar platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-unsigned.apk safecoin_play

aligned:android

$ANDROID_HOME/build-tools/27.0.3/zipalign -v 4 platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-signed-aligned.apk
=======
cordova plugin add cordova-plugin-splashscreen cordova-plugin-disable-ios11-statusbar
cordova platform add ios
cordova run ios

iOS FAQ

  1. Icons

Icons are a bit of a bitch to setup for iOS. Make sure you've added the ios platform to cordova, and copy the folder ./assets/img/ios/AppIcon.appiconset to ./platforms/ios/SAFE\ Wallet/Images.xcassets. Remove the folder AppIcon.appiconset if it exists in ./platforms/ios/SAFE\ Wallet/Images.xcassets.

  1. .ipa files (using it on a real iPhone)
1: Change scheme destination to Generic IOS device.

2: Click Product > Archive > once this is complete open up the Organiser and click the latest version.

3: Click on Export... option from right side of organiser window.

4: Select a method for export > Choose correct signing > Save to Destination.

2.1 Adding account to sign for the app

1. Xcode -> Preferences -> Account -> sign in with your apple id
2. https://i.stack.imgur.com/w4SlR.gif

Contributors

kendricktan

alexanderzabuga

kevinah95

afucher

andyvh

darkavenger

emhaye

simoneddeland

dropnib

rubyxroot

berar

OleksandrBlack

About

Mobile Wallet for SafeCoin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%