Skip to content

Commit 5751625

Browse files
Remove Instant Apps integration
1 parent 8d0d8ec commit 5751625

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Improved lesson UI with a top app bar and share action in the Start a New Project tutorial.
44
- Added translations for the Start a New Project lesson across supported languages.
5+
- Removed Google Play Instant Apps integration ahead of its deprecation in December 2025.
56

67
# Version 5.0.2:
78

app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ dependencies {
5757
// Google
5858
implementation libs.material
5959
implementation libs.play.services.ads
60-
implementation libs.play.services.instantapps
6160
implementation libs.review
6261
implementation libs.app.update
6362
implementation libs.volley

app/src/main/java/com/d4rk/androidtutorials/java/ui/components/navigation/BottomSheetMenuFragment.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import com.d4rk.androidtutorials.java.databinding.BottomSheetMenuBinding;
1515
import com.d4rk.androidtutorials.java.ui.screens.settings.SettingsActivity;
1616
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
17-
import com.google.android.gms.instantapps.InstantApps;
1817

1918
public class BottomSheetMenuFragment extends BottomSheetDialogFragment {
2019

@@ -57,16 +56,8 @@ public View onCreateView(@NonNull LayoutInflater inflater,
5756
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
5857
sharingIntent.setType("text/plain");
5958

60-
String shareLink;
61-
boolean isInstant = InstantApps
62-
.getPackageManagerCompat(requireContext())
63-
.isInstantApp();
64-
if (isInstant) {
65-
shareLink = "https://example.com/instant";
66-
} else {
67-
shareLink = "https://play.google.com/store/apps/details?id="
68-
+ BuildConfig.APPLICATION_ID;
69-
}
59+
String shareLink = "https://play.google.com/store/apps/details?id="
60+
+ BuildConfig.APPLICATION_ID;
7061

7162
String shareMessage = getString(R.string.share_message, shareLink);
7263

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ coreKtx = "1.17.0"
2727
material = "1.14.0-alpha04"
2828
multidex = "2.0.1"
2929
playServicesAds = "24.5.0"
30-
playServicesInstantApps = "18.2.0"
3130
codeview = "1.3.9"
3231
hilt = "2.57.1"
3332

@@ -63,7 +62,6 @@ materialratingbar-library = { module = "me.zhanghai.android.materialratingbar:li
6362
mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockitoCore" }
6463
mockito-inline = { module = "org.mockito:mockito-inline", version.ref = "mockitoInline" }
6564
play-services-ads = { module = "com.google.android.gms:play-services-ads", version.ref = "playServicesAds" }
66-
play-services-instantapps = { module = "com.google.android.gms:play-services-instantapps", version.ref = "playServicesInstantApps" }
6765
review = { module = "com.google.android.play:review", version.ref = "review" }
6866
volley = { module = "com.android.volley:volley", version.ref = "volley" }
6967
codeview = { module = "io.github.amrdeveloper:codeview", version.ref = "codeview" }

0 commit comments

Comments
 (0)