-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored generation example/ added license text
- Loading branch information
Showing
18 changed files
with
302 additions
and
63 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...les/generation/android-databinding/config/src/main/kotlin/org/morfly/airin/sample/Main.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
16 changes: 16 additions & 0 deletions
16
...ig/src/main/kotlin/org/morfly/airin/sample/generator/AndroidDataBindingModuleGenerator.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
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
16 changes: 16 additions & 0 deletions
16
...fig/src/main/kotlin/org/morfly/airin/sample/template/android_databinding_library_build.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
16 changes: 16 additions & 0 deletions
16
.../config/src/main/kotlin/org/morfly/airin/sample/template/android_databinding_workspace.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
15 changes: 0 additions & 15 deletions
15
...nfig/src/main/kotlin/org/morfly/airin/sample/template/manifest/AndroidManifestTemplate.kt
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...ig/src/main/kotlin/org/morfly/airin/sample/template/manifest/android_manifest_template.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,31 @@ | ||
/* | ||
* Copyright 2021 Pavlo Stavytskyi | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@file:Suppress("FunctionName") | ||
|
||
package org.morfly.airin.sample.template.manifest | ||
|
||
|
||
fun android_manifest_template( | ||
packageName: String | ||
/** | ||
* | ||
*/ | ||
) = """ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="$packageName"> | ||
</manifest> | ||
""".trimIndent() |
16 changes: 16 additions & 0 deletions
16
...e/manifest/MainAndroidManifestTemplate.kt → ...anifest/main_android_manifest_template.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
16 changes: 16 additions & 0 deletions
16
...fig/src/main/kotlin/org/morfly/airin/sample/template/other/android_databindind_bazelrc.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
16 changes: 16 additions & 0 deletions
16
...android-databinding/config/src/main/kotlin/org/morfly/airin/sample/template/root_build.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
24 changes: 0 additions & 24 deletions
24
...ng/config/src/main/kotlin/org/morfly/airin/sample/template/src/BindingAdaptersTemplate.kt
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...abinding/config/src/main/kotlin/org/morfly/airin/sample/template/src/ViewModelTemplate.kt
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...n/sample/template/src/ActivityTemplate.kt → .../sample/template/src/activity_template.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
40 changes: 40 additions & 0 deletions
40
.../config/src/main/kotlin/org/morfly/airin/sample/template/src/binding_adapters_template.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,40 @@ | ||
/* | ||
* Copyright 2021 Pavlo Stavytskyi | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@file:Suppress("FunctionName") | ||
|
||
package org.morfly.airin.sample.template.src | ||
|
||
|
||
fun binding_adapters_template( | ||
packageName: String, | ||
adapterName: String | ||
) = """ | ||
package $packageName; | ||
import androidx.databinding.BindingAdapter; | ||
import android.widget.TextView; | ||
public class BindingAdapters { | ||
@BindingAdapter("$adapterName") | ||
public static void $adapterName(TextView view, String $adapterName) { | ||
view.setText($adapterName); | ||
} | ||
} | ||
""".trimIndent() |
16 changes: 16 additions & 0 deletions
16
...ple/template/src/BindingLayoutTemplate.kt → ...e/template/src/binding_layout_template.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
16 changes: 16 additions & 0 deletions
16
...ample/template/src/RegularFileTemplate.kt → ...ple/template/src/regular_file_template.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
Oops, something went wrong.