]> git.tdb.fi Git - builder.git/blobdiff - source/androidmanifestfile.cpp
Refactor logger to do message formatting internally
[builder.git] / source / androidmanifestfile.cpp
index 55503defe99f6c762f7a58be5d96bf5b24547f70..527bfac874c59a2657d48c3c446d6e8de23b48e6 100644 (file)
@@ -1,8 +1,12 @@
+#include <msp/core/algorithm.h>
 #include "androidapplicationcomponent.h"
 #include "androidmanifestfile.h"
 #include "builder.h"
 #include "sourcepackage.h"
 
+using namespace std;
+using namespace Msp;
+
 AndroidManifestFile::AndroidManifestFile(Builder &b, const AndroidApplicationComponent &a):
        FileTarget(b, a.get_package(), a.get_package().get_temp_directory()/a.get_name()/"AndroidManifest.xml"),
        native_lib(0)
@@ -17,3 +21,14 @@ void AndroidManifestFile::set_native_library(SharedLibrary *lib)
 {
        native_lib = lib;
 }
+
+void AndroidManifestFile::set_orientation(const string &ori)
+{
+       orientation = ori;
+}
+
+void AndroidManifestFile::add_permission(const string &perm)
+{
+       if(!any_equals(permissions, perm))
+               permissions.push_back(perm);
+}