build.gradle 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. // Create a variable called keystorePropertiesFile, and initialize it to your
  5. // keystore.properties file, in the rootProject folder.
  6. def keystorePropertiesFile = rootProject.file("../../keys/keystore.properties")
  7. // Initialize a new Properties() object called keystoreProperties.
  8. def keystoreProperties = new Properties()
  9. // Load your keystore.properties file into the keystoreProperties object.
  10. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  11. android {
  12. signingConfigs {
  13. config {
  14. keyAlias keystoreProperties['keyAlias']
  15. keyPassword keystoreProperties['keyPassword']
  16. storeFile file(keystoreProperties['storeFile'])
  17. storePassword keystoreProperties['storePassword']
  18. }
  19. }
  20. compileSdkVersion 34
  21. defaultConfig {
  22. applicationId "io.github.zadam.triliumsender"
  23. minSdkVersion 21
  24. targetSdkVersion 34
  25. versionCode 3
  26. versionName "0.3"
  27. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  28. }
  29. buildTypes {
  30. release {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  33. }
  34. }
  35. buildToolsVersion '33.0.2'
  36. namespace 'io.github.zadam.triliumsender'
  37. compileOptions {
  38. sourceCompatibility JavaVersion.VERSION_1_8
  39. targetCompatibility JavaVersion.VERSION_1_8
  40. }
  41. kotlinOptions {
  42. jvmTarget = '1.8'
  43. }
  44. }
  45. dependencies {
  46. implementation fileTree(include: ['*.jar'], dir: 'libs')
  47. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  48. implementation 'androidx.appcompat:appcompat:1.6.1'
  49. implementation 'com.google.android.material:material:1.9.0'
  50. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  51. testImplementation 'junit:junit:4.13.2'
  52. androidTestImplementation 'androidx.test:runner:1.5.2'
  53. androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
  54. implementation("com.squareup.okhttp3:okhttp:4.9.0")
  55. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'
  56. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
  57. }