Skip to content

Commit b25eb0b

Browse files
committedMar 21, 2023
FLUT-7439-[flutter][feature]: Moved the release 1 volume to master
1 parent d5e0f67 commit b25eb0b

File tree

67 files changed

+242
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+242
-253
lines changed
 

‎android/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 31
28+
compileSdkVersion flutter.compileSdkVersion
2929

3030
lintOptions {
3131
disable 'InvalidPackage'
@@ -34,8 +34,8 @@ android {
3434
defaultConfig {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3636
applicationId "com.syncfusion.flutter_examples"
37-
minSdkVersion 16
38-
targetSdkVersion 31
37+
minSdkVersion flutter.minSdkVersion
38+
targetSdkVersion flutter.targetSdkVersion
3939
versionCode flutterVersionCode.toInteger()
4040
versionName flutterVersionName
4141
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
package io.flutter.plugins;
22

3-
import androidx.annotation.Keep;
4-
import androidx.annotation.NonNull;
5-
import io.flutter.Log;
6-
7-
import io.flutter.embedding.engine.FlutterEngine;
3+
import io.flutter.plugin.common.PluginRegistry;
4+
import io.flutter.plugins.pathprovider.PathProviderPlugin;
5+
import io.flutter.plugins.urllauncher.UrlLauncherPlugin;
86

97
/**
108
* Generated file. Do not edit.
11-
* This file is generated by the Flutter tool based on the
12-
* plugins that support the Android platform.
139
*/
14-
@Keep
1510
public final class GeneratedPluginRegistrant {
16-
private static final String TAG = "GeneratedPluginRegistrant";
17-
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18-
try {
19-
flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
20-
} catch(Exception e) {
21-
Log.e(TAG, "Error registering plugin path_provider_android, io.flutter.plugins.pathprovider.PathProviderPlugin", e);
22-
}
23-
try {
24-
flutterEngine.getPlugins().add(new com.syncfusion.flutter.pdfviewer.SyncfusionFlutterPdfViewerPlugin());
25-
} catch(Exception e) {
26-
Log.e(TAG, "Error registering plugin syncfusion_flutter_pdfviewer, com.syncfusion.flutter.pdfviewer.SyncfusionFlutterPdfViewerPlugin", e);
11+
public static void registerWith(PluginRegistry registry) {
12+
if (alreadyRegisteredWith(registry)) {
13+
return;
2714
}
28-
try {
29-
flutterEngine.getPlugins().add(new io.flutter.plugins.urllauncher.UrlLauncherPlugin());
30-
} catch(Exception e) {
31-
Log.e(TAG, "Error registering plugin url_launcher_android, io.flutter.plugins.urllauncher.UrlLauncherPlugin", e);
15+
PathProviderPlugin.registerWith(registry.registrarFor("io.flutter.plugins.pathprovider.PathProviderPlugin"));
16+
UrlLauncherPlugin.registerWith(registry.registrarFor("io.flutter.plugins.urllauncher.UrlLauncherPlugin"));
17+
}
18+
19+
private static boolean alreadyRegisteredWith(PluginRegistry registry) {
20+
final String key = GeneratedPluginRegistrant.class.getCanonicalName();
21+
if (registry.hasPlugin(key)) {
22+
return true;
3223
}
24+
registry.registrarFor(key);
25+
return false;
3326
}
3427
}

0 commit comments

Comments
 (0)