Skip to content

Commit

Permalink
Merge pull request #274 from SecUSo/development
Browse files Browse the repository at this point in the history
Update to version 4.6.7
  • Loading branch information
udenr authored Jan 14, 2025
2 parents 96e4296 + ad93065 commit cdf8301
Show file tree
Hide file tree
Showing 9 changed files with 255 additions and 158 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ Thumbs.db

# APKs
*.apk

/pfa.properties
/.idea/
/app/release
20 changes: 10 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
compileSdk 34
targetSdkVersion 34
multiDexEnabled true
versionCode 50
versionName "4.6.6"
versionCode 51
versionName "4.6.7"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
buildFeatures.dataBinding = true
vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -65,20 +65,20 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.appcompat:appcompat:1.6.1' // latest version still supporting API 17; 1.7.0 requires API 21
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.material:material:1.11.0' // latest version still supporting API 17; 1.12.0 requires API 19
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // latest version still supporting API 17; 2.2.0 requires API 21
implementation 'androidx.cardview:cardview:1.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.5' // latest version still supporting API 17; 1.2.0 requires API 19
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' // latest version still supporting API 17; 3.6.0 requires API 19

implementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
implementation 'com.google.zxing:core:3.5.3'

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4'
implementation "androidx.multidex:multidex:2.0.1"

implementation 'com.github.bumptech.glide:glide:4.11.0'
Expand All @@ -91,12 +91,12 @@ dependencies {

implementation 'com.google.code.gson:gson:2.9.1' //Versions newer than 2.9 only work on API levels > 21 (https://github.com/google/gson/issues/2310). App crashes e.g. when saving a generated QR code to history on API 17.
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation "androidx.core:core-ktx:1.12.0"
implementation "androidx.core:core-ktx:1.12.0" // latest version still supporting API 17; 1.13.0 requires API 19
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2" //2.7.0+ not compatible with API < 19
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation project(path: ':backup-api')
def work_version = "2.9.0"
def work_version = "2.9.1" // latest version still supporting API 17; 2.10.0 requires API 21
implementation "androidx.work:work-runtime:$work_version"
implementation "androidx.work:work-runtime-ktx:$work_version"
androidTestImplementation "androidx.work:work-testing:$work_version"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@
android:name=".QuickTileService"
android:exported="true"
android:icon="@drawable/ic_tile"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
tools:targetApi="n">

<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.secuso.privacyfriendlycodescanner.qrscanner

import android.annotation.SuppressLint
import android.app.PendingIntent
import android.content.Intent
import android.os.Build
Expand All @@ -9,6 +10,7 @@ import com.secuso.privacyfriendlycodescanner.qrscanner.ui.activities.ScannerActi

@RequiresApi(Build.VERSION_CODES.N)
class QuickTileService : TileService() {
@SuppressLint("StartActivityAndCollapseDeprecated")
override fun onClick() {
super.onClick()

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.9.10'
ext.kotlin_version = '1.9.21'

repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
classpath 'com.android.tools.build:gradle:8.7.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"


Expand All @@ -18,7 +18,7 @@ buildscript {
}

plugins {
id 'com.google.devtools.ksp' version "$kotlin_version-1.0.13" apply false
id 'com.google.devtools.ksp' version "$kotlin_version-1.0.16" apply false
}

allprojects {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Oct 21 09:18:59 CEST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
Loading

0 comments on commit cdf8301

Please sign in to comment.