Skip to content

Commit

Permalink
Setup lib
Browse files Browse the repository at this point in the history
  • Loading branch information
hudiohizari committed Mar 1, 2023
1 parent cd762f5 commit 2f33c16
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions HizariDropDown/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -38,4 +39,32 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

// NOTE : Delete afterEvaluate code if you publish Native Java / Kotlin Library
// NOTE : Just Using publishing function
afterEvaluate {
publishing {
publications {

// Creates a Maven publication called "release".
release(MavenPublication) {

// Applies the component for the release build variant.
from components.release

// Library Package Name (Example : "com.frogobox.androidfirstlib")
// NOTE : Different GroupId For Each Library / Module, So That Each Library Is Not Overwritten
groupId = "com.hizaridropdown"

// Library Name / Module Name (Example : "androidfirstlib")
// NOTE : Different ArtifactId For Each Library / Module, So That Each Library Is Not Overwritten
artifactId = "HizariDropDown"

// Version Library Name (Example : "1.0.0")
version = "0.0.1"

}
}
}
}
19 changes: 19 additions & 0 deletions HizariDropDown/src/main/java/com/hizaridropdown/TestClass.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.hizaridropdown

import android.util.Log

/**
* hizari-ui - com.hizaridropdown
*
* Created by Hudio Hizari on 01/03/23.
* https://github.com/hudiohizari
*
*/

object TestClass {

fun test() {
Log.d("TestClass HDD", "test")
}

}
29 changes: 29 additions & 0 deletions HizariEditText/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -38,4 +39,32 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

// NOTE : Delete afterEvaluate code if you publish Native Java / Kotlin Library
// NOTE : Just Using publishing function
afterEvaluate {
publishing {
publications {

// Creates a Maven publication called "release".
release(MavenPublication) {

// Applies the component for the release build variant.
from components.release

// Library Package Name (Example : "com.frogobox.androidfirstlib")
// NOTE : Different GroupId For Each Library / Module, So That Each Library Is Not Overwritten
groupId = "com.hizariedittext"

// Library Name / Module Name (Example : "androidfirstlib")
// NOTE : Different ArtifactId For Each Library / Module, So That Each Library Is Not Overwritten
artifactId = "HizariEditText"

// Version Library Name (Example : "1.0.0")
version = "0.0.1"

}
}
}
}
19 changes: 19 additions & 0 deletions HizariEditText/src/main/java/com/hizariedittext/TestClass.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.hizariedittext

import android.util.Log

/**
* hizari-ui - com.hizaridropdown
*
* Created by Hudio Hizari on 01/03/23.
* https://github.com/hudiohizari
*
*/

object TestClass {

fun test() {
Log.d("TestClass HET", "test")
}

}
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk11

0 comments on commit 2f33c16

Please sign in to comment.