File tree 4 files changed +8
-12
lines changed
library/src/main/java/cz/mroczis/netmonster/core/feature
4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ android {
27
27
}
28
28
29
29
compileOptions {
30
- sourceCompatibility JavaVersion . VERSION_1_8
31
- targetCompatibility JavaVersion . VERSION_1_8
30
+ sourceCompatibility JavaVersion . VERSION_17
31
+ targetCompatibility JavaVersion . VERSION_17
32
32
}
33
33
kotlinOptions {
34
- jvmTarget = ' 1.8 '
34
+ jvmTarget = ' 17 '
35
35
}
36
36
37
37
namespace ' cz.mroczis.netmonster.sample'
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
3
3
buildscript {
4
- ext. kotlin_version = ' 1.9.22 '
4
+ ext. kotlin_version = ' 2.1.0 '
5
5
repositories {
6
6
google()
7
7
mavenCentral()
8
8
9
9
}
10
10
dependencies {
11
- classpath ' com.android.tools.build:gradle:8.5.2 '
11
+ classpath ' com.android.tools.build:gradle:8.8.0 '
12
12
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
13
13
// NOTE: Do not place your application dependencies here; they belong
14
14
// in the individual module build.gradle files
@@ -20,8 +20,4 @@ allprojects {
20
20
google()
21
21
mavenCentral()
22
22
}
23
- }
24
-
25
- task clean (type : Delete ) {
26
- delete rootProject. buildDir
27
- }
23
+ }
Original file line number Diff line number Diff line change 1
1
# Wed Nov 02 22:18:30 CET 2022
2
2
distributionBase =GRADLE_USER_HOME
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.7 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -bin.zip
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class NrNsaStateParser {
54
54
// Android standard way to detect connection
55
55
val nrState = getStringField(serviceState, " nrState" )
56
56
/* Should be upper case by default; just in case, manufacturers tend to surprise all the time */
57
- .map { it.toUpperCase (Locale .getDefault()) }
57
+ .map { it.uppercase (Locale .getDefault()) }
58
58
59
59
val nsaStateConnected = getIntField(serviceState, " nsaState" ).contains(5 ) // Huawei Android P
60
60
val nsaStateAvailable = getIntField(serviceState, " nsaState" ).any { it in 2 .. 4 } // Huawei Android P
You can’t perform that action at this time.
0 commit comments