web-share-target-native-implementation #227
Reference in New Issue
Block a user
Delete Branch "web-share-target-native-implementation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ClickUp: https://app.clickup.com/t/86b4mryd6
WIP: web-share-target-native-implementationto web-share-target-native-implementationFix deprecation warnings and ensure future compatibility by updating getParcelableExtra() calls to use the new API introduced in Android 13 (API 33), while maintaining backward compatibility with older versions. Changes: - Update getParcelableExtra() to use typed version (Uri.class) on API 33+ - Update getParcelableArrayListExtra() to use typed version on API 33+ - Add version checks with Build.VERSION.SDK_INT >= TIRAMISU - Maintain backward compatibility for API 22-32 using deprecated API with @SuppressWarnings("deprecation") - No functional changes - share feature works identically across versions The new API (getParcelableExtra(key, Class)) was introduced in API 33 to provide type safety. The old API is deprecated but still functional on older versions, so we use runtime checks to support both. This ensures the app builds cleanly with targetSdkVersion 36 and remains compatible with minSdkVersion 22.web-share-target-native-implementationto WIP: web-share-target-native-implementationWIP: web-share-target-native-implementationto web-share-target-native-implementation