Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ plugins
platforms
cordova/project-*/*
cordova/*.keystore
cordova/wp/MainPage.xaml
cordova/wp/Package.appxmanifest
cordova/wp/Properties/WMAppManifest.xml

# node-webkit
cache
Expand Down
2 changes: 1 addition & 1 deletion cordova/wp/MainPage.xaml → app-template/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
under the License.
-->
<phone:PhoneApplicationPage
x:Class="com.bitpay.copay.MainPage"
x:Class="*WPMAINPAGEID*"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
Expand Down
27 changes: 0 additions & 27 deletions app-template/Makefile

This file was deleted.

18 changes: 0 additions & 18 deletions app-template/ProjectMakefile

This file was deleted.

4 changes: 2 additions & 2 deletions app-template/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
var templates = {
'package-template.json': '/',
'index.html': 'www/',
'Makefile': 'cordova/',
'ProjectMakefile': 'cordova/',
'config-template.xml': '/',
'ionic.config.json': '/',
'Package.appxmanifest': 'cordova/wp/',
'MainPage.xaml': 'cordova/wp/',
'WMAppManifest.xml': 'cordova/wp/Properties/',
'.desktop': 'webkitbuilds/',
'setup-win.iss': 'webkitbuilds/',
'build-macos.sh': 'webkitbuilds/',
Expand Down
1 change: 1 addition & 0 deletions app-template/bitpay/appConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"winAppName": "BitPayWallet",
"wpPublisherId": "{}",
"wpProductId": "{}",
"wpMainPageId": "com.bitpay.bitpay.MainPage",
"windowsAppId": "2d1002d7-ee34-4f60-bd29-0c871ba0c195",
"pushSenderId": "1036948132229",
"description": "Secure Bitcoin Wallet",
Expand Down
26 changes: 18 additions & 8 deletions app-template/config-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<!-- <preference name="KeyboardDisplayRequiresUserAction" value="false" /> -->
<preference name="StatusBarBackgroundColor" value="#1e3186" />
<preference name="BackupWebStorage" value="none"/>
<preference name="windows-target-version" value="8.1"/>
<preference name="Orientation" value="default" />
<preference name="cordova-custom-config-stoponerror" value="true" />

Expand All @@ -34,8 +33,8 @@
<preference name="SplashMaintainAspectRatio" value="true" />

<!-- Plugins -->
<plugin name="cordova-plugin-device" spec="~1.1.3"/>
<plugin name="cordova-plugin-globalization" spec="~1.0.4" />
<plugin name="cordova-plugin-device" spec="~1.1.3"/>
<plugin name="cordova-plugin-splashscreen" spec="~4.0.0" />
<plugin name="cordova-plugin-statusbar" spec="~2.2.0" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />
Expand All @@ -57,23 +56,23 @@
<plugin name="cordova-plugin-whitelist" spec="~1.3.0" />
<plugin name="cordova-plugin-wkwebview-engine" spec="https://github.com/driftyco/cordova-plugin-wkwebview-engine.git" />
<plugin name="cordova-plugin-qrscanner" spec="~2.4.0" />
<plugin name="cordova-plugin-customurlscheme" spec="https://github.com/cmgustavo/Custom-URL-scheme.git">
<variable name="URL_SCHEME" value="bitcoin" />
<variable name="SECOND_URL_SCHEME" value="*APPURI*" />
</plugin>
<plugin name="phonegap-plugin-push" spec="~1.8.2">
<variable name="SENDER_ID" value="*PUSHSENDERID*"/>
</plugin>
<plugin name="cordova-custom-config" spec="~3.0.5" />
<plugin name="cordova-plugin-queries-schemes" spec="~0.1.5" />
<plugin name="cordova-custom-config" spec="~3.0.5" />

<!-- Supported Platforms -->
<engine name="ios" spec="~4.2.1" />
<engine name="android" spec="~5.2.2" />
<!-- <engine name="windows" spec="~4.4.2" /> -->
<engine name="windows" spec="~4.4.2" />

<!-- Platform Specific Settings -->
<platform name="ios">
<plugin name="cordova-plugin-customurlscheme" spec="https://github.com/cmgustavo/Custom-URL-scheme.git">
<variable name="URL_SCHEME" value="bitcoin" />
<variable name="SECOND_URL_SCHEME" value="*APPURI*" />
</plugin>
<config-file platform="ios" target="*-Info.plist" parent="UIStatusBarHidden"><true/></config-file>
<config-file platform="ios" target="*-Info.plist" parent="UIViewControllerBasedStatusBarAppearance"><false/></config-file>
<config-file target="*-Info.plist" parent="ITSAppUsesNonExemptEncryption"><false/></config-file>
Expand Down Expand Up @@ -107,6 +106,10 @@
</platform>

<platform name="android">
<plugin name="cordova-plugin-customurlscheme" spec="https://github.com/cmgustavo/Custom-URL-scheme.git">
<variable name="URL_SCHEME" value="bitcoin" />
<variable name="SECOND_URL_SCHEME" value="*APPURI*" />
</plugin>
<preference name="android-manifest/application/@android:allowBackup" value="false" />

<icon src="resources/*PACKAGENAME*/android/icon/drawable-ldpi-icon.png" density="ldpi" />
Expand All @@ -131,6 +134,13 @@
<splash src="resources/*PACKAGENAME*/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
</platform>

