Skip to content

Commit 399dac6

Browse files
committed
Prepare for release 1.1.0
1 parent cfbc2d2 commit 399dac6

File tree

118 files changed

+10701
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+10701
-34
lines changed

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,32 @@ dependencies {
4545
// Set up your dagger dependencies and compiler
4646
4747
// Include this in kotlin or android modules
48-
implementation("se.ansman.dagger.auto:core:1.0.0")
49-
kapt("se.ansman.dagger.auto:compiler:1.0.0")
48+
implementation("se.ansman.dagger.auto:core:1.1.0")
49+
kapt("se.ansman.dagger.auto:compiler:1.1.0")
5050
// If you're using KSP
51-
ksp("se.ansman.dagger.auto:compiler:1.0.0")
51+
ksp("se.ansman.dagger.auto:compiler:1.1.0")
5252
5353
5454
// Include this only in android modules
55-
implementation("se.ansman.dagger.auto:android:1.0.0")
55+
implementation("se.ansman.dagger.auto:android:1.1.0")
5656
5757
// Add these if you want to replace objects during tests
58-
testImplementation("se.ansman.dagger.auto:android-testing:1.0.0")
59-
kaptTest("se.ansman.dagger.auto:compiler:1.0.0")
58+
testImplementation("se.ansman.dagger.auto:android-testing:1.1.0")
59+
kaptTest("se.ansman.dagger.auto:compiler:1.1.0")
6060
// If you're using KSP
61-
kspTest("se.ansman.dagger.auto:compiler:1.0.0")
61+
kspTest("se.ansman.dagger.auto:compiler:1.1.0")
6262
6363
// If you want to provide Retrofit services add the Retrofit dependency
64-
implementation("se.ansman.dagger.auto:retrofit:1.0.0")
64+
implementation("se.ansman.dagger.auto:retrofit:1.1.0")
65+
66+
// If you want to provide Ktorfit services add the Retrofit dependency
67+
implementation("se.ansman.dagger.auto:ktorfit:1.1.0")
6568
6669
// If you want to inject a CoroutineScope into ViewModels add the ViewModel dependency
67-
implementation("se.ansman.dagger.auto:androidx-viewmodel:1.0.0")
70+
implementation("se.ansman.dagger.auto:androidx-viewmodel:1.1.0")
6871
6972
// If you want to automatically provide your Room DAOs add the Room dependency
70-
implementation("se.ansman.dagger.auto:androidx-room:1.0.0")
73+
implementation("se.ansman.dagger.auto:androidx-room:1.1.0")
7174
}
7275
```
7376

gradle-plugin/src/main/kotlin/library.publishing.gradle.kts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11

22
import com.android.build.gradle.LibraryExtension
3-
import com.android.build.gradle.internal.scope.ProjectInfo.Companion.getBaseName
43
import com.github.jengelman.gradle.plugins.shadow.ShadowExtension
54
import org.gradle.accessors.dm.LibrariesForLibs
65
import org.jetbrains.dokka.gradle.AbstractDokkaLeafTask
7-
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
86
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
97
import se.ansman.dagger.auto.gradle.cachedProvider
108
import se.ansman.dagger.auto.gradle.execWithOutput
11-
import se.ansman.dagger.auto.gradle.getOrPut
129
import se.ansman.dagger.auto.gradle.mapNullable
13-
import java.io.ByteArrayOutputStream
1410

1511
plugins {
1612
id("maven-publish")
@@ -154,23 +150,8 @@ val publication = publishing.publications.register<MavenPublication>("autoDagger
154150

155151
if (findProperty("signArtifacts")?.toString()?.toBoolean() == true) {
156152
signing {
153+
useGpgCmd()
157154
sign(publication.get())
158-
gradle.taskGraph.whenReady {
159-
if (hasTask(tasks.getByName("sign${publication.name.replaceFirstChar(Char::uppercaseChar)}Publication"))) {
160-
rootProject.ext.getOrPut("signing.gnupg.passphrase") {
161-
val output = ByteArrayOutputStream()
162-
exec {
163-
commandLine("op", "read", "op://private/GnuPG/password")
164-
standardOutput = output
165-
errorOutput = System.err
166-
}
167-
.rethrowFailure()
168-
.assertNormalExitValue()
169-
output.toString(Charsets.UTF_8).trim()
170-
}
171-
useGpgCmd()
172-
}
173-
}
174155
}
175156
}
176157

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org.gradle.parallel=true
2-
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
2+
org.gradle.jvmargs=-Xmx10g -Xms4g -XX\:MaxMetaspaceSize\=1g -Dfile.encoding\=UTF-8 -XX\:+UseG1GC
33
org.gradle.vfs.watch=true
44
org.gradle.caching=true
55
org.gradle.configuration.cache=true
@@ -11,5 +11,5 @@ kapt.include.compile.classpath=false
1111

1212
android.useAndroidX=true
1313

14-
version=1.0.0-SNAPSHOT
15-
latestRelease=1.0.0
14+
version=1.1.0
15+
latestRelease=1.1.0

publish.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/usr/bin/env bash
22

33
./gradlew clean
4-
./gradlew publishAllPublicationsToMavenCentralRepository -PsignArtifacts=true --no-parallel --no-configuration-cache
4+
./gradlew publishAllPublicationsToMavenCentralRepository \
5+
--no-parallel \
6+
--no-configuration-cache \
7+
-PsignArtifacts=true \
8+
-Psigning.gnupg.executable=/opt/homebrew/bin/gpg \
9+
-Psigning.gnupg.keyName=$(op --account my.1password.com read op://private/GnuPG/keyID | xargs) \
10+
-Psigning.gnupg.passphrase=$(op --account my.1password.com read op://private/GnuPG/password | xargs)

src/doc/dokka/1.1.0/core/index.html

Lines changed: 96 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)