Skip to content

Commit c0d2175

Browse files
author
Bojan
committed
* Fix nullability of metadata in application level manifest.
1 parent 873753c commit c0d2175

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
## Version 1.1.0
5+
6+
_2023-04-07_
7+
8+
* Fix nullability of metadata in application level manifest.
9+
410
## Version 1.0.9
511

612
_2023-03-21_

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ Then add the following dependencies in your app `build.gradle` or `build.gradle.
2828

2929
**Groovy**
3030
```groovy
31-
implementation "com.infinum.localian:localian:1.0.9"
31+
implementation "com.infinum.localian:localian:1.1.0"
3232
```
3333
**KotlinDSL**
3434
```kotlin
35-
implementation("com.infinum.localian:localian:1.0.9")
35+
implementation("com.infinum.localian:localian:1.1.0")
3636
```
3737

3838
## Setup

config.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ext {
22
def major = 1
3-
def minor = 0
4-
def patch = 9
3+
def minor = 1
4+
def patch = 0
55

66
buildConfig = [
77
"minSdk" : 21,
88
"compileSdk": 33,
99
"targetSdk" : 33,
10-
"buildTools": "33.0.0"
10+
"buildTools": "33.0.2"
1111
]
1212
releaseConfig = [
1313
"group" : "com.infinum.localian",

localian/src/main/kotlin/com/infinum/localian/extensions/Context.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ private const val KEY_FOLLOW_SYSTEM_LOCALE: String =
1414

1515
internal fun Context.languageTagMetadata(): String? =
1616
info.metaData
17-
.getString(KEY_INITIAL_LANGUAGE_TAG, null)
17+
?.getString(KEY_INITIAL_LANGUAGE_TAG, null)
1818
?.takeIf { it.isNotBlank() }
1919

2020
internal fun Context.followSystemLocaleMetadata(): Boolean =
2121
info.metaData
22-
.getBoolean(KEY_FOLLOW_SYSTEM_LOCALE, false)
22+
?.getBoolean(KEY_FOLLOW_SYSTEM_LOCALE, false) ?: false
2323

2424
@Suppress("DEPRECATION")
2525
private val Context.info: ApplicationInfo

0 commit comments

Comments
 (0)