Skip to content

Commit

Permalink
Release v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Mar 7, 2023
1 parent 1bae82c commit ce11c88
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
11 changes: 9 additions & 2 deletions buildSrc/src/main/kotlin/LibrarySetting.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ import ProjectSetting.BASE_PACAKGE_NAME

object LibrarySetting {

const val FROGO_LIB = "frogolib"
const val FROGO_LIB_ID = "$BASE_PACAKGE_NAME"
const val GITHUB_ACCOUNT = "frogobox"
const val GITHUB_REPOSITORY = "kick-start-library"

const val ARTIFACT_ID = "frogolib"
const val GROUP_ID = "com.github.$GITHUB_ACCOUNT"

const val NAME_SPACE = "$BASE_PACAKGE_NAME.$ARTIFACT_ID"

const val MAVEN_URI = "https://maven.pkg.github.com/$GITHUB_ACCOUNT/$GITHUB_REPOSITORY"

}
16 changes: 8 additions & 8 deletions frogolib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
android {

compileSdk = ProjectSetting.PROJECT_COMPILE_SDK
namespace = LibrarySetting.FROGO_LIB_ID
namespace = LibrarySetting.NAME_SPACE

defaultConfig {
minSdk = ProjectSetting.PROJECT_MIN_SDK
Expand Down Expand Up @@ -62,8 +62,8 @@ afterEvaluate {

repositories {
maven {
name = "KickStartLibrary"
url = uri("https://maven.pkg.github.com/frogobox/kick-start-library")
name = LibrarySetting.GITHUB_REPOSITORY
url = uri(LibrarySetting.MAVEN_URI)
credentials {
username = project.findProperty("gpr.user") as String? ?: ""
password = project.findProperty("gpr.key") as String? ?: ""
Expand All @@ -78,13 +78,13 @@ afterEvaluate {
// NOTE : Delete this line code if you publish Native Java / Kotlin Library
from(components["release"])

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

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

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

// Version Library Name (Example : "1.0.0")
version = ProjectSetting.PROJECT_VERSION_NAME
Expand Down

0 comments on commit ce11c88

Please sign in to comment.