Skip to content

Commit

Permalink
add jitpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
7449 committed Feb 3, 2023
1 parent 7a67eb6 commit 10944d8
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
implementation "com.github.7449.Album:ui:$lastVersion"
implementation "com.github.7449.Album:core:$lastVersion"
implementation "com.github.7449.Album:scan:$lastVersion"
implementation "com.github.7449.Album:material:$lastVersion"

#### simple camera

Expand Down
6 changes: 6 additions & 0 deletions buildSrc/src/main/kotlin/Version.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ object Args {
object Dep {
const val kotlin = "org.jetbrains.kotlin:kotlin-stdlib:${Plugin.kotlinVersion}"

const val compat = "com.github.7449.Album:compat:v1.1.1"
const val core = "com.github.7449.Album:core:v1.1.1"
const val scan = "com.github.7449.Album:scan:v1.1.1"
const val material_ui = "com.github.7449.Album:material:v1.1.1"
const val wechat_ui = "com.github.7449.Album:wechat:v1.1.1"

const val appcompat = "androidx.appcompat:appcompat:1.6.0"
const val fragment = "androidx.fragment:fragment:1.5.5"
const val activity = "androidx.activity:activity-ktx:1.6.1"
Expand Down
1 change: 1 addition & 0 deletions compat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
kotlin(Plugin.kotlin_android)
id(Plugin.kotlin_parcelize)
}
apply("../maven.gradle")
android {
namespace = "com.gallery.compat"
compileSdk = Version.compileSdk
Expand Down
1 change: 1 addition & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
kotlin(Plugin.kotlin_android)
id(Plugin.kotlin_parcelize)
}
apply("../maven.gradle")
android {
namespace = "com.gallery.core"
compileSdk = Version.compileSdk
Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk11
1 change: 1 addition & 0 deletions material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
kotlin(Plugin.kotlin_android)
id(Plugin.kotlin_parcelize)
}
apply("../maven.gradle")
android {
namespace = "com.gallery.ui.material"
compileSdk = Version.compileSdk
Expand Down
20 changes: 20 additions & 0 deletions maven.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apply plugin: "maven-publish"
task sourceJar(type: Jar) {
from android.sourceSets.main.java.getSrcDirs()
//noinspection GroovyAccessibility
archiveClassifier = "sources"
}
afterEvaluate {
publishing {
publications {
maven(MavenPublication) {
from components.release
artifact sourceJar
groupId = "com.gallery"
artifactId = project.name
version = "1.0.0"
description project.name
}
}
}
}
7 changes: 7 additions & 0 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ dependencies {
implementation(project(":compat"))
implementation(project(":material"))
implementation(project(":wechat"))

// implementation(Dep.scan)
// implementation(Dep.core)
// implementation(Dep.compat)
// implementation(Dep.material_ui)
// implementation(Dep.wechat_ui)

implementation(Dep.material)
implementation(Dep.fragment)
implementation(Dep.activity)
Expand Down
1 change: 1 addition & 0 deletions scan/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
kotlin(Plugin.kotlin_android)
id(Plugin.kotlin_parcelize)
}
apply("../maven.gradle")
android {
namespace = "com.gallery.scan"
compileSdk = Version.compileSdk
Expand Down
1 change: 1 addition & 0 deletions wechat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
kotlin(Plugin.kotlin_android)
id(Plugin.kotlin_parcelize)
}
apply("../maven.gradle")
android {
namespace = "com.gallery.ui.wechat"
compileSdk = Version.compileSdk
Expand Down

0 comments on commit 10944d8

Please sign in to comment.