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("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
IO::print(out, "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\" package=\"%s\">\n", comp.get_name());
out.write("\t<uses-sdk android:minSdkVersion=\"9\" />\n");
// TODO Make the icon name configurable
- IO::print(out, "\t<application android:icon=\"@drawable/icon\" android:label=\"%s\" android:hasCode=\"false\">\n", pkg.get_label());
+ bool debuggable = binfo.debug;
+ IO::print(out, "\t<application android:icon=\"@drawable/icon\" android:label=\"%s\" android:hasCode=\"false\" android:debuggable=\"%s\">\n", pkg.get_label(), debuggable);
if(SharedLibrary *native_lib = manifest.get_native_library())
{
out.write("\t\t<activity android:name=\"android.app.NativeActivity\">\n");