Skip to content

Commit 3fb0471

Browse files
committed
👷 添加 CI
1 parent f1f237f commit 3fb0471

File tree

10 files changed

+85
-19
lines changed

10 files changed

+85
-19
lines changed

.github/workflows/flutter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Flutter CI
1+
name: Build
22

33
# This workflow is triggered on pushes to the repository.
44

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
<h5 align="center">一款优质的穿山甲内容输出插件,支持「短剧」和「小视频」,可加入(激励视频、信息流广告、视频流广告)</h5>
33

44
<p align="center">
5-
<a href="https://pub.dev/packages/flutter_adcontent"><img src="https://img.shields.io/pub/v/flutter_adcontent?logo=dart"/>
6-
<a href="https://flutterads.top/"><img src="https://img.shields.io/badge/OS-iOS%20%7C%20Android-blue?logo=preact"/>
7-
<a href="https://flutterads.top/"><img src="https://img.shields.io/badge/Pro-v1.2.1-success?logo=flutter&logoColor=FFD700"/>
8-
<a href="https://flutterads.top/"><img src="https://img.shields.io/badge/Site-FlutterAds-success?logo=webtrees&logoColor=FFD700"/>
9-
</p>
10-
<p align="center">
11-
<a href="https://flutterads.top/"><img src="https://raw.githubusercontent.com/FlutterAds/.github/main/gromore_pro_site.png" alt="gromore"/></a>
5+
<a href="https://pub.dev/packages/flutter_adcontent">
6+
<img src="https://img.shields.io/pub/v/flutter_adcontent?logo=dart"/>
7+
<img src="https://img.shields.io/badge/OS-iOS%20%7C%20Android-blue?logo=preact"/>
8+
</a>
9+
<a href="https://github.com/FlutterAds/flutter_adcontent">
10+
<img src="https://github.com/FlutterAds/flutter_adcontent/actions/workflows/flutter.yml/badge.svg">
11+
<img src=https://img.shields.io/github/stars/FlutterAds/flutter_adcontent?color=brightgreen>
12+
</a>
13+
<a href="https://flutterads.top/">
14+
<img src="https://img.shields.io/badge/Pro-v3.5.0-success?logo=flutter&logoColor=FFD700"/>
15+
<a href="https://flutterads.top/">
16+
<img src="https://img.shields.io/badge/Site-FlutterAds-success?logo=webtrees&logoColor=FFD700"/>
17+
</a>
1218
</p>
1319

1420
## 💻 支持平台

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

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Runner.xcodeproj/project.pbxproj

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

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12+
3B9C7A23ACCE30581BD94D33 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F0C0232D4F1C21336FC9DCEC /* libPods-Runner.a */; };
1213
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
1314
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
1415
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
@@ -32,10 +33,13 @@
3233
/* Begin PBXFileReference section */
3334
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3435
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
36+
20D5869B544403445416F852 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
37+
38E5D95191CDC5FF1EEAFE28 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
3538
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3639
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
3740
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
3841
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
42+
7B1647769D8B3F6CE0C298F3 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
3943
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
4044
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
4145
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -44,19 +48,32 @@
4448
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4549
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4650
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
51+
F0C0232D4F1C21336FC9DCEC /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4752
/* End PBXFileReference section */
4853

4954
/* Begin PBXFrameworksBuildPhase section */
5055
97C146EB1CF9000F007C117D /* Frameworks */ = {
5156
isa = PBXFrameworksBuildPhase;
5257
buildActionMask = 2147483647;
5358
files = (
59+
3B9C7A23ACCE30581BD94D33 /* libPods-Runner.a in Frameworks */,
5460
);
5561
runOnlyForDeploymentPostprocessing = 0;
5662
};
5763
/* End PBXFrameworksBuildPhase section */
5864

5965
/* Begin PBXGroup section */
66+
4D56D27F2F1D23A09018C6C3 /* Pods */ = {
67+
isa = PBXGroup;
68+
children = (
69+
7B1647769D8B3F6CE0C298F3 /* Pods-Runner.debug.xcconfig */,
70+
20D5869B544403445416F852 /* Pods-Runner.release.xcconfig */,
71+
38E5D95191CDC5FF1EEAFE28 /* Pods-Runner.profile.xcconfig */,
72+
);
73+
name = Pods;
74+
path = Pods;
75+
sourceTree = "<group>";
76+
};
6077
9740EEB11CF90186004384FC /* Flutter */ = {
6178
isa = PBXGroup;
6279
children = (
@@ -74,6 +91,8 @@
7491
9740EEB11CF90186004384FC /* Flutter */,
7592
97C146F01CF9000F007C117D /* Runner */,
7693
97C146EF1CF9000F007C117D /* Products */,
94+
4D56D27F2F1D23A09018C6C3 /* Pods */,
95+
AFCC59FB60B8CC1DCAC6CE91 /* Frameworks */,
7796
);
7897
sourceTree = "<group>";
7998
};
@@ -109,13 +128,22 @@
109128
name = "Supporting Files";
110129
sourceTree = "<group>";
111130
};
131+
AFCC59FB60B8CC1DCAC6CE91 /* Frameworks */ = {
132+
isa = PBXGroup;
133+
children = (
134+
F0C0232D4F1C21336FC9DCEC /* libPods-Runner.a */,
135+
);
136+
name = Frameworks;
137+
sourceTree = "<group>";
138+
};
112139
/* End PBXGroup section */
113140

114141
/* Begin PBXNativeTarget section */
115142
97C146ED1CF9000F007C117D /* Runner */ = {
116143
isa = PBXNativeTarget;
117144
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
118145
buildPhases = (
146+
AC0F345E2E790DE99759DFC8 /* [CP] Check Pods Manifest.lock */,
119147
9740EEB61CF901F6004384FC /* Run Script */,
120148
97C146EA1CF9000F007C117D /* Sources */,
121149
97C146EB1CF9000F007C117D /* Frameworks */,
@@ -138,7 +166,7 @@
138166
97C146E61CF9000F007C117D /* Project object */ = {
139167
isa = PBXProject;
140168
attributes = {
141-
LastUpgradeCheck = 1300;
169+
LastUpgradeCheck = 1510;
142170
ORGANIZATIONNAME = "";
143171
TargetAttributes = {
144172
97C146ED1CF9000F007C117D = {
@@ -181,10 +209,12 @@
181209
/* Begin PBXShellScriptBuildPhase section */
182210
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
183211
isa = PBXShellScriptBuildPhase;
212+
alwaysOutOfDate = 1;
184213
buildActionMask = 2147483647;
185214
files = (
186215
);
187216
inputPaths = (
217+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
188218
);
189219
name = "Thin Binary";
190220
outputPaths = (
@@ -195,6 +225,7 @@
195225
};
196226
9740EEB61CF901F6004384FC /* Run Script */ = {
197227
isa = PBXShellScriptBuildPhase;
228+
alwaysOutOfDate = 1;
198229
buildActionMask = 2147483647;
199230
files = (
200231
);
@@ -207,6 +238,28 @@
207238
shellPath = /bin/sh;
208239
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
209240
};
241+
AC0F345E2E790DE99759DFC8 /* [CP] Check Pods Manifest.lock */ = {
242+
isa = PBXShellScriptBuildPhase;
243+
buildActionMask = 2147483647;
244+
files = (
245+
);
246+
inputFileListPaths = (
247+
);
248+
inputPaths = (
249+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
250+
"${PODS_ROOT}/Manifest.lock",
251+
);
252+
name = "[CP] Check Pods Manifest.lock";
253+
outputFileListPaths = (
254+
);
255+
outputPaths = (
256+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
257+
);
258+
runOnlyForDeploymentPostprocessing = 0;
259+
shellPath = /bin/sh;
260+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
261+
showEnvVarsInLog = 0;
262+
};
210263
/* End PBXShellScriptBuildPhase section */
211264

212265
/* Begin PBXSourcesBuildPhase section */
@@ -283,7 +336,7 @@
283336
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
284337
GCC_WARN_UNUSED_FUNCTION = YES;
285338
GCC_WARN_UNUSED_VARIABLE = YES;
286-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
339+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
287340
MTL_ENABLE_DEBUG_INFO = NO;
288341
SDKROOT = iphoneos;
289342
SUPPORTED_PLATFORMS = iphoneos;
@@ -358,7 +411,7 @@
358411
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
359412
GCC_WARN_UNUSED_FUNCTION = YES;
360413
GCC_WARN_UNUSED_VARIABLE = YES;
361-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
414+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
362415
MTL_ENABLE_DEBUG_INFO = YES;
363416
ONLY_ACTIVE_ARCH = YES;
364417
SDKROOT = iphoneos;
@@ -407,7 +460,7 @@
407460
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
408461
GCC_WARN_UNUSED_FUNCTION = YES;
409462
GCC_WARN_UNUSED_VARIABLE = YES;
410-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
463+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
411464
MTL_ENABLE_DEBUG_INFO = NO;
412465
SDKROOT = iphoneos;
413466
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.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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/test/widget_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ void main() {
1818
// Verify that platform version is retrieved.
1919
expect(
2020
find.byWidgetPredicate(
21-
(Widget widget) => widget is Text &&
22-
widget.data!.startsWith('Running on:'),
21+
(Widget widget) =>
22+
widget is Text && widget.data!.startsWith('Running on:'),
2323
),
2424
findsOneWidget,
2525
);

0 commit comments

Comments
 (0)