@appshuttle.io/turing
Version:
Code Generation Library used in Shuttle
44 lines (35 loc) • 1.19 kB
JavaScript
class AppManifestTemplates {
constructor() {
/*
AppManifest STRUCTURE START
*/
// AppManifest Structure Holders
this.PACKAGE_HOLDER = '%package%'
this.getAppManifestStructure = function () {
return `<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"\r\n
package="`+this.PACKAGE_HOLDER+`">\r\n
\r\n
<application\r\n
android:allowBackup="true"\r\n
android:icon="@mipmap/ic_launcher"\r\n
android:label="@string/app_name"\r\n
android:roundIcon="@mipmap/ic_launcher_round"\r\n
android:supportsRtl="true"\r\n
android:theme="@style/AppTheme">\r\n
<activity android:name=".MainActivity">\r\n
<intent-filter>\r\n
<action android:name="android.intent.action.MAIN" />\r\n
<category android:name="android.intent.category.LAUNCHER" />\r\n
</intent-filter>\r\n
</activity>\r\n
</application>\r\n
</manifest>\r\n
`
}
/*
AppManifest STRUCTURE END
*/
}
}
module.exports = AppManifestTemplates