diff options
author | fhuya <fhuya@google.com> | 2019-12-12 19:52:57 -0500 |
---|---|---|
committer | fhuya <fhuya@google.com> | 2019-12-30 10:33:48 -0500 |
commit | 50ab6decfeffb04b3f6409e573d76bed6150d52b (patch) | |
tree | b2a8ca12442217b1c3dd80cfa40be12d4ce51599 /platform/android/export | |
parent | edf2ed5e5056b3f37014cafb2571dd31d65a4a96 (diff) |
Replace the android.defaultConfig.applicationId in build.gradle with the package/unique_name.
Diffstat (limited to 'platform/android/export')
-rw-r--r-- | platform/android/export/export.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 0645efccd7..2a3e4e754e 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1984,10 +1984,13 @@ public: build_command = build_path.plus_file(build_command); + String package_name = get_package_name(p_preset->get("package/unique_name")); + List<String> cmdline; cmdline.push_back("build"); - cmdline.push_back("-p"); - cmdline.push_back(build_path); + cmdline.push_back("-Pexport_package_name=" + package_name); // argument to specify the package name. + cmdline.push_back("-p"); // argument to specify the start directory. + cmdline.push_back(build_path); // start directory. /*{ used for debug int ec; String pipe; |