File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
package com.scrapegraphai.api.core
4
4
5
- import java.util.Properties
5
+ import com.scrapegraphai.api.client.ScrapegraphaiClient
6
6
7
7
fun getOsArch (): String {
8
8
val osArch = System .getProperty(" os.arch" )
@@ -16,7 +16,7 @@ fun getOsArch(): String {
16
16
" x86_64" -> " x64"
17
17
" arm" -> " arm"
18
18
" aarch64" -> " arm64"
19
- else -> " other:${ osArch} "
19
+ else -> " other:$osArch "
20
20
}
21
21
}
22
22
@@ -30,13 +30,13 @@ fun getOsName(): String {
30
30
osName.startsWith(" Linux" ) -> " Linux"
31
31
osName.startsWith(" Mac OS" ) -> " MacOS"
32
32
osName.startsWith(" Windows" ) -> " Windows"
33
- else -> " Other:${ osName} "
33
+ else -> " Other:$osName "
34
34
}
35
35
}
36
36
37
37
fun getOsVersion (): String = System .getProperty(" os.version" , " unknown" )
38
38
39
39
fun getPackageVersion (): String =
40
- Properties ::class .java.`package`.implementationVersion ? : " unknown"
40
+ ScrapegraphaiClient ::class .java.`package`.implementationVersion ? : " unknown"
41
41
42
42
fun getJavaVersion (): String = System .getProperty(" java.version" , " unknown" )
You can’t perform that action at this time.
0 commit comments