Skip to content

Commit

Permalink
Easier way to deploy files
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Apr 14, 2021
1 parent b5a74d7 commit 72cc771
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 34 deletions.
File renamed without changes.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ allprojects {
google()
}
}

def verCode = UUID.randomUUID().toString()
println verCode
31 changes: 0 additions & 31 deletions models/assets.xml

This file was deleted.

22 changes: 19 additions & 3 deletions models/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,24 @@ android {
versionCode 1
versionName "1.0"
}
buildFeatures {
buildConfig = false
}
sourceSets {
main {
assets.srcDirs += "$buildDir/generated/assets"
}
}
}

tasks.register('genUUID') {
def uuid = UUID.randomUUID().toString()
def odir = file("$buildDir/generated/assets/model-en-us")
def ofile = file("$odir/uuid")
doLast {
mkdir odir
ofile.text = uuid
}
}

ant.importBuild 'assets.xml'
preBuild.dependsOn(list, checksum)
clean.dependsOn(clean_assets)
preBuild.dependsOn(genUUID)
File renamed without changes.

0 comments on commit 72cc771

Please sign in to comment.