From 3e23be616412a2b9b9a3348dad618fb399f96f67 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 19 Nov 2015 11:01:24 +0200 Subject: [PATCH] Set the debuggable flag in Android manifest if debug is set in build info --- source/androidmanifestgenerator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/androidmanifestgenerator.cpp b/source/androidmanifestgenerator.cpp index 719bf95..156dfb3 100644 --- a/source/androidmanifestgenerator.cpp +++ b/source/androidmanifestgenerator.cpp @@ -35,12 +35,16 @@ void AndroidManifestGenerator::Worker::main() const Component &comp = *manifest.get_component(); const SourcePackage &pkg = comp.get_package(); + BuildInfo binfo; + manifest.collect_build_info(binfo); + IO::BufferedFile out(manifest.get_path().str(), IO::M_WRITE); out.write("\n"); IO::print(out, "\n", comp.get_name()); out.write("\t\n"); // TODO Make the icon name configurable - IO::print(out, "\t\n", pkg.get_label()); + bool debuggable = binfo.debug; + IO::print(out, "\t\n", pkg.get_label(), debuggable); if(SharedLibrary *native_lib = manifest.get_native_library()) { out.write("\t\t\n"); -- 2.43.0