Open-source alternative Instagram client on Android. More maintainers needed!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. apply plugin: 'com.android.application'
  2. apply plugin: "androidx.navigation.safeargs"
  3. apply from: 'sentry.gradle'
  4. android {
  5. compileSdkVersion 29
  6. defaultConfig {
  7. applicationId 'me.austinhuang.instagrabber'
  8. minSdkVersion 21
  9. targetSdkVersion 29
  10. versionCode 60
  11. versionName '19.1.0'
  12. multiDexEnabled true
  13. vectorDrawables.useSupportLibrary = true
  14. vectorDrawables.generatedDensities = []
  15. javaCompileOptions {
  16. annotationProcessorOptions {
  17. arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
  18. }
  19. }
  20. }
  21. compileOptions {
  22. // Flag to enable support for the new language APIs
  23. coreLibraryDesugaringEnabled true
  24. targetCompatibility JavaVersion.VERSION_1_8
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. }
  27. buildFeatures { viewBinding true }
  28. aaptOptions { additionalParameters '--no-version-vectors' }
  29. buildTypes {
  30. debug {
  31. minifyEnabled true
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. release {
  35. minifyEnabled true
  36. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. flavorDimensions "repo"
  40. productFlavors {
  41. github {
  42. dimension "repo"
  43. versionNameSuffix "-github"
  44. buildConfigField("String", "dsn", SENTRY_DSN)
  45. }
  46. fdroid {
  47. dimension "repo"
  48. versionNameSuffix "-fdroid"
  49. }
  50. }
  51. }
  52. configurations.all {
  53. resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
  54. }
  55. dependencies {
  56. coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
  57. def appcompat_version = "1.2.0"
  58. def nav_version = '2.3.4'
  59. def exoplayer_version = '2.13.2'
  60. implementation 'com.google.android.material:material:1.4.0-alpha01'
  61. implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version"
  62. implementation "com.google.android.exoplayer:exoplayer-dash:$exoplayer_version"
  63. implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayer_version"
  64. implementation "androidx.appcompat:appcompat:$appcompat_version"
  65. implementation "androidx.appcompat:appcompat-resources:$appcompat_version"
  66. implementation "androidx.recyclerview:recyclerview:1.2.0-beta02"
  67. implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  68. implementation "androidx.viewpager2:viewpager2:1.0.0"
  69. implementation "androidx.navigation:navigation-fragment:$nav_version"
  70. implementation "androidx.navigation:navigation-ui:$nav_version"
  71. implementation "androidx.constraintlayout:constraintlayout:2.0.4"
  72. implementation "androidx.preference:preference:1.1.1"
  73. implementation "androidx.work:work-runtime:2.5.0"
  74. implementation 'androidx.palette:palette:1.0.0'
  75. implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
  76. implementation 'com.google.guava:guava:27.0.1-android'
  77. // Room
  78. def room_version = "2.2.6"
  79. implementation "androidx.room:room-runtime:$room_version"
  80. implementation "androidx.room:room-guava:$room_version"
  81. annotationProcessor "androidx.room:room-compiler:$room_version"
  82. // CameraX
  83. def camerax_version = "1.1.0-alpha03"
  84. implementation "androidx.camera:camera-camera2:$camerax_version"
  85. implementation "androidx.camera:camera-lifecycle:$camerax_version"
  86. implementation "androidx.camera:camera-view:1.0.0-alpha22"
  87. // EmojiCompat
  88. def emoji_compat_version = "1.1.0"
  89. implementation "androidx.emoji:emoji:$emoji_compat_version"
  90. implementation "androidx.emoji:emoji-appcompat:$emoji_compat_version"
  91. implementation 'me.austinhuang:AutoLinkTextViewV2:-SNAPSHOT'
  92. implementation 'com.facebook.fresco:fresco:2.3.0'
  93. implementation 'com.facebook.fresco:animated-webp:2.3.0'
  94. implementation 'com.facebook.fresco:webpsupport:2.3.0'
  95. implementation 'com.squareup.retrofit2:retrofit:2.9.0'
  96. implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
  97. implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
  98. implementation 'org.apache.commons:commons-imaging:1.0-alpha2'
  99. implementation 'com.github.ammargitham:uCrop:2.3-native-beta-2'
  100. implementation 'com.github.ammargitham:android-gpuimage:2.1.1-beta4'
  101. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.6'
  102. githubImplementation 'io.sentry:sentry-android:4.3.0'
  103. testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
  104. }