Skip to content

Commit 405183e

Browse files
committed
Update App_Resources
1 parent 427086b commit 405183e

File tree

28 files changed

+19
-10
lines changed

28 files changed

+19
-10
lines changed

generator/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = (api, options, rootOptions) => {
2020
'nativescript-vue': '^2.0.2'
2121
},
2222
devDependencies: {
23+
'nativescript-dev-webpack': '^0.20.1',
2324
'nativescript-vue-loader': '1.0.0',
2425
'nativescript-vue-template-compiler': '^2.0.2',
2526
'tns-core-modules': '^5.2.0'
@@ -54,4 +55,12 @@ module.exports = (api, options, rootOptions) => {
5455
rimraf.sync(publicPath);
5556
}
5657
});
58+
59+
// delete the "src" directory
60+
api.onCreateComplete(() => {
61+
const srcPath = api.resolve('src');
62+
if (fs.existsSync(srcPath)) {
63+
rimraf.sync(srcPath);
64+
}
65+
});
5766
};

generator/templates/simple/app/App_Resources/Android/AndroidManifest.xml renamed to generator/templates/simple/app/App_Resources/Android/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest
3-
xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="<%- applicationAndroidVersionCode %>" android:versionName="<%- applicationVersion %>">
3+
xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="10000" android:versionName="1.0.0">
44
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" />
5-
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="__APILEVEL__" />
5+
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="__APILEVEL__" />
66
<uses-permission android:name="android.permission.INTERNET" />
77
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
88
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

0 commit comments

Comments
 (0)