<platform name="wp8">
<hook type="after_build" src="hooks/fix-svg.sh" />
<splash src="resources/*PACKAGENAME*/wp8/SplashScreenImage.jpg" width="768" height="1280" />
<icon src="resources/*PACKAGENAME*/wp8/ApplicationIcon.png" width="99" height="99" />
<icon src="resources/*PACKAGENAME*/wp8/Background.png" width="159" height="159" />
</platform>

<platform name="windows">
<icon src="resources/*PACKAGENAME*/windows/icon/StoreLogo.png" target="StoreLogo" />
<icon src="resources/*PACKAGENAME*/windows/icon/Square30x30Logo.png" target="Square30x30Logo" />
Expand Down
1 change: 1 addition & 0 deletions app-template/copay/appConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"winAppName": "CopayWallet",
"wpPublisherId": "{31cdd08b-457c-413d-b440-f6665eec847d}",
"wpProductId": "{5381aa50-9069-11e4-84cc-293caf9cbdc8}",
"wpMainPageId": "com.bitpay.copay.MainPage",
"windowsAppId": "804636ee-b017-4cad-8719-e58ac97ffa5c",
"pushSenderId": "1036948132229",
"description": "A Secure Bitcoin Wallet",
Expand Down
2 changes: 2 additions & 0 deletions app-template/package-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@
"start": "npm run build:www && ionic serve --nolivereload --nogulp -s",
"start:ios": "npm run build:www && npm run build:ios && npm run open:ios",
"start:android": "npm run build:www && npm run build:android && npm run run:android",
"start:wp": "npm run build:www && npm run build:wp",
"start:desktop": "npm start",
"watch": "grunt watch",
"build:www": "grunt",
"build:www-release": "grunt prod",
"build:ios": "cordova prepare ios && cordova build ios --debug",
"build:android": "cordova prepare android && cordova build android --debug",
"build:wp": "rm -rf platforms/wp8 && cordova platform add wp8 && cordova build wp8",
"build:ios-release": "cordova prepare ios && cordova build ios --release",
"build:android-release": "cordova prepare android && cordova build android --release",
"build:desktop": "grunt desktop",
Expand Down
18 changes: 0 additions & 18 deletions cordova/readme.md

This file was deleted.

49 changes: 0 additions & 49 deletions cordova/wp/Properties/WMAppManifest.xml

This file was deleted.

12 changes: 0 additions & 12 deletions cordova/wp/fix-svg.sh

This file was deleted.

6 changes: 6 additions & 0 deletions cordova/wp/fix-wp8.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#/bin/bash
PROJECT=./platforms

cp -rvf ./cordova/wp/Properties/* $PROJECT/wp8/Properties/
cp -rvf ./cordova/wp/MainPage.xaml $PROJECT/wp8/
cp -rvf ./cordova/wp/Package.appxmanifest $PROJECT/wp8/
12 changes: 12 additions & 0 deletions hooks/fix-svg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#/bin/bash
shopt -s globstar
PROJECT=./platforms
for i in $PROJECT/wp8/www/img/**/*.svg
do
cat $i |grep -v ?xml > $i
done

for i in $PROJECT/wp8/www/fonts/*.svg
do
cat $i |grep -v ?xml > $i
done
Binary file added resources/bitpay/wp8/ApplicationIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/Background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/SplashScreenImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/BadgeLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/SplashScreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/SquareTile150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/SquareTile71x71.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/WideLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/icon-300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bitpay/wp8/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/copay/wp8/ApplicationIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/copay/wp8/Background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/copay/wp8/SplashScreenImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/BadgeLogo.png
Binary file added resources/copay/wp8/assets/Logo.png
Binary file added resources/copay/wp8/assets/SplashScreen.png
Binary file added resources/copay/wp8/assets/SquareTile150x150.png
Binary file added resources/copay/wp8/assets/SquareTile71x71.png
Binary file added resources/copay/wp8/assets/StoreLogo.png
Binary file added resources/copay/wp8/assets/WideLogo.png
Binary file added resources/copay/wp8/assets/icon-300.png
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]
Binary file added resources/copay/wp8/assets/[email protected]