mirror of https://github.com/BTCPrivate/copay.git
Bring mobile back to life
This commit is contained in:
parent
82acccce2a
commit
ef51227cda
|
@ -1,13 +1,19 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<manifest android:hardwareAccelerated="true" android:versionCode="12" android:versionName="0.6.1" android:windowSoftInputMode="adjustPan" package="com.bitpay.copay" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="1" 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" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<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="singleInstance" android:name="Copay" android:theme="@android:style/Theme.Black.NoTitleBar">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<intent-filter android:label="Send Bitcoins">
|
||||
<data android:scheme="bitcoin"/>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:clearTaskOnLaunch="true" android:configChanges="orientation|keyboardHidden" android:exported="false" android:name="com.google.zxing.client.android.CaptureActivity" android:screenOrientation="landscape" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:windowSoftInputMode="stateAlwaysHidden">
|
||||
<intent-filter>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<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">
|
||||
<widget id="com.bitpay.copay" version="0.6.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" android-versionCode="12">
|
||||
<name>Copay</name>
|
||||
<description>
|
||||
A secure bitcoin wallet for friends and companies.
|
||||
|
@ -13,4 +13,5 @@
|
|||
<preference name="SplashScreenDelay" value="10000" />
|
||||
<preference name="backgroundColor" value="0x2C3E50" />
|
||||
<preference name="StatusBarOverlaysWebView" value="false" />
|
||||
<preference name="AndroidLaunchMode" value="singleTop" />
|
||||
</widget>
|
||||
|
|
|
@ -65,6 +65,9 @@
|
|||
<script src="lib/vendors.js"></script>
|
||||
<script src="lib/angularjs-all.js"></script>
|
||||
|
||||
<!-- DO NOT DELETE THIS COMMET -->
|
||||
<!-- PLACEHOLDER: CORDOVA SRIPT -->
|
||||
|
||||
<script src="config.js"></script>
|
||||
<script src="js/copayBundle.js"></script>
|
||||
<script src="js/copayMain.js"></script>
|
||||
|
|
|
@ -17,13 +17,7 @@ function onDeviceReady() {
|
|||
|
||||
function handleBitcoinURI(url) {
|
||||
if (!url) return;
|
||||
|
||||
var body = document.getElementsByTagName('nav')[0];
|
||||
var $rootScope = angular.element(body).scope();
|
||||
$rootScope.pendingPayment = new bitcore.BIP21(url);
|
||||
|
||||
// Redirect or reload controller (if already there)
|
||||
window.location = ($rootScope.wallet ? '#!/send' : '#!/open') + '?r=' + Math.random();
|
||||
window.location = '#!/uri-payment/' + encodeURIComponent(url);
|
||||
}
|
||||
|
||||
window.plugins.webintent.getUri(handleBitcoinURI);
|
||||
|
|
Loading…
Reference in New Issue