build.gradle 737 B

123456789101112131415161718192021222324252627
  1. plugins {
  2. id 'com.android.application' version '9.1.1' apply false
  3. id 'com.android.library' version '9.1.1' apply false
  4. id 'com.chaquo.python' version '17.0.0' apply false
  5. }
  6. tasks.register('clean', Delete) {
  7. delete rootProject.layout.buildDirectory
  8. }
  9. project(':app').tasks.matching { it.name ==~ /assemble.+Release/ }.configureEach {
  10. doLast {
  11. copy {
  12. from fileTree("$rootDir/app/build/outputs/apk") { include '**/release/*.apk' }
  13. into "$rootDir/Release/apk"
  14. eachFile { it.path = it.name }
  15. includeEmptyDirs = false
  16. }
  17. }
  18. }
  19. project.ext {
  20. gsonVersion = '2.13.2'
  21. glideVersion = '5.0.5'
  22. okhttpVersion = '5.3.2'
  23. media3Version = '1.10.0'
  24. }