Nailathalang source
I-download ang source ZIP
CH-J SM Mobile
I-browse ang mga direktoryo at file ng isang partikular na release ng application.
CH-J / SM Mobile
175 file
sm-mobile-20261016T185235Z-8e93ecc1b59a
Idinagdag: · Binuo:
1
#!/usr/bin/env python32
"""Prepare a unique, locally consented build, then validate and package it."""3
import argparse,datetime,pathlib,secrets,subprocess,sys4
root=pathlib.Path(__file__).resolve().parents[1]5
p=argparse.ArgumentParser()6
p.add_argument('target',choices=['apk','aab','ios-simulator','ios','all','distribution'])7
p.add_argument('--release',action='store_true')8
args=p.parse_args()9
if (args.release or args.target == 'distribution') and args.target in ['apk','aab','all','distribution'] and not (root/'android/key.properties').exists():10
raise SystemExit('Provide android/key.properties with your release signing identity first.')11
def run(*command): subprocess.run(command,cwd=root,check=True)12
run('flutter','pub','get')13
run(sys.executable,str(root/'tool/notices.py'))14
build_id='sm-mobile-'+datetime.datetime.now(datetime.timezone.utc).strftime('%Y%m%dT%H%M%SZ')+'-'+secrets.token_hex(6)15
import re16
version=re.search(r'^version:\s*([0-9]+\.[0-9]+\.[0-9]+)\+[0-9]+\s*$',(root/'pubspec.yaml').read_text(),re.M).group(1)17
(root/'lib/core/build_info.dart').write_text("// Generated by tool/build.py. Never reuse for a different distributed build.\nconst appVersion = '"+version+"';\nconst buildId = '"+build_id+"';\n")18
run('flutter','analyze')19
run('flutter','test')20
mode='--release' if args.release or args.target == 'distribution' else '--debug'21
if args.target in ['apk','all','distribution']: run('flutter','build','apk',mode)22
if args.target in ['aab','all','distribution']: run('flutter','build','appbundle',mode)23
if args.target in ['ios-simulator','all']: run('flutter','build','ios','--simulator')24
if args.target in ['ios','distribution']: run('flutter','build','ios','--release','--no-codesign')25
print('Built '+build_id)SHA-256
f84053116cb57a03112e383bb53e74fc94b82b11571978fd517db4842362abd3CH-J Proprietary Software License 1.14 · Ibinibigay ang source sa ilalim ng CH-J Proprietary Software License 1.14. Hindi binabago ng pagiging available nito ang mga tuntunin ng lisensya at hindi ito nagbibigay ng karagdagang karapatan.
SHA-256 ng archive
46e427a43e87af091004f36145590bda8fe90086dfb0f631afeb5029fb0b5655