1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-08 20:12:39 +01:00
Frost-for-Facebook/build.gradle

37 lines
1.2 KiB
Groovy
Raw Normal View History

2017-05-30 00:05:26 +02:00
buildscript {
repositories {
google()
2021-08-30 06:57:13 +02:00
mavenCentral()
maven { url "https://jitpack.io" }
maven { url "https://plugins.gradle.org/m2/" }
2017-05-30 00:05:26 +02:00
}
2017-05-30 00:05:26 +02:00
dependencies {
2019-06-07 21:13:18 +02:00
classpath kau.Plugins.android
2019-06-08 08:10:02 +02:00
classpath kau.Plugins.kotlin
classpath kau.Plugins.spotless
2020-10-04 12:09:10 +02:00
classpath kau.Plugins.dexCount
2021-04-18 02:08:19 +02:00
classpath kau.Plugins.hilt
2019-06-08 08:10:02 +02:00
classpath kau.Plugins.gitVersion
2018-03-26 00:03:15 +02:00
}
wrapper.setDistributionType(Wrapper.DistributionType.ALL)
2017-05-30 00:05:26 +02:00
}
task generateChangelogMd() {
2019-06-07 20:52:55 +02:00
def changelog = kau.ChangelogGenerator.generate("${project.rootDir}/app/src/main/res/xml/frost_changelog.xml", "${project.rootDir}/docs/Changelog.md")
// If we have no changelog, something is wrong
def entry = changelog[0]
def whatsNewFile = new File("${project.rootDir}/app/src/main/play/en-US/whatsnew")
if (!whatsNewFile.exists()) {
// Throw exceptions so that moving this file will require us to update the script
throw new RuntimeException("Whatsnew file not found")
}
whatsNewFile.withWriter { writer ->
writer.write(entry.version)
writer.write("\n")
entry.items.each {
writer.write("\n* ${it}")
}
}
2020-03-02 08:22:58 +01:00
}