fix(release): address the Amazon submission API by app id instead of package name
The App Submission API stopped resolving apps by package name and now returns 400 "No app found with the entered Inputs"; it requires the amzn1.devportal.mobileapp app id from the console URL. Read the id from AMAZON_APPSTORE_APP_ID, validate it in preflight, and keep the package name for console-facing messages.
This commit is contained in:
@@ -528,7 +528,10 @@ class DeferredPhaseTest(unittest.TestCase):
|
||||
defaults.update(args)
|
||||
return deploy.Context(
|
||||
args=SimpleNamespace(**defaults),
|
||||
env={"AMAZON_APPSTORE_PACKAGE_NAME": "com.example.app"},
|
||||
env={
|
||||
"AMAZON_APPSTORE_PACKAGE_NAME": "com.example.app",
|
||||
"AMAZON_APPSTORE_APP_ID": "amzn1.devportal.mobileapp.fixture",
|
||||
},
|
||||
state=state,
|
||||
phases=["amazon", "publish"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user