Skip to content
Open
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
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module.exports = function(grunt) {
command: ' open -a open -a /Applications/Android\\ Studio.app platforms/android',
},
build_android_debug: {
command: 'cordova prepare android && cordova build android --debug',
command: 'cp google-services-debug.json google-services.json && cordova prepare android && cordova build android --debug',
},
build_android_release: {
command: 'cordova prepare android && cordova build android --release',
command: 'cp google-services-release.json google-services.json && cordova prepare android && cordova build android --release',
},
build_ios_debug: {
command: 'cordova prepare ios && cordova build ios --debug --buildFlag="-UseModernBuildSystem=0"',
Expand Down
3 changes: 2 additions & 1 deletion app-template/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ function copyDir(from, to) {

// Push Notification
fs.copySync(configDir + '/GoogleService-Info.plist', '../GoogleService-Info.plist');
fs.copySync(configDir + '/google-services.json', '../google-services.json');
fs.copySync(configDir + '/google-services-debug.json', '../google-services-debug.json');
fs.copySync(configDir + '/google-services-release.json', '../google-services-release.json')

copyDir(configDir + '/img', '../www/img/app');
copyDir(configDir + '/sass', '../src/sass/app');
Expand Down
55 changes: 55 additions & 0 deletions app-template/bitcoincom/google-services-debug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"project_info": {
"project_number": "432300239540",
"firebase_url": "https://bitcoin-com-wallet.firebaseio.com",
"project_id": "bitcoin-com-wallet",
"storage_bucket": "bitcoin-com-wallet.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:432300239540:android:e23224cd1aed3778",
"android_client_info": {
"package_name": "com.bitcoin.mwallet.debug"
}
},
"oauth_client": [
{
"client_id": "432300239540-tpp5t3pmftfvuedlphevullpentp5pbo.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.bitcoin.mwallet",
"certificate_hash": "2b6a5264cc4a58c711d09ce05273a057ed19aafd"
}
},
{
"client_id": "432300239540-aeh6b8eebnkgq0e3tv0g0a0t1qhkhhcc.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDphC3flCVFFOENAy9tMgOUFxC6_H8JWMs"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "432300239540-aeh6b8eebnkgq0e3tv0g0a0t1qhkhhcc.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}
1 change: 1 addition & 0 deletions app-template/package-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"jasmine-core": "^3.1.0",
"karma": "^2.0.2",
"karma-chrome-launcher": "^2.2.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-jasmine": "^1.1.2",
"trash-cli": "^1.4.0",
"lodash": "^4.17.4",
Expand Down
4 changes: 4 additions & 0 deletions src/android/build-extras.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ ext {
ANDROID_SUPPORT_ANNOTATIONS_VERSION = '26.1.0'
}

ext.postBuildExtras = {
android.buildTypes.debug.applicationIdSuffix = '.debug'
}

configurations.all {
resolutionStrategy {
force "com.android.support:support-v4:26.1.0"
Expand Down
2 changes: 1 addition & 1 deletion test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = function(config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
browsers: ['PhantomJS'],


// Continuous Integration mode
Expand Down