mirror of https://github.com/BTCPrivate/copay.git
Config for iOS. URI handler for bitcoin urls. Fix config.xml
This commit is contained in:
parent
2063f74dab
commit
e0e5596bb0
|
@ -67,6 +67,9 @@ if [ ! -d $PROJECT ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${OpenColor}${Green}* Installing plugins... ${CloseColor}"
|
echo "${OpenColor}${Green}* Installing plugins... ${CloseColor}"
|
||||||
|
|
||||||
|
cordova plugin add https://github.com/Initsogar/cordova-webintent.git
|
||||||
|
checkOK
|
||||||
|
|
||||||
cordova plugin add https://github.com/wildabeast/BarcodeScanner.git
|
cordova plugin add https://github.com/wildabeast/BarcodeScanner.git
|
||||||
checkOK
|
checkOK
|
||||||
|
@ -77,6 +80,9 @@ if [ ! -d $PROJECT ]; then
|
||||||
cordova plugin add org.apache.cordova.statusbar
|
cordova plugin add org.apache.cordova.statusbar
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
|
cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=bitcoin
|
||||||
|
checkOK
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
||||||
|
@ -102,19 +108,22 @@ checkOK
|
||||||
cp android/AndroidManifest.xml $PROJECT/platforms/android/AndroidManifest.xml
|
cp android/AndroidManifest.xml $PROJECT/platforms/android/AndroidManifest.xml
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
#cp android/project.properties $PROJECT/platforms/android/project.properties
|
cp android/project.properties $PROJECT/platforms/android/project.properties
|
||||||
#checkOK
|
checkOK
|
||||||
|
|
||||||
cp -R android/res/* $PROJECT/platforms/android/res
|
cp -R android/res/* $PROJECT/platforms/android/res
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
mkdir -p $PROJECT/platforms/ios/Copay/Resources/icons
|
|
||||||
checkOK
|
|
||||||
|
|
||||||
mkdir -p $PROJECT/platforms/ios/Copay/Resources/splash
|
|
||||||
checkOK
|
|
||||||
|
|
||||||
if [[ !$SKIPIOS ]]; then
|
if [[ !$SKIPIOS ]]; then
|
||||||
|
cp ios/Copay-Info.plist $PROJECT/platforms/ios/Copay-Info.plist
|
||||||
|
checkOK
|
||||||
|
|
||||||
|
mkdir -p $PROJECT/platforms/ios/Copay/Resources/icons
|
||||||
|
checkOK
|
||||||
|
|
||||||
|
mkdir -p $PROJECT/platforms/ios/Copay/Resources/splash
|
||||||
|
checkOK
|
||||||
|
|
||||||
cp -R ios/icons/* $PROJECT/platforms/ios/Copay/Resources/icons
|
cp -R ios/icons/* $PROJECT/platforms/ios/Copay/Resources/icons
|
||||||
checkOK
|
checkOK
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,21 @@
|
||||||
<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" />
|
||||||
<preference name="StatusBarBackgroundColor" value="#3C4E60" />
|
<preference name="StatusBarBackgroundColor" value="0x3C4E60" />
|
||||||
<preference name="StatusBarStyle" value="lightcontent" />
|
<preference name="StatusBarStyle" value="lightcontent" />
|
||||||
|
<feature name="App">
|
||||||
|
<param name="android-package" value="com.bitpay.copay" />
|
||||||
|
</feature>
|
||||||
|
<feature name="WebIntent">
|
||||||
|
<param name="android-package" value="com.borismus.webintent.WebIntent" />
|
||||||
|
</feature>
|
||||||
|
<feature name="BarcodeScanner">
|
||||||
|
<param name="android-package" value="com.phonegap.plugins.barcodescanner.BarcodeScanner" />
|
||||||
|
</feature>
|
||||||
|
<feature name="SplashScreen">
|
||||||
|
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
|
||||||
|
</feature>
|
||||||
|
<feature name="StatusBar">
|
||||||
|
<param name="android-package" onload="true" value="org.apache.cordova.statusbar.StatusBar" />
|
||||||
|
</feature>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -0,0 +1,83 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>icon.png</string>
|
||||||
|
<key>CFBundleIcons</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundlePrimaryIcon</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>icon-40</string>
|
||||||
|
<string>icon-small</string>
|
||||||
|
<string>icon-60</string>
|
||||||
|
<string>icon.png</string>
|
||||||
|
<string>icon@2x</string>
|
||||||
|
<string>icon-72</string>
|
||||||
|
<string>icon-72@2x</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>CFBundleIcons~ipad</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundlePrimaryIcon</key>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleIconFiles</key>
|
||||||
|
<array>
|
||||||
|
<string>icon-small</string>
|
||||||
|
<string>icon-40</string>
|
||||||
|
<string>icon-50</string>
|
||||||
|
<string>icon-76</string>
|
||||||
|
<string>icon-60</string>
|
||||||
|
<string>icon</string>
|
||||||
|
<string>icon@2x</string>
|
||||||
|
<string>icon-72</string>
|
||||||
|
<string>icon-72@2x</string>
|
||||||
|
</array>
|
||||||
|
<key>UIPrerenderedIcon</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.bitpay.copay</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${PRODUCT_NAME}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>0.8.2</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>0.8.2</string>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>NSMainNibFile</key>
|
||||||
|
<string></string>
|
||||||
|
<key>NSMainNibFile~ipad</key>
|
||||||
|
<string></string>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
13
js/init.js
13
js/init.js
|
@ -8,9 +8,18 @@ angular.element(document).ready(function() {
|
||||||
if (window.cordova !== undefined) {
|
if (window.cordova !== undefined) {
|
||||||
document.addEventListener('deviceready', function() {
|
document.addEventListener('deviceready', function() {
|
||||||
setTimeout(function(){ navigator.splashscreen.hide(); }, 2000);
|
setTimeout(function(){ navigator.splashscreen.hide(); }, 2000);
|
||||||
|
|
||||||
|
function handleBitcoinURI(url) {
|
||||||
|
if (!url) return;
|
||||||
|
window.location = '#!/uri-payment/' + url;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.plugins.webintent.getUri(handleBitcoinURI);
|
||||||
|
window.plugins.webintent.onNewIntent(handleBitcoinURI);
|
||||||
|
window.handleOpenURL = handleBitcoinURI;
|
||||||
|
|
||||||
startAngular();
|
startAngular();
|
||||||
});
|
}, false);
|
||||||
} else {
|
} else {
|
||||||
startAngular();
|
startAngular();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue