Skip to content

Commit 1194cc5

Browse files
committed
💚 修复构建失败
1 parent beff094 commit 1194cc5

File tree

8 files changed

+19
-36
lines changed

8 files changed

+19
-36
lines changed

android/src/main/java/com/zero/flutter_adspark/FlutterAdsparkPlugin.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,20 @@
2222
/**
2323
* FlutterAdsparkPlugin
2424
*/
25-
public class FlutterAdsparkPlugin implements FlutterPlugin, MethodCallHandler, ActivityAware {
25+
public class FlutterAdsparkPlugin implements FlutterPlugin, MethodCallHandler {
2626
private final String TAG = FlutterAdsparkPlugin.class.getSimpleName();
2727
// 方法通道
2828
private MethodChannel methodChannel;
29-
// 当前 Activity
30-
public Activity activity;
31-
// 插件连接器
32-
private FlutterPluginBinding bind;
3329

3430
@Override
3531
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
36-
bind = flutterPluginBinding;
3732
methodChannel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), "flutter_adspark");
3833
methodChannel.setMethodCallHandler(this);
3934
}
4035

4136
@Override
4237
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
43-
String method = call.method;
44-
Log.d(TAG, "MethodChannel onMethodCall method:" + method + " arguments:" + call.arguments);
45-
if (method.equals("getPlatformVersion")) {
38+
if (call.method.equals("getPlatformVersion")) {
4639
result.success("Android " + android.os.Build.VERSION.RELEASE);
4740
} else {
4841
result.notImplemented();

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ subprojects {
2626
project.evaluationDependsOn(':app')
2727
}
2828

29-
task clean(type: Delete) {
29+
tasks.register("clean", Delete) {
3030
delete rootProject.buildDir
3131
}

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
# platform :ios, '12.0'
33
source 'https://github.com/volcengine/volcengine-specs.git'
44

55
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -150,7 +150,6 @@
150150
97C146EC1CF9000F007C117D /* Resources */,
151151
9705A1C41CF9048500538489 /* Embed Frameworks */,
152152
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
153-
B284AF3E2595C0756662FC25 /* [CP] Copy Pods Resources */,
154153
);
155154
buildRules = (
156155
);
@@ -167,7 +166,7 @@
167166
97C146E61CF9000F007C117D /* Project object */ = {
168167
isa = PBXProject;
169168
attributes = {
170-
LastUpgradeCheck = 1300;
169+
LastUpgradeCheck = 1510;
171170
ORGANIZATIONNAME = "";
172171
TargetAttributes = {
173172
97C146ED1CF9000F007C117D = {
@@ -210,10 +209,12 @@
210209
/* Begin PBXShellScriptBuildPhase section */
211210
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
212211
isa = PBXShellScriptBuildPhase;
212+
alwaysOutOfDate = 1;
213213
buildActionMask = 2147483647;
214214
files = (
215215
);
216216
inputPaths = (
217+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
217218
);
218219
name = "Thin Binary";
219220
outputPaths = (
@@ -246,6 +247,7 @@
246247
};
247248
9740EEB61CF901F6004384FC /* Run Script */ = {
248249
isa = PBXShellScriptBuildPhase;
250+
alwaysOutOfDate = 1;
249251
buildActionMask = 2147483647;
250252
files = (
251253
);
@@ -258,23 +260,6 @@
258260
shellPath = /bin/sh;
259261
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
260262
};
261-
B284AF3E2595C0756662FC25 /* [CP] Copy Pods Resources */ = {
262-
isa = PBXShellScriptBuildPhase;
263-
buildActionMask = 2147483647;
264-
files = (
265-
);
266-
inputFileListPaths = (
267-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
268-
);
269-
name = "[CP] Copy Pods Resources";
270-
outputFileListPaths = (
271-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
272-
);
273-
runOnlyForDeploymentPostprocessing = 0;
274-
shellPath = /bin/sh;
275-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
276-
showEnvVarsInLog = 0;
277-
};
278263
/* End PBXShellScriptBuildPhase section */
279264

280265
/* Begin PBXSourcesBuildPhase section */
@@ -351,7 +336,7 @@
351336
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
352337
GCC_WARN_UNUSED_FUNCTION = YES;
353338
GCC_WARN_UNUSED_VARIABLE = YES;
354-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
339+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
355340
MTL_ENABLE_DEBUG_INFO = NO;
356341
SDKROOT = iphoneos;
357342
SUPPORTED_PLATFORMS = iphoneos;
@@ -426,7 +411,7 @@
426411
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
427412
GCC_WARN_UNUSED_FUNCTION = YES;
428413
GCC_WARN_UNUSED_VARIABLE = YES;
429-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
414+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
430415
MTL_ENABLE_DEBUG_INFO = YES;
431416
ONLY_ACTIVE_ARCH = YES;
432417
SDKROOT = iphoneos;
@@ -475,7 +460,7 @@
475460
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
476461
GCC_WARN_UNUSED_FUNCTION = YES;
477462
GCC_WARN_UNUSED_VARIABLE = YES;
478-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
463+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
479464
MTL_ENABLE_DEBUG_INFO = NO;
480465
SDKROOT = iphoneos;
481466
SUPPORTED_PLATFORMS = iphoneos;

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/ios/Runner/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@
4343
</array>
4444
<key>UIViewControllerBasedStatusBarAppearance</key>
4545
<false/>
46+
<key>CADisableMinimumFrameDurationOnPhone</key>
47+
<true/>
48+
<key>UIApplicationSupportsIndirectInputEvents</key>
49+
<true/>
4650
</dict>
4751
</plist>

example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: Demonstrates how to use the flutter_adspark plugin.
44
# The following line prevents the package from being accidentally published to
55
# pub.dev using `flutter pub publish`. This is preferred for private packages.
66
publish_to: "none" # Remove this line if you wish to publish to pub.dev
7+
version: 1.1.3+6
78

89
environment:
910
sdk: ">=2.12.0 <4.0.0"

0 commit comments

Comments
 (0)