Skip to content

Commit

Permalink
Release v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-musale committed Apr 14, 2024
1 parent 05b47d4 commit f5bb71d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
26 changes: 14 additions & 12 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ ios devices without writing expect actual boilerplate code.
<th>Ios</th>
</tr>
<tr>
<td><img src = "https://github.com/swapnil-musale/KDeviceInfo/assets/15209914/230a0983-ca7b-4983-a17d-e90cc639add5" width=250/></td>
<td><img src = "https://github.com/swapnil-musale/KDeviceInfo/assets/15209914/2024b962-e3ea-4e3f-beef-81561ca8371e" width=250/></td>
<td><img src = "https://github.com/swapnil-musale/KDeviceInfo/assets/15209914/230a0983-ca7b-4983-a17d-e90cc639add5" width=250 alt="android"/></td>
<td><img src = "https://github.com/swapnil-musale/KDeviceInfo/assets/15209914/2024b962-e3ea-4e3f-beef-81561ca8371e" width=250 alt="ios"/></td>
</tr>
</table>

Expand All @@ -46,7 +46,7 @@ Add the library dependency in ```shared``` module (```build.gradle.kts```)
```
commonMain.dependencies {
...
api or implementation("io.github.swapnil-musale:KDeviceInfo:0.0.6")
api or implementation("io.github.swapnil-musale:KDeviceInfo:0.0.7")
}
```

Expand All @@ -57,7 +57,7 @@ Add the library dependency in ```composeApp``` module (```build.gradle.kts```)
```
commonMain.dependencies {
...
implementation("io.github.swapnil-musale:KDeviceInfo:0.0.6")
implementation("io.github.swapnil-musale:KDeviceInfo:0.0.7")
}
```

Expand All @@ -78,11 +78,13 @@ fun DeviceInfoExample() {
Text(text = "App Name : ${androidInfo.appName}")
Text(text = "SdkInt : ${androidInfo.version.sdkInt}")
Text(text = "PackageName : ${androidInfo.packageName}")
} else {
} else if(deviceInfoXState.isIos) {
val iosInfo = deviceInfoXState.iosInfo
Text(text = "SystemName : ${iosInfo.systemName}")
Text(text = "SystemVersion : ${iosInfo.systemVersion}")
Text(text = "IsPhysicalDevice : ${iosInfo.isPhysicalDevice}")
} else if(deviceInfoXState.isDesktop) {
Text(text = "Welcome to Desktop App")
}
}
}
Expand Down Expand Up @@ -121,11 +123,11 @@ class AppViewModel {
if (deviceInfoXState.isAndroid) {
val androidInfo: AndroidInfo = deviceInfoXState.androidInfo
println("DeviceInfoX - App Name : ${androidInfo.appName}")
println("DeviceInfoX - App Name : ${androidInfo.versionName}")
} else {
println("DeviceInfoX - Version Name : ${androidInfo.versionName}")
} else else if (deviceInfoXState.isIos) {
val iosInfo: IosInfo = deviceInfoXState.iosInfo
println("DeviceInfoX - System Name : ${iosInfo.appName}")
println("DeviceInfoX - System Name : ${iosInfo.appVersion}")
println("DeviceInfoX - App Name : ${iosInfo.appName}")
println("DeviceInfoX - App Version : ${iosInfo.appVersion}")
}
}
}
Expand All @@ -139,11 +141,11 @@ class AppViewModel {
onPlatform(
onAndroid = { androidInfo ->
println("DeviceInfoX - App Name : ${androidInfo.appName}")
println("DeviceInfoX - App Name : ${androidInfo.versionName}")
println("DeviceInfoX - Version Name : ${androidInfo.versionName}")
},
onIos = { iosInfo ->
println("DeviceInfoX - System Name : ${iosInfo.appName}")
println("DeviceInfoX - System Name : ${iosInfo.appVersion}")
println("DeviceInfoX - App Name : ${iosInfo.appName}")
println("DeviceInfoX - App Version : ${iosInfo.appVersion}")
}
)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SONATYPE_HOST=S01
RELEASE_SIGNING_ENABLED=true
SONATYPE_AUTOMATIC_RELEASE=true

VERSION_NAME=0.0.6
VERSION_NAME=0.0.7
GROUP=io.github.swapnil-musale
POM_ARTIFACT_ID=KDeviceInfo
POM_NAME=KDeviceInfo
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ androidXCore = "1.12.0"
androidxAppcompat = "1.6.1"
androidxActivityCompose = "1.8.2"
androidXCompose = "1.6.5"
kDeviceInfo = "0.0.6"
kDeviceInfo = "0.0.7"


[libraries]
Expand Down

0 comments on commit f5bb71d

Please sign in to comment.