Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix android debug keystore creation #1720

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ jobs:
run: sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --list | sed -n '/Available Packages/q;p'
- name: Accept license 34.0.0
run: echo "y" | sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;34.0.0"
- name: Create Android keystore folder
run: |
mkdir -p /home/runner/.config/.android
keytool -genkey -v -keystore /tmp/debug.keystore -storepass android -alias androiddebugkeynondefault -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"
- name: Setup ZULU_JDK
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -108,6 +112,8 @@ jobs:
-x signPluginMavenPublication
-x signAndroidCacheFixPluginPluginMarkerMavenPublication
-Porg.gradle.java.installations.auto-download=false
-Dpts.mode=$PTS_MODE
--no-build-cache
-Dpts.enabled=false
# -Dpts.mode=$PTS_MODE
env:
PTS_MODE: "${{ github.ref_name == 'main' && 'REMAINING_TESTS' || 'RELEVANT_TESTS' }}"
8 changes: 8 additions & 0 deletions src/test/groovy/org/gradle/android/SimpleAndroidApp.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ class SimpleAndroidApp {
checkReleaseBuilds false
}
}
signingConfigs {
getByName("debug") {
storeFile = file("/tmp/debug.keystore")
storePassword = "android"
keyAlias = "androiddebugkeynondefault"
keyPassword = "android"
}
}
}

${toolchainConfigurationIfEnabled}
Expand Down
Loading