Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Muzei API 3.4, targetSdkVersion 30 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ianhanniballake
Copy link

Muzei API 3.4 adds a lot of things that are specifically useful for Earth View:

  • Muzei API 3.4 drastically increases the speed when setting a large number of images at once (which is exactly what WallpaperProviders does), meaning it loads in ~2-3 seconds rather than 30+ seconds.
  • A launch activity is required on Android 10 (API 29) or higher devices. Muzei 3.4 adds new MuzeiContract APIs for redirecting users to the right screen in Muzei as seen in the RedirectActivity.

To get Earth View working with Muzei API 3.4, this also upgrades to Android Gradle Plugin 4.0.1, Gradle 6.5, a compileSdkVersion and targetSdkVersion of 30, and switches to AndroidX.

Muzei API 3.4 adds a lot of things that are specifically useful for Earth View:

- Muzei API 3.4 drastically increases the speed when setting a large number of images at once (which is exactly what `WallpaperProviders` does), meaning it loads in ~2-3 seconds rather than 30+ seconds.
- A launch activity is required on Android 10 (API 29) or higher devices. Muzei 3.4 adds new `MuzeiContract` APIs for redirecting users to the right screen in Muzei as seen in the `RedirectActivity`.

To get Earth View working with Muzei API 3.4, this also upgrades to Android Gradle Plugin 4.0.1, Gradle 6.5, a `compileSdkVersion` and `targetSdkVersion` of 30, and switches to AndroidX.
@arturdryomov
Copy link
Owner

Thanks Ian! I’m integrating this one step at a time since the CI is broken and the Earth View API was changed (and the latter is actually the major outdated part ;-).

A launch activity is required on Android 10 (API 29) or higher devices.

Do you have a documentation link for that? I’m installing the Activity-less APK on Android 10 without issues. Changing the target SDK to 29 doesn’t change things either.

@ianhanniballake
Copy link
Author

Do you have a documentation link for that? I’m installing the Activity-less APK on Android 10 without issues. Changing the target SDK to 29 doesn’t change things either.

See the LauncherApps.getActivityList() documentation, which talks about how synthesized activities are added to the list for apps that don't have a launcher activity. Clicking on that synthesized activity just links to the system settings screen for the app.

@arturdryomov
Copy link
Owner

Interesting, thank you! Not sure why I don’t see such synthesized activity in the Pixel Launcher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants