Skip to content

Commit

Permalink
Merge pull request #1554 from rmartin16/android-emu-skin-default
Browse files Browse the repository at this point in the history
Use Pixel 7 Pro skin for new AVDs
  • Loading branch information
mhsmith authored Nov 28, 2023
2 parents 018931b + 32b57c1 commit 96ea29e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions changes/1554.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
New virtual devices for the Android emulator are created using the Pixel 7 Pro skin.
2 changes: 1 addition & 1 deletion src/briefcase/integrations/android_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def DEFAULT_DEVICE_TYPE(self) -> str:

@property
def DEFAULT_DEVICE_SKIN(self) -> str:
return "pixel_3a"
return "pixel_7_pro"

@property
def DEFAULT_SYSTEM_IMAGE(self) -> str:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_create_emulator_with_defaults(
)

# The emulator skin was verified
android_sdk.verify_emulator_skin.assert_called_once_with("pixel_3a")
android_sdk.verify_emulator_skin.assert_called_once_with("pixel_7_pro")

# avdmanager was invoked
mock_tools.subprocess.check_output.assert_called_once_with(
Expand All @@ -181,7 +181,7 @@ def test_create_emulator_with_defaults(
with avd_config_path.open(encoding="utf-8") as f:
config = f.read().split("\n")
assert "hw.keyboard=yes" in config
assert "skin.name=pixel_3a" in config
assert "skin.name=pixel_7_pro" in config


def test_create_failure(mock_tools, android_sdk):
Expand All @@ -203,7 +203,7 @@ def test_create_failure(mock_tools, android_sdk):
android_sdk.verify_system_image.assert_called_once_with(ANY)

# The emulator skin was verified
android_sdk.verify_emulator_skin.assert_called_once_with("pixel_3a")
android_sdk.verify_emulator_skin.assert_called_once_with("pixel_7_pro")

# avdmanager was invoked
mock_tools.subprocess.check_output.assert_called_once_with(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_create_emulator(
android_sdk._create_emulator.assert_called_once_with(
avd="new-emulator",
device_type="pixel",
skin="pixel_3a",
skin="pixel_7_pro",
system_image=f"system-images;android-31;default;{emulator_abi}",
)

Expand Down

0 comments on commit 96ea29e

Please sign in to comment.