@@ -22,51 +22,6 @@ Smithy code generators for Kotlin.
2222* Kotlin-language specific utility functions: ` software.amazon.smithy.kotlin.codegen.lang `
2323* Smithy-based codegen utility functions: ` smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/Utils.kt `
2424
25- ### Android Integration Tests
26-
27- The client-runtime is meant to be compatible with and run on Android API 16+ devices.
28- Later versions of the Android may contain security fixes so consider reviewing
29- known vulnerabilities for the Android versions you choose to support in your
30- application.
31-
32- The ` android-test ` project can be run manually with the script below.
33-
34- NOTE: Set ` ANDROID_SDK ` environment variable beforehand.
35-
36- ```
37- #!/bin/bash
38- ANDROID_SDK=${ANDROID_SDK:=~/Library/Android/sdk}
39- PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
40-
41- # start the emulator
42- $ANDROID_SDK/emulator/emulator -avd Nexus_4_API_16 -wipe-data & EMULATOR_PID=$!
43-
44- # Wait for Android to finish booting
45- WAIT_CMD="$ANDROID_SDK/platform-tools/adb wait-for-device shell getprop init.svc.bootanim"
46- until $WAIT_CMD | grep -m 1 stopped; do
47- echo "Waiting..."
48- sleep 1
49- done
50-
51- # Unlock the Lock Screen
52- $ANDROID_SDK/platform-tools/adb shell input keyevent 82
53-
54- # Clear and capture logcat
55- $ANDROID_SDK/platform-tools/adb logcat -c
56- $ANDROID_SDK/platform-tools/adb logcat > build/logcat.log &
57- LOGCAT_PID=$!
58-
59- cd ./smithy-kotlin
60- # Run the tests
61- ./gradlew -DandroidEmulatorTests=true :android-test:connectedAndroidTest -i
62-
63- cd ..
64-
65- # Stop the background processes
66- kill -9 $LOGCAT_PID
67- kill -9 $EMULATOR_PID
68- ```
69-
7025## License
7126
7227This project is licensed under the Apache-2.0 License.
0 commit comments