Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza417 committed Feb 24, 2025
1 parent 67149c2 commit 651da4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
17 changes: 7 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.devtools.ksp'
apply plugin: 'kotlin-kapt'

// Begin of reading the sensitive data
def noKeyFound = '"NO_KEY_FOUND"'
Expand Down Expand Up @@ -49,13 +48,13 @@ if (googleMapsAPIKey == noKeyFound) {

android {

compileSdk 34
compileSdk 35

defaultConfig {
applicationId "app.simple.positional"
minSdkVersion 24
//noinspection OldTargetApi
targetSdkVersion 34
targetSdkVersion 35
versionCode 180080
versionName "v180.8.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -64,10 +63,8 @@ android {
resValue "string", "googleMapsAPIKey", googleMapsAPIKey
resValue "string", "thisAppLicensingKey", thisAppLicensingKey

javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/databases/schemas".toString()]
}
ksp {
arg("room.schemaLocation", "$projectDir/databases/schemas")
}
}

Expand Down Expand Up @@ -139,7 +136,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'androidx.fragment:fragment-ktx:1.8.5'
implementation 'androidx.fragment:fragment-ktx:1.8.6'
implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0'
implementation 'androidx.webkit:webkit:1.12.1'
implementation 'androidx.recyclerview:recyclerview:1.4.0'
Expand All @@ -150,7 +147,7 @@ dependencies {

// Google Services and Default android libs
implementation 'com.google.android.gms:play-services-location:21.3.0'
implementation 'com.google.android.gms:play-services-maps:19.0.0'
implementation 'com.google.android.gms:play-services-maps:19.1.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.google.maps.android:android-maps-utils:2.2.4'
implementation 'com.google.android.play:app-update-ktx:2.1.0'
Expand All @@ -163,7 +160,7 @@ dependencies {
// Room components
implementation "androidx.room:room-ktx:2.6.1"
//noinspection KaptUsageInsteadOfKsp
kapt "androidx.room:room-compiler:2.6.1"
ksp "androidx.room:room-compiler:2.6.1"
androidTestImplementation "androidx.room:room-testing:2.6.1"

// Leak Canary -- debugImplementation because LeakCanary should only run in debug builds.
Expand Down
8 changes: 5 additions & 3 deletions app/src/main/java/app/simple/positional/util/BitmapHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ object BitmapHelper {
return updatedBitmap
}

fun rotateBitmap(bitmap: Bitmap, rotationAngleDegree: Float): Bitmap? {
fun rotateBitmap(bitmap: Bitmap, rotationAngleDegree: Float): Bitmap {
val w = bitmap.height
val h = bitmap.height
var newW = w
Expand All @@ -70,7 +70,8 @@ object BitmapHelper {
newW = h
newH = w
}
val rotatedBitmap = Bitmap.createBitmap(newW, newH, bitmap.config)
val rotatedBitmap = Bitmap.createBitmap(newW, newH, bitmap.config
?: Bitmap.Config.ARGB_8888)
val canvas = Canvas(rotatedBitmap)
val rect = Rect(0, 0, newW, newH)
val matrix = Matrix()
Expand All @@ -95,7 +96,8 @@ object BitmapHelper {
newH = w
}

val rotatedBitmap = Bitmap.createBitmap(newW, newH, bitmap.config)
val rotatedBitmap = Bitmap.createBitmap(newW, newH, bitmap.config
?: Bitmap.Config.ARGB_8888)
val canvas = Canvas(rotatedBitmap)
val rect = Rect(0, 0, newW, newH)
val matrix = Matrix()
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:8.8.0'
classpath 'com.android.tools.build:gradle:8.8.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20"
classpath 'com.google.gms:google-services:4.4.2'

Expand Down

0 comments on commit 651da4c

Please sign in to comment.