Commit Graph

1313 Commits

Author SHA1 Message Date
renovate[bot]
35c659837c Update plugin spotless to v6.23.1 2023-11-29 18:30:23 +00:00
Jake Wharton
66f3e1f572 Merge pull request #1765 from square/renovate/gradle-8.x
Update dependency gradle to v8.5
2023-11-29 11:09:28 -05:00
Jake Wharton
4f15a119be Merge pull request #1766 from square/renovate/actions-setup-java-4.x
Update actions/setup-java action to v4
2023-11-29 11:04:24 -05:00
renovate[bot]
735dc88e18 Update actions/setup-java action to v4 2023-11-29 15:41:40 +00:00
renovate[bot]
2b7df2d28c Update dependency gradle to v8.5 2023-11-29 15:41:36 +00:00
Jake Wharton
45b9bc3a1a Merge pull request #1764 from square/renovate/ksp
Update ksp to v1.9.21-1.0.15
2023-11-27 16:40:33 -05:00
renovate[bot]
c39cf26278 Update ksp to v1.9.21-1.0.15 2023-11-27 21:07:41 +00:00
Jake Wharton
db8619835d Merge pull request #1762 from square/renovate/kotlin-monorepo
Update kotlin monorepo to v1.9.21
2023-11-23 08:16:14 -05:00
renovate[bot]
de34b7d3e5 Update kotlin monorepo to v1.9.21 2023-11-23 13:10:22 +00:00
renovate[bot]
23438ead9f Update ksp to v1.9.20-1.0.14 2023-11-02 18:16:24 -04:00
renovate[bot]
2ee4b440f4 Update kotlin monorepo to v1.9.20 (#1753)
* Update kotlin monorepo to v1.9.20

* Update ksp to v1.9.20-1.0.13

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <github@jakewharton.com>
2023-11-01 03:17:41 +00:00
Jake Wharton
64196346f0 Merge pull request #1748 from square/renovate/org.jetbrains.dokka-1.x
Update plugin dokka to v1.9.10
2023-10-16 11:24:32 -04:00
renovate[bot]
e4d39066a3 Update plugin dokka to v1.9.10 2023-10-16 14:59:43 +00:00
Jake Wharton
82aba2926f Merge pull request #1747 from square/renovate/guava-monorepo
Update dependency com.google.guava:guava to v32.1.3-jre
2023-10-10 19:02:03 -04:00
renovate[bot]
bbaf1140ee Update dependency com.google.guava:guava to v32.1.3-jre 2023-10-10 22:27:53 +00:00
Jake Wharton
f0ade79b8a Merge pull request #1746 from square/renovate/gradle-8.x
Update dependency gradle to v8.4
2023-10-04 19:23:27 -04:00
renovate[bot]
8a8f892e27 Update dependency gradle to v8.4 2023-10-04 23:16:02 +00:00
Jake Wharton
3b1b0fe303 Merge pull request #1743 from square/renovate/com.squareup.okio-okio-3.x
Update dependency com.squareup.okio:okio to v3.6.0
2023-10-01 23:19:20 -04:00
renovate[bot]
5c235e5773 Update dependency com.squareup.okio:okio to v3.6.0 2023-10-02 03:12:35 +00:00
renovate[bot]
c9d64c45c3 Update actions/checkout digest to 8ade135 (#1740)
* Update actions/checkout digest to 8ade135

* Update build.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <github@jakewharton.com>
2023-10-01 10:41:07 +00:00
Jake Wharton
0c5f788172 Merge pull request #1742 from square/renovate/com.diffplug.spotless-6.x
Update plugin spotless to v6.22.0
2023-10-01 06:39:22 -04:00
Jake Wharton
cb8794a259 Merge pull request #1741 from square/renovate/org.ow2.asm-asm-9.x
Update dependency org.ow2.asm:asm to v9.6
2023-10-01 06:35:48 -04:00
renovate[bot]
b88fc8bc1f Update plugin spotless to v6.22.0 2023-10-01 09:13:56 +00:00
renovate[bot]
a08d34914b Update dependency org.ow2.asm:asm to v9.6 2023-10-01 08:50:31 +00:00
Jake Wharton
24cf12cce6 Merge pull request #1733 from square/renovate/actions-checkout-4.x
Update actions/checkout action to v4
2023-09-04 10:07:37 -04:00
renovate[bot]
00618c458f Update actions/checkout action to v4 2023-09-04 12:39:49 +00:00
Jake Wharton
e6f2aaedf4 Merge pull request #1732 from square/renovate/org.jetbrains.dokka-1.x
Update plugin dokka to v1.9.0
2023-08-31 18:56:57 -04:00
renovate[bot]
3b61975af1 Update plugin dokka to v1.9.0 2023-08-31 22:47:34 +00:00
Jake Wharton
2d76ef9588 Merge pull request #1731 from cpovirk/bangbang
Insert `!!` to make some types in generated code non-nullable.
2023-08-30 13:33:24 -04:00
Chris Povirk
c9c9f9d838 Insert !! to make some types in generated code non-nullable.
Hi, Square folks.

The background here is that we're working to put nullness annotations on
more "JDK classes," such as `java.lang.Class`, at least in Google's
build system. That means that calls to methods like
`clazz.getMethod(...)` and `clazz.getDeclaredConstructor` must pass
non-nullable `Class` instances. If they don't, we see errors:

```
error: type mismatch: inferred type is Class<Int>? but Class<*> was expected
          String::class.java, String::class.java, Int::class.javaPrimitiveType, String::class.java,
                                                  ^
```

```
error: type mismatch: inferred type is Class<Int>? but Class<*> was expected
          String::class.java, FooResponse::class.java, Int::class.javaPrimitiveType,
                                                       ^
```

```
error: type mismatch: inferred type is Class<CapturedType(*)>? but Class<*> was expected
          Util.DEFAULT_CONSTRUCTOR_MARKER).also { this.constructorRef = it }
          ^
```

Expressions like `Int::class.javaPrimitiveType` are always non-nullable,
so we can use `!!` (or `checkNotNull` or whatever you might prefer)
there without risk.

(Note that it would be possible to avoiding using `!!` for
`INT_TYPE_BLOCK`: We could do so by passing `Integer.TYPE`. The more
general case of `TypeName.asTypeBlock` could theoretically be handled
similarly but would likely require maintaining a mapping from Kotlin
type name to Java primitive wrapper class.)

As for `DEFAULT_CONSTRUCTOR_MARKER`, I haven't looked at the generated
code enough to prove that it's non-nullable here. But if I'm reading the
bytecode right, the property value is being passed to
`getDeclaredConstructor`, so I'd expect NPE there if it were null.

Let me know what you think. I could check with our internal Moshi owners
about maintaining this as a Google-local patch if that's better, but I'm
hoping that this is a fairly harmless change, and our research so far
suggests that we _probably_ won't be back soon to ask about other
changes for this nullness work.
2023-08-30 11:31:50 -04:00
Jake Wharton
3879185dfd Merge pull request #1730 from square/renovate/com.diffplug.spotless-6.x
Update plugin spotless to v6.21.0
2023-08-29 07:07:15 -04:00
renovate[bot]
0fd4a50621 Update plugin spotless to v6.21.0 2023-08-29 07:47:56 +00:00
Jake Wharton
ba1c22c771 Merge pull request #1726 from square/renovate/kotlin-monorepo
Update kotlin monorepo to v1.9.10
2023-08-23 09:21:20 -04:00
renovate[bot]
083f4f963f Update kotlin monorepo to v1.9.10 2023-08-23 11:23:40 +00:00
Jake Wharton
53bbbc6fc5 Merge pull request #1708 from square/renovate/com.diffplug.spotless-6.x
Update plugin spotless to v6.20.0
2023-08-22 12:54:34 -04:00
renovate[bot]
86241bd172 Update plugin spotless to v6.20.0 2023-08-22 16:47:16 +00:00
Jake Wharton
3e9836d600 Merge pull request #1722 from square/renovate/gradle-8.x
Update dependency gradle to v8.3
2023-08-17 08:53:47 -04:00
renovate[bot]
20170c3ad4 Update dependency gradle to v8.3 2023-08-17 12:05:48 +00:00
Jake Wharton
7da75e9456 Merge pull request #1718 from square/renovate/kotlin-monorepo
Update dependency org.jetbrains.kotlinx:kotlinx-metadata-jvm to v0.7.0
2023-08-03 14:08:14 -04:00
renovate[bot]
16d5a3c8c7 Update dependency org.jetbrains.kotlinx:kotlinx-metadata-jvm to v0.7.0 2023-08-03 17:33:28 +00:00
Zac Sweers
f6f80a40dd Update to Kotlin 1.9.0 (#1719) 2023-08-03 13:33:12 -04:00
Jake Wharton
7732295aa8 Merge pull request #1715 from square/renovate/com.squareup.okio
Update dependency com.squareup.okio:okio to v3.5.0
2023-08-02 13:51:13 -04:00
renovate[bot]
f1e5a038a2 Update dependency com.squareup.okio:okio to v3.5.0 2023-08-02 17:14:59 +00:00
renovate[bot]
1e9efb27cb Update dependency com.google.guava:guava to v32.1.2-jre (#1713)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-01 13:22:20 -04:00
Jake Wharton
3d7433b982 Merge pull request #1706 from square/renovate/gradle-8.x
Update dependency gradle to v8.2.1
2023-07-10 12:39:38 -04:00
renovate[bot]
b7c91b4784 Update dependency gradle to v8.2.1 2023-07-10 13:46:18 +00:00
Jake Wharton
77487b4d6e Merge pull request #1705 from square/renovate/dev.zacsweers.autoservice
Update dependency dev.zacsweers.autoservice:auto-service-ksp to v1.1.0
2023-07-09 18:07:36 -04:00
renovate[bot]
5a4dce58f4 Update dependency dev.zacsweers.autoservice:auto-service-ksp to v1.1.0 2023-07-09 21:48:20 +00:00
Jake Wharton
f207bbbbc2 Merge pull request #1704 from square/renovate/com.squareup.okio
Update dependency com.squareup.okio:okio to v3.4.0
2023-07-07 13:58:27 -04:00
renovate[bot]
f579aa0784 Update dependency com.squareup.okio:okio to v3.4.0 2023-07-07 17:39:24 +00:00