mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 18:45:28 +00:00
Make gradle.properties optional
This commit is contained in:
parent
bb39a524d0
commit
4e4ec73d94
2
build.py
2
build.py
@ -187,12 +187,14 @@ def load_config(args):
|
|||||||
|
|
||||||
# Default values
|
# Default values
|
||||||
config["version"] = commit_hash
|
config["version"] = commit_hash
|
||||||
|
config["versionCode"] = 1000000
|
||||||
config["outdir"] = "out"
|
config["outdir"] = "out"
|
||||||
|
|
||||||
# Load prop files
|
# Load prop files
|
||||||
if op.exists(args.config):
|
if op.exists(args.config):
|
||||||
config.update(parse_props(args.config))
|
config.update(parse_props(args.config))
|
||||||
|
|
||||||
|
if op.exists("gradle.properties"):
|
||||||
for key, value in parse_props("gradle.properties").items():
|
for key, value in parse_props("gradle.properties").items():
|
||||||
if key.startswith("magisk."):
|
if key.startswith("magisk."):
|
||||||
config[key[7:]] = value
|
config[key[7:]] = value
|
||||||
|
Loading…
Reference in New Issue
Block a user