build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. apply plugin: 'com.android.application'
  2. allprojects {
  3. gradle.projectsEvaluated {
  4. tasks.withType(JavaCompile) {
  5. options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
  6. }
  7. }
  8. }
  9. android {
  10. compileSdkVersion 31
  11. defaultConfig {
  12. applicationId "com.openrsc.client"
  13. minSdkVersion 14
  14. targetSdkVersion 31
  15. multiDexEnabled false
  16. }
  17. buildTypes {
  18. release {
  19. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
  20. debuggable false
  21. jniDebuggable false
  22. renderscriptDebuggable false
  23. multiDexEnabled = true
  24. renderscriptOptimLevel = 3
  25. minifyEnabled = false
  26. }
  27. debug {
  28. multiDexEnabled = true
  29. minifyEnabled = false
  30. }
  31. }
  32. productFlavors {
  33. }
  34. compileOptions {
  35. sourceCompatibility = '1.8'
  36. targetCompatibility = '1.8'
  37. sourceCompatibility JavaVersion.VERSION_1_8
  38. targetCompatibility JavaVersion.VERSION_1_8
  39. }
  40. sourceSets {
  41. main.java.srcDirs += ['src/main/java', 'src/main/../../../../Client_Base/src']
  42. }
  43. buildToolsVersion '31.0.0'
  44. dependenciesInfo {
  45. includeInApk true
  46. includeInBundle true
  47. }
  48. namespace 'com.openrsc.client'
  49. applicationVariants.all { variant ->
  50. variant.outputs.all {
  51. outputFileName = "openrsc.apk"
  52. }
  53. }
  54. }
  55. dependencies {
  56. implementation 'com.android.support:support-v4:28.0.0'
  57. implementation 'com.android.support:coordinatorlayout:28.0.0'
  58. implementation 'android.arch.persistence.room:runtime:1.1.1'
  59. annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
  60. }
  61. task prepareKotlinBuildScriptModel {
  62. }