File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed
localian/src/main/kotlin/com/infinum/localian/extensions Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ ## Version 1.1.0
5
+
6
+ _ 2023-04-07_
7
+
8
+ * Fix nullability of metadata in application level manifest.
9
+
4
10
## Version 1.0.9
5
11
6
12
_ 2023-03-21_
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ Then add the following dependencies in your app `build.gradle` or `build.gradle.
28
28
29
29
** Groovy**
30
30
``` groovy
31
- implementation "com.infinum.localian:localian:1.0.9 "
31
+ implementation "com.infinum.localian:localian:1.1.0 "
32
32
```
33
33
** KotlinDSL**
34
34
``` kotlin
35
- implementation(" com.infinum.localian:localian:1.0.9 " )
35
+ implementation(" com.infinum.localian:localian:1.1.0 " )
36
36
```
37
37
38
38
## Setup
Original file line number Diff line number Diff line change 1
1
ext {
2
2
def major = 1
3
- def minor = 0
4
- def patch = 9
3
+ def minor = 1
4
+ def patch = 0
5
5
6
6
buildConfig = [
7
7
" minSdk" : 21 ,
8
8
" compileSdk" : 33 ,
9
9
" targetSdk" : 33 ,
10
- " buildTools" : " 33.0.0 "
10
+ " buildTools" : " 33.0.2 "
11
11
]
12
12
releaseConfig = [
13
13
" group" : " com.infinum.localian" ,
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ private const val KEY_FOLLOW_SYSTEM_LOCALE: String =
14
14
15
15
internal fun Context.languageTagMetadata (): String? =
16
16
info.metaData
17
- .getString(KEY_INITIAL_LANGUAGE_TAG , null )
17
+ ? .getString(KEY_INITIAL_LANGUAGE_TAG , null )
18
18
?.takeIf { it.isNotBlank() }
19
19
20
20
internal fun Context.followSystemLocaleMetadata (): Boolean =
21
21
info.metaData
22
- .getBoolean(KEY_FOLLOW_SYSTEM_LOCALE , false )
22
+ ? .getBoolean(KEY_FOLLOW_SYSTEM_LOCALE , false ) ? : false
23
23
24
24
@Suppress(" DEPRECATION" )
25
25
private val Context .info: ApplicationInfo
You can’t perform that action at this time.
0 commit comments