Skip to content

Commit db1d165

Browse files
authored
chore: rm defunct android integration tests (#544)
1 parent fdac84b commit db1d165

File tree

11 files changed

+1
-451
lines changed

11 files changed

+1
-451
lines changed

README.md

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -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

7227
This project is licensed under the Apache-2.0 License.

android-test/android/src/AndroidManifest.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

android-test/build.gradle.kts

Lines changed: 0 additions & 63 deletions
This file was deleted.

android-test/proguard-multidex-rules.pro

Lines changed: 0 additions & 4 deletions
This file was deleted.

android-test/src/androidTest/kotlin/software/aws/clientrt/test/InstantTest.kt

Lines changed: 0 additions & 52 deletions
This file was deleted.

android-test/src/androidTest/kotlin/software/aws/clientrt/test/SerdeTest.kt

Lines changed: 0 additions & 199 deletions
This file was deleted.

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ buildscript {
1212

1313
val kotlinVersion: String by project
1414
dependencies {
15-
classpath("com.android.tools.build:gradle:4.0.1")
1615
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
1716
}
1817
}

0 commit comments

Comments
 (0)