-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d10cce
commit 1cc3238
Showing
6 changed files
with
124 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "725480389193", | ||
"project_id": "koffie-f7a6c", | ||
"storage_bucket": "koffie-f7a6c.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:725480389193:android:e80fbcb1661541e8eb1d98", | ||
"android_client_info": { | ||
"package_name": "id.shaderboi.koffie" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "725480389193-mfihmtgvhb6qoebab9r84v97n3v7jd9c.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyCdjwYHL7TIpqmz_ONbGICRdPVHHY14kFY" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "725480389193-mfihmtgvhb6qoebab9r84v97n3v7jd9c.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
ext { | ||
buildVersionCode = { String versionName -> | ||
/** | ||
* Here is representation of Version code generation from version name. | ||
* | ||
* *--------- major version | ||
* | *------ minor version | ||
* | | *--- patch version | ||
* | | |*-- buildType (dev/alpha/beta/rc/release) | ||
* | | ||*- flavor - disabled. | ||
* | | ||| | ||
* X00X00XXX | ||
* so | ||
* 1.13.20-alpha-v19 = 10130201 | ||
* see details below: | ||
* *--------- 1 is major version | ||
* | *------ 13 is minor version | ||
* | | *--- 20 is patch version | ||
* | | |*-- type 1 is alpha. | ||
* | | ||*- flavor 0 (disabled) | ||
* | | ||| | ||
* 101302010 | ||
*/ | ||
|
||
def (mainPart, typeName) = versionName.toLowerCase().tokenize('-') | ||
|
||
if (typeName == null) { | ||
type = "9" | ||
} else if (typeName == "dev") { | ||
type = "0" | ||
} else if (typeName == "alpha") { | ||
type = "1" | ||
} else if (typeName == "beta") { | ||
type = "2" | ||
} else { | ||
println("Unknown build type = " + typeName + ". Please look into app/versioning.gradle.") | ||
throw new RuntimeException("Unknown type = " + typeName) | ||
} | ||
|
||
flavor = "0" // disabled | ||
|
||
int flavorDigit = 1 | ||
int typeDigit = flavorDigit * 10 | ||
int patchDigit = typeDigit * 10 | ||
int minorDigit = patchDigit * 1000 | ||
int majorDigit = minorDigit * 1000 | ||
|
||
def (major, minor, patch) = mainPart.tokenize('.') | ||
(major, minor, patch, type, flavor) = [major, minor, patch, type, flavor].collect { | ||
it.toInteger() | ||
} | ||
(major * majorDigit) + (minor * minorDigit) + (patch * patchDigit) + (type * typeDigit) + (flavor * flavorDigit) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters