Skip to content

Commit

Permalink
format correcetly
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Malandruccolo committed May 13, 2024
1 parent 0338629 commit eb93ab2
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ class FlutterRequestAgentProvider {
static final String NEWS_VERSION_KEY =
"io.flutter.plugins.googlemobileads.FLUTTER_NEWS_TEMPLATE_VERSION";

@Nullable
private String newsTemplateVersion;
@Nullable
private String gameTemplateVersion;
@Nullable private String newsTemplateVersion;
@Nullable private String gameTemplateVersion;

FlutterRequestAgentProvider(Context context) {
processGameAndNewsTemplateVersions(context);
Expand All @@ -30,16 +28,18 @@ private void processGameAndNewsTemplateVersions(Context context) {
try {
ApplicationInfo info;
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.TIRAMISU) {
info = context
.getApplicationContext()
.getPackageManager()
.getApplicationInfo(context.getPackageName(),
PackageManager.ApplicationInfoFlags.of(PackageManager.GET_META_DATA));
info =
context
.getApplicationContext()
.getPackageManager()
.getApplicationInfo(context.getPackageName(),
PackageManager.ApplicationInfoFlags.of(PackageManager.GET_META_DATA));
} else {
info = context
.getApplicationContext()
.getPackageManager()
.getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA);
info =
context
.getApplicationContext()
.getPackageManager()
.getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA);
}
Bundle metaData = info.metaData;
if (metaData != null) {
Expand Down

0 comments on commit eb93ab2

Please # to comment.