Skip to content

Commit

Permalink
Update to newly built Kotlin Client from GH Run 268
Browse files Browse the repository at this point in the history
  • Loading branch information
openapi-bot committed Apr 23, 2024
1 parent dbf4207 commit a2d27bc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# CumulocityCoreLibrary
# cumulocity-clients-kotlin

## Usage

To link the module into your Android application, modify your `settings.gradle` and your `gradle` build file as described below.

1. In `settings.gradle`, include the module `CumulocityCoreLibrary`. Optionally, you can reference the source code by linking the `projectDir` relative to your module's root directory.
1. In `settings.gradle`, include the module `cumulocity-clients-kotlin`. Optionally, you can reference the source code by linking the `projectDir` relative to your module's root directory.

```groovy
include ':CumulocityCoreLibrary'
project(":CumulocityCoreLibrary").projectDir = new File(rootDir, "relative to your projects dir/CumulocityCoreLibrary")
include ':cumulocity-clients-kotlin'
project(":cumulocity-clients-kotlin").projectDir = new File(rootDir, "relative to your projects dir/cumulocity-clients-kotlin")
```

2. Add the module dependency to your applications `build` file:

```groovy
dependencies {
implementation project(':CumulocityCoreLibrary')
implementation project(':cumulocity-clients-kotlin')
}
```

Expand All @@ -35,7 +35,7 @@ buildscript {

### Use your own domain model

The CumulocityCoreLibrary allows custom data models. The following classes are designed to be extensible:
The cumulocity-clients-kotlin allows custom data models. The following classes are designed to be extensible:

- `Alarm`, `AuditRecord`, `CategoryOptions`, `CustomProperties`, `Event`, `ManagedObject`, `Measurement`, `Operation`

Expand Down
4 changes: 2 additions & 2 deletions build-jar.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ plugins {
}

jar {
archiveBaseName = 'cumulocitycorelibrary'
archiveVersion = '-266'
archiveBaseName = 'cumulocity-clients-kotlin'
archiveVersion = '-268'
}

repositories {
Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 33
versionCode 266
versionCode 268
versionName ""

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

libraryVariants.all { variant ->
variant.packageLibraryProvider.configure { task ->
task.archiveFileName.set("cumulocity-clients-kotlin-${variant.name}-${defaultConfig.versionName}-${defaultConfig.versionCode}.aar")
}
}

buildTypes {
release {
minifyEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ import com.cumulocity.client.model.DeviceStatisticsCollection
* #### When I have a device with children are the requests counted always to the root device or separately for each child?
*
* Separately for each child.
*
* #### Why do device statistics show significantly smaller request numbers than the total number of created and updated request from usage statistics?
*
* The important aspect here is the moment of recording values for the counters. For inbound data usage statistics we count every request that passed authorization, including invalid requests, as stated in usage statistics description.
*
* For device statistics it is different. We count requests after data is successfully stored in the database (or transient), which means the request was valid and there was no problem with persistence.
*
* In summary, if you observe that your usage statistics counters are significantly larger than your device statistics counters, there is a good chance that some devices or microservices in your tenant are constantly sending invalid requests. In such a situation, the client should check the state of theirs tenant.
*/
interface DeviceStatisticsApi {

Expand Down

0 comments on commit a2d27bc

Please sign in to comment.