Android SDK for Cloud Control

Have more questions? Submit a request

Cloud Control Kiosk Sample

Example usage of the signageOS Android SDK shows how to implement Kiosk mode in your Android application.

Link to the project

In the zip file is a standard Android project that can be opened in the Android Studio.

Configuration

First you need to add information to the build.gradle.kts located in the root folder:

allprojects {
    repositories {
        maven {
            setUrl("s3://${System.getenv("AWS_SHARED_MAVEN_S3_BUCKET")}/maven2/") // <<< HERE
            credentials(AwsCredentials::class.java) {
                accessKey = System.getenv("AWS_ACCESS_KEY_ID") // <<< HERE
                secretKey = System.getenv("AWS_SECRET_ACCESS_KEY") // <<< HERE
            }
            content {
                includeGroupByRegex("io\\.signageos\\..*")
            }
        }
        google()
        mavenCentral()
        jcenter()
        mavenLocal()
    }
}
  • AWS_SHARED_MAVEN_S3_BUCKET is signageos-maven-shared-repository
  • AWS_ACCESS_KEY_ID is assigned by our Support team, please reach out to us
  • AWS_SECRET_ACCESS_KEY is assigned by our Support team, please reach out to us

Build

You can build the project easily by:

./gradlew assembleDebug

Available functions

    implementation("io.signageos.cc.sdk:sdk-auto-start:0.1.0")
    implementation("io.signageos.cc.sdk:sdk-kiosk:0.1.1")
    implementation("io.signageos.cc.sdk:sdk-permissions:0.1.0")

    implementation("io.signageos.cc.api:api-client-ktx:1.0.1")

    implementation("androidx.activity:activity-ktx:1.2.0-alpha07")

    implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.8")

You can check the example usage in the Sample application available in the project above. 

Was this article helpful?
0 out of 0 found this helpful
Share