mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-04-01 20:07:36 +03:00
fix: Upgrade all modules to API 34 #1730
This commit is contained in:
parent
f4b7db667f
commit
8d2de40df6
7 changed files with 16 additions and 20 deletions
|
@ -6,7 +6,6 @@ apply plugin: 'kotlin-kapt'
|
|||
android {
|
||||
namespace 'com.kunzisoft.keepass'
|
||||
compileSdkVersion 34
|
||||
buildToolsVersion "33.0.2"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.kunzisoft.keepass"
|
||||
|
|
|
@ -5,13 +5,12 @@ plugins {
|
|||
|
||||
android {
|
||||
namespace 'com.kunzisoft.encrypt'
|
||||
compileSdkVersion 33
|
||||
buildToolsVersion "33.0.2"
|
||||
compileSdkVersion 34
|
||||
ndkVersion "21.4.7075529"
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 33
|
||||
targetSdkVersion 34
|
||||
multiDexEnabled true
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
|
|
@ -3,12 +3,11 @@ apply plugin: 'kotlin-android'
|
|||
|
||||
android {
|
||||
namespace 'com.kunzisoft.keepass.database'
|
||||
compileSdkVersion 33
|
||||
buildToolsVersion "33.0.2"
|
||||
compileSdkVersion 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 15
|
||||
targetSdk 33
|
||||
targetSdk 34
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
|
|
@ -3,12 +3,11 @@ apply plugin: 'kotlin-android'
|
|||
|
||||
android {
|
||||
namespace 'com.kunzisoft.keepass.icon'
|
||||
compileSdkVersion 33
|
||||
buildToolsVersion '33.0.2'
|
||||
compileSdkVersion 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 33
|
||||
targetSdkVersion 34
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
|
|
|
@ -2,12 +2,11 @@ apply plugin: 'com.android.library'
|
|||
|
||||
android {
|
||||
namespace 'com.kunzisoft.keepass.icon.classic'
|
||||
compileSdkVersion 33
|
||||
buildToolsVersion '33.0.2'
|
||||
compileSdkVersion 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 33
|
||||
targetSdkVersion 34
|
||||
}
|
||||
|
||||
resourcePrefix 'classic_'
|
||||
|
|
|
@ -2,12 +2,11 @@ apply plugin: 'com.android.library'
|
|||
|
||||
android {
|
||||
namespace 'com.kunzisoft.keepass.icon.material'
|
||||
compileSdkVersion 33
|
||||
buildToolsVersion '33.0.2'
|
||||
compileSdkVersion 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 33
|
||||
targetSdkVersion 34
|
||||
}
|
||||
|
||||
resourcePrefix 'material_'
|
||||
|
|
|
@ -19,18 +19,19 @@
|
|||
*/
|
||||
package com.kunzisoft.keepass.icon
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.content.res.Resources
|
||||
import android.util.SparseIntArray
|
||||
import java.util.*
|
||||
import java.util.Locale
|
||||
|
||||
/**
|
||||
* Class who construct dynamically database icons contains in a separate library
|
||||
*
|
||||
*
|
||||
* It only supports icons with specific nomenclature **[stringId]_[%2d]_32dp**
|
||||
* where [stringId] contains in a string xml attribute with id **resource_id** and
|
||||
* [%2d] 2 numerical numbers between 00 and 68 included,
|
||||
* It only supports icons with specific nomenclature **{stringId}_{%2d}_32dp**
|
||||
* where {stringId} contains in a string xml attribute with id **resource_id** and
|
||||
* {%2d} 2 numerical numbers between 00 and 68 included,
|
||||
*
|
||||
*
|
||||
* See *icon-pack-classic* module as sample
|
||||
|
@ -41,6 +42,7 @@ import java.util.*
|
|||
* @param packageName Context of the app to retrieve the resources
|
||||
* @param resourceId String Id of the pack (ex : com.kunzisoft.keepass.icon.classic.R.string.resource_id)
|
||||
*/
|
||||
@SuppressLint("DiscouragedApi")
|
||||
class IconPack(packageName: String, resources: Resources, resourceId: Int) {
|
||||
|
||||
private val icons: SparseIntArray = SparseIntArray()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue