This commit is contained in:
LagradOst 2022-06-03 01:06:18 +02:00
parent ada48f2a98
commit b7b5c54c72
4 changed files with 11 additions and 12 deletions

View file

@ -36,7 +36,7 @@ android {
targetSdkVersion 30
versionCode 47
versionName "2.10.25"
versionName "2.10.26"
resValue "string", "app_version",
"${defaultConfig.versionName}${versionNameSuffix ?: ""}"
@ -93,12 +93,12 @@ dependencies {
testImplementation 'org.json:json:20180813'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.5.0' // dont change this to 1.6.0 it looks ugly af
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.0-beta01'
implementation 'androidx.navigation:navigation-ui-ktx:2.5.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.0-rc01'
implementation 'androidx.navigation:navigation-ui-ktx:2.5.0-rc01'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1'
testImplementation 'junit:junit:4.13.2'

View file

@ -132,11 +132,11 @@ object APIHolder {
for (api in allProviders) {
api.init()
}
APIHolder.apiMap = null
apiMap = null
}
var apis: List<MainAPI> = arrayListOf()
var apiMap: Map<String, Int>? = null
private var apiMap: Map<String, Int>? = null
private fun initMap() {
if (apiMap == null)
@ -352,7 +352,6 @@ abstract class MainAPI {
fun overrideWithNewData(data: ProvidersInfoJson) {
this.name = data.name
this.name
this.mainUrl = data.url
this.storedCredentials = data.credentials
}