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
| class CustomTextInput : TextInputEditText { | |
| constructor(context: Context) : super(context) | |
| constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) | |
| constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) | |
| } |
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
| class CustomTextInput @JvmOverloads constructor( | |
| context: Context, | |
| attrs: AttributeSet? = null, | |
| defStyleAttr: Int = 0 | |
| ) : TextInputEditText(context, attrs, defStyleAttr) |
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
| class TextInputEditTextJvmOverloads2 @JvmOverloads constructor( | |
| context: Context, | |
| attrs: AttributeSet? = null | |
| ) : TextInputEditText(context, attrs) |
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
| class TextInputEditTextJvmStyled @JvmOverloads constructor( | |
| context: Context, | |
| attrs: AttributeSet? = null, | |
| defStyleAttr: Int = editTextStyle | |
| ) : TextInputEditText(context, attrs, defStyleAttr) |
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
| public TextInputEditText(Context context, AttributeSet attrs) { | |
| this(context, attrs, attr.editTextStyle); | |
| } |
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
| @JvmOverloads | |
| public CustomTextInput(@NotNull Context context, @Nullable AttributeSet attrs, int defStyleAttr){ | |
| super(context, attrs, defStyleAttr); | |
| } | |
| @JvmOverloads | |
| public CustomTextInput(@NotNull Context context, @Nullable AttributeSet attrs){ | |
| super(context, attrs, 0); | |
| } | |
| @JvmOverloads | |
| public CustomTextInput(@NotNull Context context){ |
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
| apply plugin: 'maven-publish' | |
| def LIB_GROUP_ID = 'com.chenzhang2006.libraries' | |
| def LIB_ARTIFACT_ID = 'droidlib' | |
| def LIB_VERSION = '2.0.1' | |
| task sourceJar(type: Jar) { | |
| from android.sourceSets.main.java.srcDirs | |
| classifier "sources" | |
| } |
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
| repositories { | |
| maven { | |
| name = "GithubPackages" | |
| url = uri("https://maven.pkg.github.com/chenzhang2006/AndroidLibForArtifactory") | |
| credentials { | |
| username = System.getenv('GITHUB_USER') ?: project.properties['GITHUB_USER'] | |
| password = System.getenv('GITHUB_PERSONAL_ACCESS_TOKEN') ?: project.properties['GITHUB_PERSONAL_ACCESS_TOKEN'] | |
| } | |
| } | |
| maven { |
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
| apply plugin: 'maven-publish' | |
| def LIB_GROUP_ID = 'com.chenzhang2006.libraries' | |
| def LIB_ARTIFACT_ID = 'droidlib2' | |
| def LIB_VERSION = '3.0.1' | |
| task sourceJar(type: Jar) { | |
| from android.sourceSets.main.java.srcDirs | |
| classifier "sources" | |
| } |
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
| publications { | |
| droidlib2(MavenPublication) { | |
| groupId LIB_GROUP_ID | |
| artifactId LIB_ARTIFACT_ID | |
| version LIB_VERSION | |
| artifact("$buildDir/outputs/aar/droidlibrary2-release.aar") | |
| artifact(sourceJar) | |
| pom.withXml { | |
| def dependenciesNode = asNode().appendNode('dependencies') |
OlderNewer