Commit 5b76ace2 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Merge pull request #27 in THFM/fm.touhou.touhoufm from feature/THFMA-16 to development

* commit '8195d3b7':
  Adding files for [THFMA-16]
parents 3f6f4dd7 8195d3b7
import org.ajoberstar.grgit.Grgit
apply plugin: 'com.android.application'
apply plugin: 'com.github.triplet.play'
if(project.hasProperty("TouHouFM.signing")
&& new File(project.property("TouHouFM.signing") + ".gradle").exists()) {
apply from: project.property("TouHouFM.signing") + ".gradle"
}
ext {
git = Grgit.open()
gitVersionCode = git.tag.list().size()+11 // Add the base that is still on google
gitVersionName = "${git.describe()}"
}
buildscript {
repositories {
jcenter()
......@@ -28,6 +14,22 @@ buildscript {
}
}
plugins {
id 'com.android.application'
id 'com.github.triplet.play' version '2.1.0'
}
if(project.hasProperty("TouHouFM.signing")
&& new File(project.property("TouHouFM.signing") + ".gradle").exists()) {
apply from: project.property("TouHouFM.signing") + ".gradle"
}
ext {
git = Grgit.open()
gitVersionCode = git.tag.list().size()+11 // Add the base that is still on google
gitVersionName = "${git.describe()}"
}
repositories {
jcenter()
maven {
......@@ -60,11 +62,6 @@ List<String> dirs = [
'template'] // boilerplate code that is generated by the sample template process
android {
playAccountConfigs {
defaultAccountConfig {
jsonFile = file('keys.json')
}
}
compileSdkVersion 27
......@@ -76,7 +73,6 @@ android {
versionCode gitVersionCode
versionName gitVersionName
playAccountConfig = playAccountConfigs.defaultAccountConfig
}
compileOptions {
......@@ -112,3 +108,9 @@ android {
}
}
}
if(file('release.gradle').exists()) {
apply from: 'release.gradle'
}
......@@ -8,8 +8,6 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'org.ajoberstar:grgit:2.1.0'
classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment