Skip to content

Commit

Permalink
Bug 1620145: Part 0 - Set compileSdkVersion to use ANDROID_TARGET_SDK…
Browse files Browse the repository at this point in the history
…; r=geckoview-reviewers,agi

Differential Revision: https://phabricator.services.mozilla.com/D68612

--HG--
extra : moz-landing-system : lando
  • Loading branch information
dblohm7 committed Mar 27, 2020
1 parent 940bf90 commit fa8d4a5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ allprojects {
topsrcdir = gradle.mozconfig.topsrcdir
topobjdir = gradle.mozconfig.topobjdir

compileSdkVersion = 28
compileSdkVersion = tryInt(mozconfig.substs.ANDROID_TARGET_SDK)
targetSdkVersion = tryInt(mozconfig.substs.ANDROID_TARGET_SDK)
minSdkVersion = tryInt(mozconfig.substs.MOZ_ANDROID_MIN_SDK_VERSION)
manifestPlaceholders = [
Expand Down
2 changes: 1 addition & 1 deletion build/moz.configure/android-sdk.configure
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def android_sdk_root(value):

@depends('--help')
def android_sdk_version(_):
return namespace(build_tools_versions=['28.0.3'], target_sdk_version='29')
return namespace(build_tools_versions=['29.0.3'], target_sdk_version='29')


@depends(android_sdk_root, android_sdk_version)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ class AccessibilityTest : BaseSessionTest() {
override fun onWinStateChanged(event: AccessibilityEvent) { }

@AssertCalled(count = 1)
@Suppress("deprecation")
override fun onFocused(event: AccessibilityEvent) {
nodeId = getSourceId(event)
var node = createNodeInfo(nodeId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class SelectionActionDelegateTest : BaseSessionTest() {
private fun withClipboard(content: String = "", lambda: () -> Unit) {
val oldClip = clipboard.primaryClip
try {
clipboard.primaryClip = ClipData.newPlainText("", content)
clipboard.setPrimaryClip(ClipData.newPlainText("", content))

sessionRule.addExternalDelegateUntilTestEnd(
ClipboardManager.OnPrimaryClipChangedListener::class,
Expand All @@ -248,7 +248,7 @@ class SelectionActionDelegateTest : BaseSessionTest() {
ClipboardManager.OnPrimaryClipChangedListener {})
lambda()
} finally {
clipboard.primaryClip = oldClip ?: ClipData.newPlainText("", "")
clipboard.setPrimaryClip(oldClip ?: ClipData.newPlainText("", ""))
}
}

Expand Down
4 changes: 2 additions & 2 deletions python/mozboot/mozboot/android-packages.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
platform-tools
build-tools;28.0.3
platforms;android-28
build-tools;29.0.3
platforms;android-29
emulator
docs

0 comments on commit fa8d4a5

Please sign in to comment.