-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update gradlew to v4.7
- Loading branch information
akolomentsev
committed
May 7, 2018
1 parent
454b151
commit 01670da
Showing
16 changed files
with
126 additions
and
99 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
27 changes: 15 additions & 12 deletions
27
codegen/utils/src/com/satori/codegen/utils/ICodeFormatter.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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
package com.satori.codegen.utils | ||
|
||
interface ICodeFormatter { | ||
fun constName(name: String) = name.underscore(true) | ||
fun fieldName(name: String) = name.camel() | ||
fun methodName(name: String) = name.camel() | ||
fun varName(name: String) = name.camel() | ||
fun className(name: String) = name.pascal() | ||
fun getterName(name: String) = "get${name.pascal()}" | ||
fun setterName(name: String) = "set${name.pascal()}" | ||
fun camel(name: String) = name.camel() | ||
fun pascal(name: String) = name.pascal() | ||
fun underscore(name: String) = name.underscore(false) | ||
fun underscore(name: String, uppercase: Boolean) = name.underscore(uppercase) | ||
//fun elvis(name: String) | ||
fun constName(name: String) = name.snakeCase(true) | ||
fun fieldName(name: String) = name.camelCase() | ||
fun methodName(name: String) = name.camelCase() | ||
fun varName(name: String) = name.camelCase() | ||
fun className(name: String) = name.pascalCase() | ||
fun getterName(name: String) = "get${name.pascalCase()}" | ||
fun setterName(name: String) = "set${name.pascalCase()}" | ||
fun packageName(name: String) = name.dotsCase() | ||
|
||
fun camel(name: String) = name.camelCase() | ||
fun pascal(name: String) = name.pascalCase() | ||
fun snake(name: String) = name.snakeCase(false) | ||
fun snake(name: String, uppercase: Boolean) = name.snakeCase(uppercase) | ||
fun kebab(name: String) = name.kebabCase(false) | ||
fun kebab(name: String, uppercase: Boolean) = name.kebabCase(uppercase) | ||
} |
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
Binary file not shown.
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip |
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
Oops, something went wrong.