create-droid 1.0.0 → 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/gradle/setupGradle.js +3 -12
- 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
|
@@ -83,7 +83,7 @@ while [ -h "$PRG" ] ; do
|
|
|
83
83
|
PRG=\`dirname "$PRG"\`"/$link"
|
|
84
84
|
fi
|
|
85
85
|
done
|
|
86
|
-
SAVED="
|
|
86
|
+
SAVED="\`pwd\`"
|
|
87
87
|
cd "\`dirname \\"$PRG\\"\`/" >/dev/null
|
|
88
88
|
APP_HOME="\`pwd -P\`"
|
|
89
89
|
cd "$SAVED" >/dev/null
|
|
@@ -218,15 +218,6 @@ if $cygwin ; then
|
|
|
218
218
|
esac
|
|
219
219
|
fi
|
|
220
220
|
|
|
221
|
-
#
|
|
222
|
-
|
|
223
|
-
for i do printf %s\\\\n "$i" | sed "s/'/'\\\\\\\\''/g;1s/^/'/;\$s/\$/' \\\\\\\\/" ; done
|
|
224
|
-
echo " "
|
|
225
|
-
}
|
|
226
|
-
APP_ARGS=$(save "$@")
|
|
227
|
-
|
|
228
|
-
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
|
229
|
-
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\\"-Dorg.gradle.appname=$APP_BASE_NAME\\"" -classpath "\\"$CLASSPATH\\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
|
230
|
-
|
|
231
|
-
exec "$JAVACMD" "$@"
|
|
221
|
+
# Collect all arguments for the java command
|
|
222
|
+
exec "$JAVACMD" $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "-Dorg.gradle.appname=$APP_BASE_NAME" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
|
232
223
|
`;
|
|
@@ -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>
|