build.gradle 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 30
  21. defaultConfig {
  22. applicationId "io.github.zadam.triliumsender"
  23. minSdkVersion 21
  24. targetSdkVersion 30
  25. versionCode 1
  26. versionName "0.1"
  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 '30.0.2'
  36. }
  37. dependencies {
  38. implementation fileTree(include: ['*.jar'], dir: 'libs')
  39. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  40. implementation 'androidx.appcompat:appcompat:1.2.0'
  41. implementation 'com.google.android.material:material:1.2.1'
  42. implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
  43. testImplementation 'junit:junit:4.13.1'
  44. androidTestImplementation 'androidx.test:runner:1.3.0'
  45. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  46. implementation("com.squareup.okhttp3:okhttp:4.9.0")
  47. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
  48. implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
  49. }