build.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. }
  6. android {
  7. namespace 'com.dwengine.ime'
  8. compileSdk 33
  9. defaultConfig {
  10. minSdk 21
  11. targetSdk 33
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles "consumer-rules.pro"
  14. ndk {
  15. abiFilters "arm64-v8a", "armeabi-v7a"
  16. }
  17. kapt {
  18. arguments {
  19. arg("room.schemaLocation", "$projectDir/schemas")
  20. }
  21. }
  22. setProperty("archivesBaseName", "trime-$versionName")
  23. buildConfigField("String", "BUILD_GIT_HASH", "\"gitHashShort\"")
  24. buildConfigField("String", "BUILD_GIT_REPO", "\"gitRemoteUrl\"")
  25. buildConfigField("String", "BUILD_VERSION_NAME", "\"gitVersionName}\"")
  26. buildConfigField("String", "BUILD_INFO", "\"BUILD_INFO\"")
  27. buildConfigField("String", "APPLICATION_ID", "\"com.dgty.keyboard\"")
  28. }
  29. buildFeatures {
  30. viewBinding true
  31. }
  32. buildTypes {
  33. release {
  34. minifyEnabled false
  35. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  36. }
  37. }
  38. compileOptions {
  39. sourceCompatibility JavaVersion.VERSION_1_8
  40. targetCompatibility JavaVersion.VERSION_1_8
  41. }
  42. sourceSets {
  43. main {
  44. jniLibs.srcDirs = ['libs']
  45. }
  46. }
  47. }
  48. dependencies {
  49. api fileTree(include: ['*.jar'], dir: 'libs')
  50. implementation 'androidx.appcompat:appcompat:1.6.1'
  51. implementation 'com.google.android.material:material:1.5.0'
  52. implementation 'androidx.games:games-activity:2.0.2'
  53. implementation 'androidx.preference:preference-ktx:1.2.1'
  54. implementation 'androidx.preference:preference:1.2.0'
  55. testImplementation 'junit:junit:4.13.2'
  56. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  57. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  58. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0"
  59. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
  60. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
  61. implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0'
  62. implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
  63. implementation 'com.google.android.flexbox:flexbox:3.0.0'
  64. implementation 'com.louiscad.splitties:splitties-systemservices:3.0.0'
  65. implementation("com.louiscad.splitties:splitties-bitflags:3.0.0")
  66. implementation 'androidx.room:room-runtime:2.5.0'
  67. kapt 'androidx.room:room-compiler:2.5.0'
  68. implementation 'androidx.room:room-ktx:2.5.0'
  69. implementation 'com.blankj:utilcodex:1.31.1'
  70. }