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

Import versions in plugin

This commit is contained in:
Allan Wang 2019-06-07 14:52:55 -04:00
parent eb0520b4c2
commit f1301c6ee5
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56
8 changed files with 46 additions and 22 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="KotlinScriptingSettings">
<option name="isAutoReloadEnabled" value="true" />
</component>
</project>

View File

@ -10,8 +10,8 @@ apply from: '../spotless.gradle'
group = APP_GROUP
android {
compileSdkVersion kau.targetSdk
buildToolsVersion kau.buildTools
compileSdkVersion kau.Versions.targetSdk
buildToolsVersion kau.Versions.buildTools
androidGitVersion {
codeFormat = 'MMNNPPXX'
@ -21,8 +21,8 @@ android {
defaultConfig {
applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase(Locale.CANADA)
minSdkVersion kau.minSdk
targetSdkVersion kau.targetSdk
minSdkVersion kau.Versions.minSdk
targetSdkVersion kau.Versions.targetSdk
versionCode androidGitVersion.code()
versionName androidGitVersion.name()
multiDexEnabled true
@ -175,15 +175,15 @@ repositories {
dependencies {
implementation 'androidx.exifinterface:exifinterface:1.0.0'
androidTestImplementation kauDependency.kotlinTest
androidTestImplementation kauDependency.espresso
androidTestImplementation kauDependency.testRules
androidTestImplementation kauDependency.testRunner
androidTestImplementation kau.Dependencies.kotlinTest
androidTestImplementation kau.Dependencies.espresso
androidTestImplementation kau.Dependencies.testRules
androidTestImplementation kau.Dependencies.testRunner
androidTestImplementation "org.jetbrains.kotlin:kotlin-reflect:${KOTLIN}"
testImplementation kauDependency.kotlinTest
testImplementation kau.Dependencies.kotlinTest
testImplementation "org.jetbrains.kotlin:kotlin-reflect:${KOTLIN}"
testImplementation kauDependency.junit
testImplementation kau.Dependencies.junit
implementation "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN}"
@ -214,18 +214,18 @@ dependencies {
// androidTestImplementation "io.mockk:mockk:${MOCKK}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${kau.coroutines}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${kau.Versions.coroutines}"
implementation "org.apache.commons:commons-text:${COMMONS_TEXT}"
implementation "com.devbrackets.android:exomedia:${EXOMEDIA}"
implementation "com.mikepenz:fastadapter-extensions:${kau.fastAdapter}@aar"
implementation "com.mikepenz:fastadapter-extensions:${kau.Versions.fastAdapter}@aar"
//noinspection GradleDependency
implementation "com.github.bumptech.glide:okhttp3-integration:${kau.glide}"
implementation "com.github.bumptech.glide:okhttp3-integration:${kau.Versions.glide}"
//noinspection GradleDependency
kapt "com.github.bumptech.glide:compiler:${kau.glide}"
kapt "com.github.bumptech.glide:compiler:${kau.Versions.glide}"
implementation "com.fasterxml.jackson.core:jackson-databind:${JACKSON}"
@ -243,8 +243,8 @@ dependencies {
implementation "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${DBFLOW}"
//Icons
implementation "com.mikepenz:material-design-iconic-typeface:${kau.iconicsMaterial}@aar"
implementation "com.mikepenz:community-material-typeface:${kau.iconicsCommunity}@aar"
implementation "com.mikepenz:material-design-iconic-typeface:${kau.Versions.iconicsMaterial}@aar"
implementation "com.mikepenz:community-material-typeface:${kau.Versions.iconicsCommunity}@aar"
implementation "org.jsoup:jsoup:${JSOUP}"

View File

@ -7,7 +7,6 @@ buildscript {
}
dependencies {
classpath "ca.allanwang:kau:${KAU}"
// classpath 'com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02'
classpath "com.android.tools.build:gradle:${ANDROID_GRADLE}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${KOTLIN}"
@ -20,14 +19,12 @@ buildscript {
wrapper.setDistributionType(Wrapper.DistributionType.ALL)
}
apply plugin: "ca.allanwang.kau"
task clean(type: Delete) {
delete rootProject.buildDir
}
task generateChangelogMd() {
def changelog = kauChangelog.generate("${project.rootDir}/app/src/main/res/xml/frost_changelog.xml")
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")

2
buildSrc/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.gradle/
build/

14
buildSrc/build.gradle.kts Normal file
View File

@ -0,0 +1,14 @@
plugins {
`kotlin-dsl`
}
repositories {
jcenter()
maven("https://jitpack.io")
}
val KAU: String = "df94b2f"
dependencies {
implementation("ca.allanwang.kau:gradle-plugin:$KAU")
}

View File

@ -0,0 +1,3 @@
object Versions {
}

View File

@ -16,7 +16,7 @@ org.gradle.daemon = true
APP_ID=Frost
APP_GROUP=com.pitchedapps
KAU=c6a5b4e
KAU=1ac55ac
KOTLIN=1.3.31
# https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google

View File

@ -1 +1,3 @@
include(":app")
include(":app", ":gradle-plugin")
project(":gradle-plugin").projectDir = file("buildSrc")