GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — - cleanup gradle files · Candlewhacked/AboutLibraries@895e950

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci.yml
  • aboutlibraries-compose
    • build.gradle.kts
    • src
      • androidMain/kotlin/com/mikepenz/aboutlibraries/ui/compose
        • Libraries.kt
      • main
        • kotlin/com/mikepenz/aboutlibraries/ui/compose
          • Libraries.kt
          • data
            • FakeData.kt
          • util
            • Extensions.kt
        • res/values
          • strings.xml
  • aboutlibraries-core
    • build.gradle
  • aboutlibraries
    • build.gradle
    • src/main/java/com/mikepenz/aboutlibraries/ui
      • LibsActivity.kt
  • app
    • build.gradle
    • src/main
      • AndroidManifest.xml
      • java/com/mikepenz/aboutlibraries/sample
        • ComposeActivity.kt
        • FragmentActivity.kt
      • res
        • menu
          • fragment.xml
          • main.xml
        • values
          • strings.xml
  • build.gradle
  • gradle.properties
  • gradle
    • gradle-mvn-push.gradle
    • wrapper
      • gradle-wrapper.properties
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
./gradlew build -x test -x lint
115115
./gradlew aboutlibraries-core:publishReleasePublicationToSonatypeRepository -Plibrary_core_only --no-configure-on-demand --no-parallel
116116
./gradlew aboutlibraries:publishReleasePublicationToSonatypeRepository -x test -x lint -Plibrary_only --no-configure-on-demand --no-parallel
117+
./gradlew aboutlibraries-compose:publishReleasePublicationToSonatypeRepository -x test -x lint -Plibrary_compose_only --no-configure-on-demand --no-parallel
117118
env:
118119
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
119120
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
Collapse file

‎aboutlibraries-compose/build.gradle.kts‎

Copy file name to clipboard
+18-47Lines changed: 18 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
import org.jetbrains.compose.compose
2-
31
plugins {
4-
kotlin("multiplatform")
2+
kotlin("android")
53
id("com.android.library")
64
id("org.jetbrains.compose")
75
id("org.jetbrains.dokka")
86
id("com.vanniktech.maven.publish")
97
}
108

9+
val viewModel = "2.4.0"
10+
val composeVersion = "1.1.0-beta01"
11+
1112
android {
1213
compileSdk = 31
1314

1415
defaultConfig {
15-
minSdk = 24
16+
minSdk = 21
1617
targetSdk = 30
1718
}
1819

@@ -30,35 +31,21 @@ android {
3031
}
3132

3233
composeOptions {
33-
kotlinCompilerExtensionVersion = "1.1.0-beta01"
34-
}
35-
}
36-
37-
kotlin {
38-
jvm()
39-
40-
android {
41-
publishLibraryVariants("release")
34+
kotlinCompilerExtensionVersion = composeVersion
4235
}
4336
}
4437

4538
dependencies {
46-
commonMainImplementation(project(":aboutlibraries-core"))
47-
commonMainCompileOnly(compose.runtime)
48-
commonMainCompileOnly(compose.ui)
49-
commonMainCompileOnly(compose.foundation)
50-
commonMainCompileOnly(compose.material)
39+
implementation(project(":aboutlibraries-core"))
40+
41+
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$viewModel")
5142

52-
val compose_version = "1.1.0-beta01"
53-
"androidMainImplementation"("androidx.compose.runtime:runtime:$compose_version")
54-
"androidMainImplementation"("androidx.compose.ui:ui:$compose_version")
55-
"androidMainImplementation"("androidx.compose.foundation:foundation-layout:$compose_version")
56-
"androidMainImplementation"("androidx.compose.material:material:$compose_version")
57-
"androidMainImplementation"("androidx.compose.material:material-icons-extended:$compose_version")
58-
"androidMainImplementation"("androidx.compose.foundation:foundation:$compose_version")
59-
"androidMainImplementation"("androidx.compose.animation:animation:$compose_version")
60-
"androidMainImplementation"("androidx.compose.ui:ui-tooling:$compose_version")
61-
"androidMainImplementation"("androidx.compose.runtime:runtime-livedata:$compose_version")
43+
implementation("androidx.compose.runtime:runtime:$composeVersion")
44+
implementation("androidx.compose.ui:ui:$composeVersion")
45+
implementation("androidx.compose.foundation:foundation-layout:$composeVersion")
46+
implementation("androidx.compose.material:material:$composeVersion")
47+
implementation("androidx.compose.foundation:foundation:$composeVersion")
48+
implementation("androidx.compose.ui:ui-tooling:$composeVersion")
6249
}
6350

6451
tasks.dokkaHtml.configure {
@@ -69,22 +56,6 @@ tasks.dokkaHtml.configure {
6956
}
7057
}
7158

72-
tasks.create<Jar>("javadocJar") {
73-
dependsOn("dokkaJavadoc")
74-
classifier = "javadoc"
75-
from("$buildDir/javadoc")
76-
}
77-
78-
//mavenPublish {
79-
// releaseSigningEnabled = true
80-
// androidVariantToPublish = "release"
81-
//}
82-
83-
//publishing {
84-
// repositories {
85-
// maven {
86-
// name = "installLocally"
87-
// setUrl("${rootProject.buildDir}/localMaven")
88-
// }
89-
// }
90-
//}
59+
if (project.hasProperty("pushall") || project.hasProperty("library_compose_only")) {
60+
apply(from = "$rootDir/gradle/gradle-mvn-push.gradle")
61+
}
Collapse file

‎aboutlibraries-compose/src/androidMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/Libraries.kt‎

Copy file name to clipboardExpand all lines: aboutlibraries-compose/src/androidMain/kotlin/com/mikepenz/aboutlibraries/ui/compose/Libraries.kt
-79Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.