diff --git a/README.md b/README.md index 6c0ee2e..2a499fe 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/buildSrc/src/main/kotlin/Version.kt b/buildSrc/src/main/kotlin/Version.kt index 0f51510..76db7ad 100644 --- a/buildSrc/src/main/kotlin/Version.kt +++ b/buildSrc/src/main/kotlin/Version.kt @@ -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" diff --git a/compat/build.gradle.kts b/compat/build.gradle.kts index d807e5b..7956440 100644 --- a/compat/build.gradle.kts +++ b/compat/build.gradle.kts @@ -3,6 +3,7 @@ plugins { kotlin(Plugin.kotlin_android) id(Plugin.kotlin_parcelize) } +apply("../maven.gradle") android { namespace = "com.gallery.compat" compileSdk = Version.compileSdk diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 83219f2..ed2b2a0 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -3,6 +3,7 @@ plugins { kotlin(Plugin.kotlin_android) id(Plugin.kotlin_parcelize) } +apply("../maven.gradle") android { namespace = "com.gallery.core" compileSdk = Version.compileSdk diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..46c8529 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - openjdk11 \ No newline at end of file diff --git a/material/build.gradle.kts b/material/build.gradle.kts index 078bb16..848eb83 100644 --- a/material/build.gradle.kts +++ b/material/build.gradle.kts @@ -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 diff --git a/maven.gradle b/maven.gradle new file mode 100644 index 0000000..d170d71 --- /dev/null +++ b/maven.gradle @@ -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 + } + } + } +} \ No newline at end of file diff --git a/sample/build.gradle.kts b/sample/build.gradle.kts index 8da3e43..6fc8da2 100644 --- a/sample/build.gradle.kts +++ b/sample/build.gradle.kts @@ -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) diff --git a/scan/build.gradle.kts b/scan/build.gradle.kts index c044004..f1983eb 100644 --- a/scan/build.gradle.kts +++ b/scan/build.gradle.kts @@ -3,6 +3,7 @@ plugins { kotlin(Plugin.kotlin_android) id(Plugin.kotlin_parcelize) } +apply("../maven.gradle") android { namespace = "com.gallery.scan" compileSdk = Version.compileSdk diff --git a/wechat/build.gradle.kts b/wechat/build.gradle.kts index 8f31872..7c3afb3 100644 --- a/wechat/build.gradle.kts +++ b/wechat/build.gradle.kts @@ -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