-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from icerockdev/develop
Release 0.3.0
- Loading branch information
Showing
15 changed files
with
144 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
mkdir -p ~/.shaper && \ | ||
cd ~/.shaper && \ | ||
curl -L -s "https://github.com/icerockdev/shaper/releases/download/release%2F0.2.0/shaper-cli-0.2.0.zip" > cli.zip && \ | ||
curl -L -s "https://github.com/icerockdev/shaper/releases/download/release%2F0.3.0/shaper-cli-0.3.0.zip" > cli.zip && \ | ||
unzip -q cli.zip && \ | ||
rm cli.zip && \ | ||
rm -rf shaper-cli || true && \ | ||
mv shaper-cli-0.2.0 shaper-cli && \ | ||
mv shaper-cli-0.3.0 shaper-cli && \ | ||
echo "repositories:" > config.yaml && \ | ||
echo 'To complete setup add into your environments: export PATH=~/.shaper/shaper-cli/bin:$PATH' | ||
echo 'After it you can call shaper by command: shaper-cli -i <input yaml> -o <output dir>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
plugins { | ||
plugin(Deps.Plugins.androidLibrary) | ||
plugin(Deps.Plugins.kotlinMultiplatform) | ||
plugin(Deps.Plugins.mobileMultiplatform) | ||
} | ||
# Suka | ||
dependencies { | ||
{{#each androidMainDeps}} androidMainImplementation(Deps.Libs.Android.{{this}}) | ||
{{/each}} | ||
{{#each commonMainDeps}} commonMainImplementation(Deps.Libs.MultiPlatform.{{this}}.common) | ||
{{/each}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
shaper-core/src/main/kotlin/dev/icerock/tools/shaper/core/PathLocator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package dev.icerock.tools.shaper.core | ||
|
||
object PathLocator { | ||
|
||
private val dirMapList = mutableMapOf<String, String>() | ||
|
||
fun set(path: String, base: String) = dirMapList.put(path, base) | ||
|
||
fun getBaseDir(path: String) = dirMapList[path] | ||
|
||
fun getAbsolutePath(path: String) = getBaseDir(path) + "/" + path | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
globalParams: | ||
packageName: dev.icerock.shaper.sample.kmm.auth | ||
moduleName: Auth | ||
androidMainDeps: | ||
- lifecycle | ||
- recyclerView | ||
dependencies: | ||
- dep1 | ||
- dep2 | ||
files: | ||
- pathTemplate: 'build.gradle.kts' | ||
contentTemplateName: build.gradle.kts.hbs | ||
- pathTemplate: 'sub/build.gradle.kts' | ||
contentTemplateName: sub/build.gradle.kts.hbs | ||
includes: | ||
- includes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package sub | ||
|
||
plugins { | ||
id("org.jetbrains.kotlin.jvm") version "1.4.20" | ||
} | ||
# Sub-file {{test}} | ||
dependencies { | ||
implements("dep1") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package sub | ||
|
||
plugins { | ||
id("org.jetbrains.kotlin.jvm") version "1.4.20" | ||
} | ||
# Sub-file {{{{raw}}}}{{test}}{{{{/raw}}}} | ||
dependencies { | ||
{{~#if (or (eq "test1" "test") (eq "test2" "test2"))}} | ||
{{~#if (and (eq "test" "test") (eq "test2" "test2"))}} | ||
implements("dep1") | ||
{{/if~}} | ||
{{/if~}} | ||
{{~#if (or (eq "test1" "test") (eq "test" "test2"))}} | ||
implements("dep2") | ||
{{~/if~}} | ||
} |