Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Renamed config files to compact and full
Browse files Browse the repository at this point in the history
  • Loading branch information
borisf committed Feb 13, 2018
1 parent 8f8c0ce commit 385f0ee
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 46 deletions.
27 changes: 27 additions & 0 deletions ConfigCompact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"projectName": "GeneratedASProject",
"root": "./../",
"gradleVersion": "4.3.1",
"androidGradlePluginVersion": "3.0.1",
"kotlinVersion": "1.1.60",
"numModules": "2",
"allMethods": "40",
"javaPackageCount": "1",
"javaClassCount": "4",
"javaMethodCount": "20",
"kotlinPackageCount": "1",
"kotlinClassCount": "4",
"androidModules": "2",
"numActivitiesPerAndroidModule": "2",
"productFlavors": [
2, 3
],
"topologies": [
{"type": "star", "seed": "2"}
],
"dependencies": [
{"from": "module1", "to": "module0"}
],
"buildTypes": 2,
"generateTests": true
}
File renamed without changes.
29 changes: 0 additions & 29 deletions SampleConfig.json

This file was deleted.

32 changes: 15 additions & 17 deletions src/main/kotlin/com/google/androidstudiopoet/AndroidStudioPoet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,32 @@ class AndroidStudioPoet(private val modulesWriter: SourceModuleWriter, private v
}

@Language("JSON")
val SAMPLE_CONFIG = """
val CONFIG_COMPACT = """
{
"projectName": "genny",
"root": "././",
"projectName": "GeneratedASProject",
"root": "./../",
"gradleVersion": "4.3.1",
"androidGradlePluginVersion": "3.0.1",
"kotlinVersion": "1.1.60",
"numModules": "5",
"allMethods": "4000",
"javaPackageCount": "20",
"javaClassCount": "8",
"javaMethodCount": "2000",
"kotlinPackageCount": "20",
"kotlinClassCount": "8",
"numModules": "2",
"allMethods": "40",
"javaPackageCount": "1",
"javaClassCount": "4",
"javaMethodCount": "20",
"kotlinPackageCount": "1",
"kotlinClassCount": "4",
"androidModules": "2",
"numActivitiesPerAndroidModule": "8",
"numActivitiesPerAndroidModule": "2",
"productFlavors": [
2, 3
],
"topologies": [
{"type": "random_connected", "seed": "2"}
{"type": "star", "seed": "2"}
],
"dependencies": [
{"from": "module2", "to": "module3"},
{"from": "module2", "to": "module4"},
{"from": "module3", "to": "module4"}
{"from": "module1", "to": "module0"}
],
"buildTypes": 6,
"buildTypes": 2,
"generateTests": true
}
""".trimIndent()
Expand All @@ -82,7 +80,7 @@ class AndroidStudioPoet(private val modulesWriter: SourceModuleWriter, private v
fun run() {
when {
filename != null -> processFile(filename)
else -> showUI(SAMPLE_CONFIG)
else -> showUI(CONFIG_COMPACT)
}
}

Expand Down

0 comments on commit 385f0ee

Please sign in to comment.