Status Update
Comments
zh...@google.com <zh...@google.com> #2
My dependencies:
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.gms:play-services-wearable:17.1.0'
implementation 'com.google.android.material:material:1.4.0'
If I remove androidx.appcompat:appcompat:1.4.0
, the warning vanishes, so I imagine there's some transitive dependency on an older version of androidx.appcompat:appcompat
that doesn't have the warning.
zh...@google.com <zh...@google.com> #4
The upstream library is using @SuppressWarnings("deprecation")
, which I suppose you could probably use to suppress the warning you're getting.
As for doing fully the non-deprecated way, it is possible that would require overwriting/duplicating more functionality than you currently are and/or updates to the Preference library.
However, I suspect that FragmentManager is capable of handling Fragment subclasses. You should probably look for instructions on developer.android.com, stackoverflow, or similar.
th...@gmail.com <th...@gmail.com> #5
Looks like a duplicate of
du...@google.com <du...@google.com> #6
This target is "enabled" in AndroidX now, but the support level is basically non-existent. We are still working on getting CI, so we cannot make any guarantees about the stability of mingw artifacts even if we did release them.
Re-assigning back to datastore folks so they can decide on timeline.
zh...@google.com <zh...@google.com> #7
Created aosp/3209641 but it fails compilations. I fixed the dependency issue from annotation
but kruth
seems to block:
Could not determine the dependencies of task ':datastore:datastore:linkDebugTestMingwX64'.
> Could not resolve all dependencies for configuration ':datastore:datastore:mingwX64TestCompileKlibraries'.
> Could not resolve project :kruth:kruth.
Required by:
project :datastore:datastore
> No matching variant of project :kruth:kruth was found. The consumer was configured to find a library for use during 'kotlin-api', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'mingw_x64', attribute 'org.jetbrains.kotlin.platform.type' with value 'native' but:
It seems
Is there a plan from Jetpack to support kruth on windows?
au...@google.com <au...@google.com> #8
You should be able to just add mingwX64() to kruth, it is largely platfrom independent source code there.
zh...@google.com <zh...@google.com> #9
Thanks, created aosp/3217077 for kruth.
ap...@google.com <ap...@google.com> #10
Branch: androidx-main
commit 0f06f5a6f403636c4352164083c1577ad213dbf1
Author: Zhiyuan Wang <zhiyuanwang@google.com>
Date: Mon Aug 12 19:43:49 2024
Add mingwX64 to Kruth build.gradle
Bug:
Test: N/A
Change-Id: I5c546ec80a3cb047591abb95e906e51ff43b1469
M kruth/kruth/bcv/native/current.txt
M kruth/kruth/build.gradle
du...@google.com <du...@google.com>
th...@gmail.com <th...@gmail.com> #11
Now that Kruth supports mingwX64, could mingwX64 be added to datastore as well, please? Thanks for working on this. I am currently using my own simple implementation for writing some data to a file, but would really like to use datastore instead.
zh...@google.com <zh...@google.com> #12
Hi thanks for your interest
I'm not sure what's the timeline for Jetpack infra team to support Windows environment for CI tests.
go...@jakewharton.com <go...@jakewharton.com> #13
Can you employ a tier system similar to JetBrains?
There's really no downside to publishing "pure" Kotlin libraries to all possible targets even if they are untested. It's only when you interact with platform APIs or have native dependencies that things get complicated.
Description