fix: preserve camera permission intent and distinguish unknown reply expression
This commit is contained in:
@@ -13,7 +13,7 @@ assert probe['status']=='passed' and probe['downlink_bytes']>0 and probe['emotio
|
||||
assert compat['status']=='passed' and client['status']=='passed'
|
||||
for name,digest in deploy['hashes'].items():assert hashlib.sha256((root/'gateway'/name).read_bytes()).hexdigest()==digest,name
|
||||
for name,digest in client['hashes'].items():assert hashlib.sha256((root/name).read_bytes()).hexdigest()==digest,name
|
||||
assert not (root/'artifacts/lan-voice-v050-arm64-debug.apk').exists(), 'release artifact exists: refusing overwrite'
|
||||
assert not (root/'artifacts/lan-voice-v051-arm64-debug.apk').exists(), 'release artifact exists: refusing overwrite'
|
||||
print('Verified tested client/provider source and successful deployed pipeline before APK build')
|
||||
PY
|
||||
./scripts/build.sh
|
||||
@@ -29,7 +29,7 @@ from pathlib import Path
|
||||
root=Path.cwd()
|
||||
badging=(root/'logs/voice-investigation/release-emotion-badging.txt').read_text()
|
||||
assert "name='com.gorios.lanvoice'" in badging
|
||||
assert "versionCode='8'" in badging and "versionName='0.5.0'" in badging
|
||||
assert "versionCode='9'" in badging and "versionName='0.5.1'" in badging
|
||||
native=re.search(r'^native-code: (.+)$',badging,re.M)
|
||||
assert native and native[1].strip()=="'arm64-v8a'", 'unexpected ABI'
|
||||
source=root/'app/build/outputs/apk/debug/app-debug.apk'
|
||||
@@ -39,9 +39,10 @@ if previous.exists():
|
||||
new=(root/'logs/voice-investigation/release-emotion-signature.txt').read_text()
|
||||
pattern=r'Signer #1 certificate SHA-256 digest: (\w+)'
|
||||
assert re.search(pattern,old)[1]==re.search(pattern,new)[1], 'signing certificate changed: update install would fail'
|
||||
artifact=root/'artifacts/lan-voice-v050-arm64-debug.apk'
|
||||
artifact=root/'artifacts/lan-voice-v051-arm64-debug.apk'
|
||||
assert not artifact.exists(), 'release artifact exists: refusing overwrite'
|
||||
assert hashlib.sha256((root/'artifacts/lan-voice-v040-arm64-debug.apk').read_bytes()).hexdigest()=='5a6f88cb2f825dbcd5c7b8c1f212b369534bc53c49533e196fb5e9287902e934'
|
||||
assert hashlib.sha256((root/'artifacts/lan-voice-v050-arm64-debug.apk').read_bytes()).hexdigest()=='da47f7a08f63a68fbb6dbe7fb3d803ee58b402de393112a32f92a63ad50c1f33'
|
||||
shutil.copy2(source,artifact)
|
||||
digest=hashlib.sha256(artifact.read_bytes()).hexdigest()
|
||||
artifact.with_suffix('.apk.sha256').write_text(f'{digest} {artifact.name}\n')
|
||||
@@ -59,7 +60,7 @@ for path in ('artifacts/'+artifact.name, artifact.name):
|
||||
if downloaded==digest: url=base+path;break
|
||||
except Exception: pass
|
||||
assert url is not None, 'APK built, but existing HTTP server did not serve matching bytes'
|
||||
result=dict(version_name='0.5.0',version_code=8,apk=str(artifact.relative_to(root)),bytes=artifact.stat().st_size,sha256=digest,url=url,download_http_status=200,download_bytes=len(content),signature='apksigner_verified',real_phone_playback='not_tested')
|
||||
result=dict(version_name='0.5.1',version_code=9,apk=str(artifact.relative_to(root)),bytes=artifact.stat().st_size,sha256=digest,url=url,download_http_status=200,download_bytes=len(content),signature='apksigner_verified',real_phone_playback='not_tested')
|
||||
(root/'logs/voice-investigation/release-emotion.json').write_text(json.dumps(result,indent=2)+'\n')
|
||||
print(json.dumps(result,indent=2))
|
||||
PY
|
||||
|
||||
Reference in New Issue
Block a user