build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 32
  6. defaultConfig {
  7. applicationId "com.sikey.skvideo"
  8. minSdk 27
  9. targetSdk 32
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. compileOptions {
  21. sourceCompatibility JavaVersion.VERSION_1_8
  22. targetCompatibility JavaVersion.VERSION_1_8
  23. }
  24. android.applicationVariants.all { variant ->
  25. variant.outputs.all {
  26. outputFileName = "skvideo.apk"
  27. }
  28. }
  29. sourceSets {
  30. main {
  31. jniLibs.srcDirs = ['libs']
  32. }
  33. }
  34. }
  35. String SDK_DIR = System.getenv("ANDROID_SDK_HOME")
  36. if(SDK_DIR == null) {
  37. Properties properties = new Properties()
  38. properties.load(new FileInputStream(project.rootProject.file("local.properties")))
  39. SDK_DIR = properties.get('sdk.dir')
  40. }
  41. dependencies {
  42. implementation 'androidx.appcompat:appcompat:1.4.1'
  43. implementation 'com.google.android.material:material:1.6.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  45. testImplementation 'junit:junit:4.13.2'
  46. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  47. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  48. compileOnly(files("${SDK_DIR}/platforms/android-24/data/layoutlib.jar"))
  49. implementation(fileTree("libs"))
  50. implementation 'com.makeramen:roundedimageview:2.3.0'
  51. implementation 'com.google.code.gson:gson:2.8.0'
  52. implementation 'com.makeramen:roundedimageview:2.3.0'
  53. //implementation 'io.github.juphoon-app:jcsdk:x.y.z'
  54. }