Update cordova project
|
|
@ -1,8 +1,8 @@
|
||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" android:windowSoftInputMode="adjustPan" package="com.bitpay.copay" xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest android:hardwareAccelerated="true" android:versionCode="11" android:versionName="0.5.0" android:windowSoftInputMode="adjustPan" package="com.bitpay.copay" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
|
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
|
<application android:hardwareAccelerated="true" android:icon="@drawable/copay" android:label="@string/app_name">
|
||||||
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:launchMode="singleTop" android:name="Copay" android:theme="@android:style/Theme.Black.NoTitleBar">
|
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:launchMode="singleTop" android:name="Copay" android:theme="@android:style/Theme.Black.NoTitleBar">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
<access origin="*" />
|
<access origin="*" />
|
||||||
<preference name="loglevel" value="DEBUG" />
|
<preference name="loglevel" value="DEBUG" />
|
||||||
<preference name="AndroidLaunchMode" value="singleTop" />
|
<preference name="AndroidLaunchMode" value="singleTop" />
|
||||||
<preference name="splashscreen" value="screen" />
|
<preference name="SplashScreen" value="screen" />
|
||||||
<preference name="splashScreenDelay" value="10000" />
|
<preference name="SplashScreenDelay" value="10000" />
|
||||||
<preference name="backgroundColor" value="0x2C3E50" />
|
<preference name="backgroundColor" value="0x2C3E50" />
|
||||||
<feature name="App">
|
<feature name="App">
|
||||||
<param name="android-package" value="com.bitpay.copay" />
|
<param name="android-package" value="com.bitpay.copay" />
|
||||||
|
|
|
||||||
17
cordova/android/project.properties
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# This file is automatically generated by Android Tools.
|
||||||
|
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||||
|
#
|
||||||
|
# This file must be checked in Version Control Systems.
|
||||||
|
#
|
||||||
|
# To customize properties used by the Ant build system edit
|
||||||
|
# "ant.properties", and override values to adapt the script to your
|
||||||
|
# project structure.
|
||||||
|
#
|
||||||
|
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
||||||
|
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||||
|
|
||||||
|
android.library.reference.1=CordovaLib
|
||||||
|
# Project target.
|
||||||
|
target=android-19
|
||||||
|
key.store=../../../copay.keystore
|
||||||
|
key.alias=copay_play
|
||||||
BIN
cordova/android/res/drawable-hdpi/copay.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
cordova/android/res/drawable-ldpi/copay.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
cordova/android/res/drawable-mdpi/copay.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
cordova/android/res/drawable-xhdpi/copay.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
cordova/android/res/drawable/copay.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
cordova/android/res/drawable/copayscreen.9.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
cordova/android/res/drawable/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
cordova/android/res/drawable/share_via_barcode.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
cordova/android/res/drawable/shopper_icon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -41,9 +41,8 @@ echo "${OpenColor}${Green}* Checking dependencies...${CloseColor}"
|
||||||
command -v cordova >/dev/null 2>&1 || { echo >&2 "Cordova is not present, please install it: sudo npm -g cordova."; exit 1; }
|
command -v cordova >/dev/null 2>&1 || { echo >&2 "Cordova is not present, please install it: sudo npm -g cordova."; exit 1; }
|
||||||
command -v xcodebuild >/dev/null 2>&1 || { echo >&2 "XCode is not present, install it or use [--android]."; exit 1; }
|
command -v xcodebuild >/dev/null 2>&1 || { echo >&2 "XCode is not present, install it or use [--android]."; exit 1; }
|
||||||
|
|
||||||
|
|
||||||
# Create project dir
|
# Create project dir
|
||||||
if [[ CLEAR ]]
|
if $CLEAR
|
||||||
then
|
then
|
||||||
if [ -d $PROJECT ]; then
|
if [ -d $PROJECT ]; then
|
||||||
rm -rf $PROJECT
|
rm -rf $PROJECT
|
||||||
|
|
@ -61,7 +60,7 @@ if [ ! -d $PROJECT ]; then
|
||||||
cordova platforms add android
|
cordova platforms add android
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
if [[ !SKIPIOS ]]; then
|
if [[ !$SKIPIOS ]]; then
|
||||||
echo "${OpenColor}${Green}* Adding IOS platform... ${CloseColor}"
|
echo "${OpenColor}${Green}* Adding IOS platform... ${CloseColor}"
|
||||||
cordova platforms add ios
|
cordova platforms add ios
|
||||||
checkOK
|
checkOK
|
||||||
|
|
@ -113,11 +112,19 @@ checkOK
|
||||||
cp android/config.xml $PROJECT/platforms/android/res/xml/config.xml
|
cp android/config.xml $PROJECT/platforms/android/res/xml/config.xml
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
if [[ !SKIPIOS ]]; then
|
cp android/project.properties $PROJECT/platforms/android/project.properties
|
||||||
cp -R ios/icons $PROJECT/platforms/ios/Copay/Resources/icons
|
checkOK
|
||||||
|
|
||||||
|
cp -R android/res/* $PROJECT/platforms/android/res
|
||||||
|
checkOK
|
||||||
|
|
||||||
|
echo $SKIPIOS;
|
||||||
|
if [[ !$SKIPIOS ]]; then
|
||||||
|
echo "Copiando IOS";
|
||||||
|
cp -R ios/icons/* $PROJECT/platforms/ios/Copay/Resources/icons
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
cp -R ios/splash $PROJECT/platforms/ios/Copay/Resources/splash
|
cp -R ios/splash/* $PROJECT/platforms/ios/Copay/Resources/splash
|
||||||
checkOK
|
checkOK
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<widget id="com.bitpay.copay" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
<widget id="com.bitpay.copay" version="0.5.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" android-versionCode="11">
|
||||||
<name>Copay</name>
|
<name>Copay</name>
|
||||||
<description>
|
<description>
|
||||||
A secure bitcoin wallet for friends and companies.
|
A secure bitcoin wallet for friends and companies.
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
</author>
|
</author>
|
||||||
<content src="index.html" />
|
<content src="index.html" />
|
||||||
<access origin="*" />
|
<access origin="*" />
|
||||||
<preference name="splashscreen" value="screen" />
|
<preference name="SplashScreen" value="copayscreen" />
|
||||||
<preference name="splashScreenDelay" value="10000" />
|
<preference name="SplashScreenDelay" value="10000" />
|
||||||
<preference name="backgroundColor" value="0x2C3E50" />
|
<preference name="backgroundColor" value="0x2C3E50" />
|
||||||
<preference name="StatusBarOverlaysWebView" value="false" />
|
<preference name="StatusBarOverlaysWebView" value="false" />
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.4.7</string>
|
<string>0.5.0</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>0.4.7</string>
|
<string>0.5.0</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSMainNibFile</key>
|
<key>NSMainNibFile</key>
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,8 @@
|
||||||
$ sh cordova/build.sh
|
$ sh cordova/build.sh
|
||||||
$ cd cordova/project
|
$ cd cordova/project
|
||||||
$ cordova run android
|
$ cordova run android
|
||||||
$ cordova emulate ios
|
$ cordova emulate ios
|
||||||
|
|
||||||
|
## Build for release
|
||||||
|
|
||||||
|
$ cordova build android --release
|
||||||