Add google play servie support for free osmand and only for published on google play version
This commit is contained in:
parent
5c9914b881
commit
32f0b0b298
4 changed files with 51 additions and 2 deletions
|
@ -73,9 +73,9 @@ public class BinaryInspector {
|
||||||
if ("test".equals(args[0])) {
|
if ("test".equals(args[0])) {
|
||||||
in.inspector(new String[] {
|
in.inspector(new String[] {
|
||||||
// "-vpoi",
|
// "-vpoi",
|
||||||
"-vmap", "-vmapobjects", // "-vmapcoordinates",
|
// "-vmap", "-vmapobjects", // "-vmapcoordinates",
|
||||||
// "-vrouting",
|
// "-vrouting",
|
||||||
// "-vtransport",
|
"-vtransport",
|
||||||
// "-vaddress", "-vcities","-vstreetgroups",
|
// "-vaddress", "-vcities","-vstreetgroups",
|
||||||
// "-vstreets", "-vbuildings", "-vintersections",
|
// "-vstreets", "-vbuildings", "-vintersections",
|
||||||
// "-lang=ru",
|
// "-lang=ru",
|
||||||
|
|
|
@ -352,6 +352,8 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(path: ':OsmAnd-java', configuration: 'android')
|
compile project(path: ':OsmAnd-java', configuration: 'android')
|
||||||
|
|
||||||
|
|
||||||
// compile project(':eclipse-compile:design')
|
// compile project(':eclipse-compile:design')
|
||||||
// compile project(':eclipse-compile:cardview')
|
// compile project(':eclipse-compile:cardview')
|
||||||
// compile project(':eclipse-compile:gridlayout')
|
// compile project(':eclipse-compile:gridlayout')
|
||||||
|
@ -366,3 +368,7 @@ dependencies {
|
||||||
qtcoreCompile "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar"
|
qtcoreCompile "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar"
|
||||||
qtcoreCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar"
|
qtcoreCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar"
|
||||||
}
|
}
|
||||||
|
if(System.getenv("APP_FEATURES") && System.getenv("APP_FEATURES").contains("+play_market") &&
|
||||||
|
System.getenv("PACKAGE_TO_BUILT").equals("net.osmand")) {
|
||||||
|
apply plugin: 'com.google.gms.google-services'
|
||||||
|
}
|
||||||
|
|
42
OsmAnd/google-services.json
Normal file
42
OsmAnd/google-services.json
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"project_info": {
|
||||||
|
"project_number": "521675454867",
|
||||||
|
"firebase_url": "https://osmand-1e236.firebaseio.com",
|
||||||
|
"project_id": "osmand-1e236",
|
||||||
|
"storage_bucket": "osmand-1e236.appspot.com"
|
||||||
|
},
|
||||||
|
"client": [
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:521675454867:android:be0477f14dc015f4",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "net.osmand"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "521675454867-ttjur3617a74qj0a9rkbkbcjavvuebjp.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyBMaRMiPY-mS3J_-aX30sRBFB-WGIm-M-U"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"analytics_service": {
|
||||||
|
"status": 1
|
||||||
|
},
|
||||||
|
"appinvite_service": {
|
||||||
|
"status": 1,
|
||||||
|
"other_platform_oauth_client": []
|
||||||
|
},
|
||||||
|
"ads_service": {
|
||||||
|
"status": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"configuration_version": "1"
|
||||||
|
}
|
|
@ -4,6 +4,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.1.3'
|
classpath 'com.android.tools.build:gradle:2.1.3'
|
||||||
|
classpath 'com.google.gms:google-services:3.0.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue