Explitly declare dependencies
Explicitly declare some dependencies that were originally implicit, resolving some future build issues.
This commit is contained in:
+31
-26
@@ -1,7 +1,7 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'androidx.navigation.safeargs'
|
||||
apply plugin: "com.android.application"
|
||||
apply plugin: "kotlin-android"
|
||||
apply plugin: "kotlin-kapt"
|
||||
apply plugin: "androidx.navigation.safeargs"
|
||||
|
||||
android {
|
||||
compileSdkVersion 30
|
||||
@@ -23,13 +23,13 @@ android {
|
||||
debug {
|
||||
debuggable true
|
||||
|
||||
applicationIdSuffix = '.debug'
|
||||
applicationIdSuffix = ".debug"
|
||||
versionNameSuffix = "-DEBUG"
|
||||
}
|
||||
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,39 +53,44 @@ afterEvaluate {
|
||||
dependencies {
|
||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
||||
|
||||
// FIXME: A good chunk of the dependencies I use are implicit,
|
||||
// I may want to explicitly declare them to avoid any annoying build issues in the future.
|
||||
|
||||
// Kotlin
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
|
||||
// --- SUPPORT ---
|
||||
|
||||
// General
|
||||
implementation 'androidx.core:core-ktx:1.3.2'
|
||||
implementation 'androidx.activity:activity-ktx:1.3.0-alpha04'
|
||||
implementation 'androidx.fragment:fragment-ktx:1.3.0' // Don't upgrade until they fix the launcher issue
|
||||
|
||||
// Layout
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||||
implementation "androidx.core:core-ktx:1.3.2"
|
||||
implementation "androidx.appcompat:appcompat:1.2.0"
|
||||
implementation "androidx.activity:activity-ktx:1.2.1"
|
||||
implementation "androidx.fragment:fragment-ktx:1.3.1"
|
||||
|
||||
// UI
|
||||
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
|
||||
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
|
||||
|
||||
// Lifecycle
|
||||
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
|
||||
def lifecycle_version = "2.3.0"
|
||||
implementation "androidx.lifecycle:lifecycle-common:$lifecycle_version"
|
||||
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
||||
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
|
||||
|
||||
// Navigation
|
||||
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
|
||||
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
|
||||
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
|
||||
|
||||
// Media
|
||||
// TODO: Migrate to media2 once NewPipe implements it so I can figure out how it works
|
||||
implementation 'androidx.media:media:1.2.1'
|
||||
// TODO: Migrate to media2 when I can figure out how to use it
|
||||
implementation "androidx.media:media:1.2.1"
|
||||
|
||||
// Preferences
|
||||
implementation 'androidx.preference:preference-ktx:1.1.1'
|
||||
implementation "androidx.preference:preference-ktx:1.1.1"
|
||||
|
||||
// Opening links
|
||||
implementation 'androidx.browser:browser:1.3.0'
|
||||
implementation "androidx.browser:browser:1.3.0"
|
||||
|
||||
// --- THIRD PARTY ---
|
||||
|
||||
@@ -95,15 +100,15 @@ dependencies {
|
||||
implementation "com.google.android.exoplayer:extension-mediasession:$exoplayer_version"
|
||||
|
||||
// Image loading
|
||||
implementation 'io.coil-kt:coil:1.1.1'
|
||||
implementation "io.coil-kt:coil:1.1.1"
|
||||
|
||||
// Material
|
||||
implementation 'com.google.android.material:material:1.3.0'
|
||||
implementation "com.google.android.material:material:1.3.0"
|
||||
|
||||
// Dialogs
|
||||
// TODO: Eliminate these, don't want their bloat.
|
||||
implementation 'com.afollestad.material-dialogs:core:3.3.0'
|
||||
implementation 'com.afollestad.material-dialogs:files:3.3.0'
|
||||
implementation "com.afollestad.material-dialogs:core:3.3.0"
|
||||
implementation "com.afollestad.material-dialogs:files:3.3.0"
|
||||
|
||||
// --- DEBUG ---
|
||||
|
||||
@@ -111,7 +116,7 @@ dependencies {
|
||||
ktlint "com.pinterest:ktlint:0.40.0"
|
||||
|
||||
// Memory Leak checking
|
||||
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
|
||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.5"
|
||||
}
|
||||
|
||||
task ktlint(type: JavaExec, group: "verification") {
|
||||
|
||||
Reference in New Issue
Block a user