Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaaatt committed Oct 5, 2023
1 parent a0e1d7c commit 8265b21
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 47 deletions.
63 changes: 33 additions & 30 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def keystorePropertiesFile = rootProject.file("keystore.properties")

android {
namespace 'org.metabrainz.android'
compileSdk 33
compileSdk 34
signingConfigs {
release {
if (keystorePropertiesFile.exists()) {
Expand All @@ -25,7 +25,7 @@ android {
defaultConfig {
applicationId 'org.metabrainz.android'
minSdk 21
targetSdk 33
targetSdk 34
versionCode 56
versionName "7.0.0"

Expand Down Expand Up @@ -76,19 +76,22 @@ android {
kotlinOptions {
jvmTarget = '17'
}
lint {
abortOnError false
}
}

dependencies {
//AndroidX
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.browser:browser:1.5.0'
implementation 'androidx.recyclerview:recyclerview:1.3.0'
implementation 'androidx.browser:browser:1.6.0'
implementation 'androidx.recyclerview:recyclerview:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.preference:preference-ktx:1.2.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.core:core-splashscreen:1.0.1'

//Web Service Setup
Expand All @@ -97,25 +100,25 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.11'
implementation 'androidx.paging:paging-runtime-ktx:3.1.1'
implementation 'androidx.paging:paging-runtime-ktx:3.2.1'

//Image downloading and Caching library
implementation 'com.github.bumptech.glide:glide:4.15.1'
kapt 'com.github.bumptech.glide:compiler:4.15.1'
implementation 'com.github.bumptech.glide:glide:4.16.0'
kapt 'com.github.bumptech.glide:compiler:4.16.0'

//Fragment Setup For Kotlin
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2'

//Tagger & Metadata Setup
implementation 'info.debatty:java-string-similarity:2.0.0'

//Design Setup
implementation 'com.google.android.material:material:1.8.0'
implementation 'com.airbnb.android:lottie:6.0.0'
implementation 'com.github.akshaaatt:Onboarding:1.0.5'
implementation 'com.google.android.material:material:1.9.0'
implementation 'com.airbnb.android:lottie:6.1.0'
implementation 'com.github.akshaaatt:Onboarding:1.1.2'
implementation 'com.github.akshaaatt:Share-Android:1.0.0'

//Barcode Scan
Expand All @@ -124,34 +127,34 @@ dependencies {
//Dagger-Hilt
implementation("com.google.dagger:hilt-android:$hilt_version")
kapt("com.google.dagger:hilt-android-compiler:$hilt_version")
implementation group: 'androidx.lifecycle', name: 'lifecycle-viewmodel-ktx', version: '2.6.1'
implementation group: 'androidx.lifecycle', name: 'lifecycle-viewmodel-ktx', version: '2.6.2'
kapt("androidx.hilt:hilt-compiler:1.0.0")

//Jetpack Compose
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling:$compose_version"
implementation "androidx.compose.ui:ui-util:$compose_version"
implementation 'androidx.compose.material:material:1.4.2'
implementation 'androidx.compose.material:material-icons-extended:1.4.2'
implementation 'androidx.compose.material3:material3:1.1.0-rc01'
implementation 'androidx.compose.material3:material3-window-size-class:1.1.0-rc01'
implementation 'androidx.compose.material:material:1.5.2'
implementation 'androidx.compose.material:material-icons-extended:1.5.2'
implementation 'androidx.compose.material3:material3:1.2.0-alpha08'
implementation 'androidx.compose.material3:material3-window-size-class:1.2.0-alpha08'
implementation "androidx.compose.animation:animation:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation 'androidx.constraintlayout:constraintlayout-compose:1.0.1'
implementation 'androidx.navigation:navigation-compose:2.6.0-beta01'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1'
implementation 'androidx.navigation:navigation-compose:2.7.3'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2'
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0'
implementation 'io.coil-kt:coil-compose:2.3.0'
implementation 'com.airbnb.android:lottie-compose:6.0.0'
implementation 'androidx.navigation:navigation-compose:2.6.0-beta01'
implementation 'io.coil-kt:coil-compose:2.4.0'
implementation 'com.airbnb.android:lottie-compose:6.1.0'
implementation 'androidx.navigation:navigation-compose:2.7.3'

//Test Setup
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.squareup.okhttp3:mockwebserver:5.0.0-alpha.7'
testImplementation 'androidx.arch.core:core-testing:2.2.0'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4'
testImplementation 'androidx.room:room-testing:2.5.1'
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3'
testImplementation 'androidx.room:room-testing:2.5.2'

androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
Expand All @@ -161,10 +164,10 @@ dependencies {
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"

//Room db
implementation 'androidx.room:room-runtime:2.5.1'
kapt 'androidx.room:room-compiler:2.5.1'
implementation 'androidx.room:room-ktx:2.5.1'
implementation 'androidx.room:room-runtime:2.5.2'
kapt 'androidx.room:room-compiler:2.5.2'
implementation 'androidx.room:room-ktx:2.5.2'

// Jetpack Compose accompanists (https://github.com/google/accompanist)
implementation 'com.google.accompanist:accompanist-systemuicontroller:0.30.0'
implementation 'com.google.accompanist:accompanist-systemuicontroller:0.32.0'
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package org.metabrainz.android.ui.screens.settings

import android.graphics.drawable.ColorDrawable
import android.os.Build
import android.os.Bundle
import android.provider.Settings
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
Expand Down Expand Up @@ -36,10 +34,6 @@ class SettingsActivity : AppCompatActivity() {
}
}

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1){
ACTION_NOTIFICATION_LISTENER_SETTINGS = Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS
}

preferenceChangeListener = Preference.OnPreferenceChangeListener { preference: Preference, newValue: Any ->
// Explicit Ui Mode functionality.
if (preference.key == PREFERENCE_SYSTEM_THEME){
Expand Down Expand Up @@ -72,8 +66,4 @@ class SettingsActivity : AppCompatActivity() {
else -> super.onOptionsItemSelected(item)
}
}

companion object {
private var ACTION_NOTIFICATION_LISTENER_SETTINGS = "android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"
}
}
2 changes: 0 additions & 2 deletions app/src/main/java/org/metabrainz/android/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ package org.metabrainz.android.ui.theme

import android.app.Activity
import android.content.Context
import android.view.Window
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalView
import androidx.core.view.WindowCompat
import androidx.preference.PreferenceManager
import com.google.accompanist.systemuicontroller.SystemUiController
import com.google.accompanist.systemuicontroller.rememberSystemUiController
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,4 @@
<string name="title_current_track">Current Track</string>
<string name="title_image_size">Image size</string>
<string name="title_image_scale_type">Scale type</string>
<string name="brainzplayer_notification_channel_name">BrainzPlayer Now Playing</string>
<string name="brainzplayer_notification_channel_description">Currently Playing Song Controls</string>
</resources>
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
buildscript {
ext {
kotlin_version = '1.8.20'
navigationVersion = '2.5.3'
hilt_version = '2.45'
compose_version = '1.4.2'
navigationVersion = '2.7.3'
hilt_version = '2.48'
compose_version = '1.5.2'
}
repositories {
google()
Expand Down

0 comments on commit 8265b21

Please sign in to comment.