create-droid 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/template/generateProject.js +5 -0
- package/package.json +1 -1
- package/templates/base/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/templates/base/.gradle/9.2.0/executionHistory/executionHistory.lock +0 -0
- package/templates/base/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/templates/base/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/templates/base/.gradle/9.2.0/gc.properties +0 -0
- package/templates/base/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/templates/base/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/templates/base/.gradle/vcs-1/gc.properties +0 -0
- package/templates/base/_gitignore +23 -0
- package/templates/base/app/src/main/res/drawable/ic_launcher_background.xml +10 -0
- package/templates/base/app/src/main/res/drawable/ic_launcher_foreground.xml +9 -0
- package/templates/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/templates/base/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/templates/base/app/src/main/res/values/strings.xml +3 -0
- package/templates/base/app/src/main/res/values/themes.xml +4 -0
- package/templates/base/app/src/main/res/xml/backup_rules.xml +5 -0
- package/templates/base/app/src/main/res/xml/data_extraction_rules.xml +11 -0
|
@@ -20,6 +20,11 @@ export async function generateProject(options) {
|
|
|
20
20
|
// 3. Copy Base
|
|
21
21
|
logger.info(`Copying base template from ${baseTemplate}...`);
|
|
22
22
|
await fs.copy(baseTemplate, projectPath);
|
|
23
|
+
// Rename _gitignore to .gitignore
|
|
24
|
+
const gitignorePath = path.join(projectPath, '_gitignore');
|
|
25
|
+
if (fs.existsSync(gitignorePath)) {
|
|
26
|
+
await fs.move(gitignorePath, path.join(projectPath, '.gitignore'));
|
|
27
|
+
}
|
|
23
28
|
// 4. Copy UI specific files
|
|
24
29
|
if (fs.existsSync(uiTemplate)) {
|
|
25
30
|
logger.info(`Applying ${uiType} template...`);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Gradle
|
|
2
|
+
.gradle/
|
|
3
|
+
build/
|
|
4
|
+
app/build/
|
|
5
|
+
|
|
6
|
+
# Local configuration file (sdk.dir is here)
|
|
7
|
+
local.properties
|
|
8
|
+
|
|
9
|
+
# Android Studio / IntelliJ
|
|
10
|
+
.idea/
|
|
11
|
+
*.iml
|
|
12
|
+
*.iws
|
|
13
|
+
*.ipr
|
|
14
|
+
*.xml
|
|
15
|
+
|
|
16
|
+
# Mac
|
|
17
|
+
.DS_Store
|
|
18
|
+
|
|
19
|
+
# Kotlin
|
|
20
|
+
.kotlin/
|
|
21
|
+
|
|
22
|
+
# Secrets (if any)
|
|
23
|
+
secrets.properties
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:width="108dp"
|
|
4
|
+
android:height="108dp"
|
|
5
|
+
android:viewportWidth="108"
|
|
6
|
+
android:viewportHeight="108">
|
|
7
|
+
<path
|
|
8
|
+
android:fillColor="#3DDC84"
|
|
9
|
+
android:pathData="M0,0h108v108h-108z" />
|
|
10
|
+
</vector>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="108dp"
|
|
3
|
+
android:height="108dp"
|
|
4
|
+
android:viewportWidth="108"
|
|
5
|
+
android:viewportHeight="108">
|
|
6
|
+
<path
|
|
7
|
+
android:fillColor="#FFFFFF"
|
|
8
|
+
android:pathData="M66,66L66,66C66,66 66,66 66,66L66,66C66,66 66,66 66,66L66,66C66,66 66,66 66,66L66,66ZM42,42L42,42C42,42 42,42 42,42L42,42C42,42 42,42 42,42L42,42C42,42 42,42 42,42L42,42ZM54,24L54,24C54,24 54,24 54,24L54,24C54,24 54,24 54,24L54,24C54,24 54,24 54,24L54,24ZM84,54L84,54C84,54 84,54 84,54L84,54C84,54 84,54 84,54L84,54C84,54 84,54 84,54L84,54ZM24,54L24,54C24,54 24,54 24,54L24,54C24,54 24,54 24,54L24,54C24,54 24,54 24,54L24,54ZM54,84L54,84C54,84 54,84 54,84L54,84C54,84 54,84 54,84L54,84C54,84 54,84 54,84L54,84Z" />
|
|
9
|
+
</vector>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
+
<background android:drawable="@drawable/ic_launcher_background" />
|
|
4
|
+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
|
5
|
+
</adaptive-icon>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
+
<background android:drawable="@drawable/ic_launcher_background" />
|
|
4
|
+
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
|
5
|
+
</adaptive-icon>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<data-extraction-rules>
|
|
3
|
+
<cloud-backup>
|
|
4
|
+
<include domain="sharedpref" path="."/>
|
|
5
|
+
<include domain="database" path="."/>
|
|
6
|
+
</cloud-backup>
|
|
7
|
+
<device-transfer>
|
|
8
|
+
<include domain="sharedpref" path="."/>
|
|
9
|
+
<include domain="database" path="."/>
|
|
10
|
+
</device-transfer>
|
|
11
|
+
</data-extraction-rules>
|