Skip to content

Commit

Permalink
adds google-services json file which is needed to build externally
Browse files Browse the repository at this point in the history
  • Loading branch information
maksim88 committed Mar 7, 2017
1 parent 65e9e06 commit f985f36
Show file tree
Hide file tree
Showing 9 changed files with 173 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,3 @@ com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

secrets.properties
# Android
google-services.json
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ allprojects {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://jitpack.io' }
}
}

Expand Down
2 changes: 0 additions & 2 deletions library/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
/build
# Android
google-services.json
9 changes: 9 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ android {
versionCode 1
versionName "1.0"
}

lintOptions {
disable 'InvalidPackage'
}


buildTypes {
release {
minifyEnabled false
Expand All @@ -22,6 +28,9 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.2.0'
// dependency with older facebook tools
compile 'com.android.support:cardview-v7:25.2.0'
compile 'com.android.support:customtabs:25.2.0'
compile 'com.facebook.android:facebook-android-sdk:4.20.0'
compile 'com.google.android.gms:play-services-auth:10.2.0'
compile('com.twitter.sdk.android:twitter:2.3.2@aar') {
Expand Down
77 changes: 77 additions & 0 deletions library/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"project_info": {
"project_number": "",
"project_id": ""
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "",
"android_client_info": {
"package_name": "com.maksim88.easylogin"
}
},
"oauth_client": [
{
"client_id": "",
"client_type": 3
}
],
"api_key": [
{
"current_key": ""
},
{
"current_key": ""
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 1
}
}
},
{
"client_info": {
"mobilesdk_app_id": "",
"android_client_info": {
"package_name": "com.maksim88.easylogin.sample"
}
},
"oauth_client": [
{
"client_id": "",
"client_type": 3
}
],
"api_key": [
{
"current_key": ""
},
{
"current_key": ""
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 1
}
}
}
],
"configuration_version": "1"
}
2 changes: 1 addition & 1 deletion sample/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/build
/build
9 changes: 8 additions & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ android {
versionCode 1
versionName "1.0"
}

lintOptions {
disable 'InvalidPackage'
}


buildTypes {
applicationVariants.all { variant ->
variant.buildConfigField "String", "TWITTER_CONSUMER_KEY", "\""+getApiKey("TWITTER_CONSUMER_SECRET")+"\""
Expand All @@ -25,7 +31,7 @@ android {

static def getApiKey(def keyName){
def Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
props.load(new FileInputStream(new File('sample/secrets.properties')))
return props[keyName]
}

Expand All @@ -35,4 +41,5 @@ dependencies {
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:design:25.2.0'
compile project (":library")
//compile 'com.github.maksim88:EasyLogin:v0.2'
}
77 changes: 77 additions & 0 deletions sample/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"project_info": {
"project_number": "",
"project_id": ""
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "",
"android_client_info": {
"package_name": "com.maksim88.easylogin"
}
},
"oauth_client": [
{
"client_id": "",
"client_type": 3
}
],
"api_key": [
{
"current_key": ""
},
{
"current_key": ""
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 1
}
}
},
{
"client_info": {
"mobilesdk_app_id": "",
"android_client_info": {
"package_name": "com.maksim88.easylogin.sample"
}
},
"oauth_client": [
{
"client_id": "",
"client_type": 3
}
],
"api_key": [
{
"current_key": ""
},
{
"current_key": ""
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 1
}
}
}
],
"configuration_version": "1"
}
File renamed without changes.

0 comments on commit f985f36

Please sign in to comment.