This file contains hidden or 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
# create dependency group in gradle | |
versions.$group$="$ver$" | |
def $group$=[:] | |
$group$.$item$="$lib$:$versions.$group$" | |
deps.$group$=$group$ | |
implementation deps.$group$.$item$ | |
#create single dependency |
This file contains hidden or 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
---- JAVA ---- | |
@Binds | |
@IntoMap | |
@ViewModelKey($ViewModelClassName$.class) | |
abstract ViewModel bind$ViewModelClassName$($ViewModelClassName$ $ViewModelVariable$); | |
---- KOTLIN ---- | |
@Binds |
This file contains hidden or 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
app.gradle/ | |
kaptTest deps.dagger.compiler | |
testImplementation deps.kotlin.test | |
testImplementation deps.arch_core.testing | |
tasks/ | |
compileDebugUnitTestSources |
This file contains hidden or 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
buildTypes { | |
debug{ | |
testCoverageEnabled true | |
} | |
} | |
./gradlew testDebugUnitTest | |
./gradlew createDebugCoverageReport |
This file contains hidden or 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
bind:selectedConstantType="@{`SHIRTS`}" | |
@InverseBindingAdapter(attribute = "selectedConstantValue", event = "selectedConstantValueAttrChanged") | |
@BindingAdapter(value = {"selectedConstantValue","selectedConstantType", "selectedConstantValueAttrChanged"}, requireAll = false) |
This file contains hidden or 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
-----Activity----- | |
#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
import android.arch.lifecycle.Observer | |
import android.databinding.DataBindingUtil | |
import android.os.Bundle | |
import android.support.v7.widget.LinearLayoutManager | |
class ${NAME}Activity : AppCompatActivity() { |
This file contains hidden or 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
/* | |
* Created by Harshith Shetty on 11/4/19 12:37 PM. | |
* Copyright (c) 2019 People Interactive. All rights reserved. | |
* | |
*/ | |
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
import groovy.json.JsonBuilder |
This file contains hidden or 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
private val TAG = "$className$"; | |
Edit variables-> | |
className | groovyScript("_1.take(Math.min(23, _1.length()));", kotlinClassName()) |
This file contains hidden or 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
------------Dockerfile----------------- | |
# Setting the base image of which docker image is being created | |
FROM jenkins/jenkins:lts | |
# Switching to root user to install dependencies and flutter | |
USER root | |
#Flutter |
This file contains hidden or 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
--- | |
to: <%= module %>/src/main/java/com/justadeveloper96/pokedex/<%= module %>/presentation/<%=h.changeCase.snake(name) %>/fragment/<%=name %>Fragment.kt | |
--- | |
<% | |
folder = h.changeCase.snake(name) | |
name_snake = h.changeCase.snake(name) | |
%> | |
package com.justadeveloper96.pokedex.<%= module %>.presentation.<%=folder %>.fragment | |
OlderNewer