File tree 5 files changed +94
-5
lines changed
5 files changed +94
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ # This workflow is triggered on pushes to the repository.
4
+
5
+ on :
6
+ push :
7
+ branches :
8
+ - master
9
+
10
+ jobs :
11
+ build :
12
+ # This job will run on macos virtual machine
13
+ runs-on : macos-13
14
+ steps :
15
+
16
+ # Setup Java environment in order to build the Android app.
17
+ - uses : actions/checkout@v3
18
+ - uses : actions/setup-java@v3
19
+ with :
20
+ distribution : ' temurin'
21
+ java-version : ' 11'
22
+ cache : ' gradle'
23
+ # Setup the flutter environment.
24
+ - uses : subosito/flutter-action@v2
25
+ with :
26
+ channel : ' stable' # 'dev', 'alpha', default to: 'stable'
27
+ # flutter-version: '1.22.x' # you can also specify exact version of flutter
28
+
29
+ # Get flutter dependencies.
30
+ - run : flutter pub get
31
+
32
+ # Check for any formatting issues in the code.
33
+ - run : dart format --set-exit-if-changed .
34
+
35
+ # Statically analyze the Dart code for any errors.
36
+ - run : dart analyze .
37
+
38
+ # ####
39
+ # Build app
40
+ # ####
41
+ # Build apk.
42
+ - run : cd example && flutter build apk
43
+ # Build ios
44
+ - run : cd example && flutter build ios --no-codesign
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*.*.*'
7
+
8
+ jobs :
9
+ create_release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout repository
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Extract version from tag
16
+ id : extract_version
17
+ run : |
18
+ VERSION=${GITHUB_REF#refs/tags/v}
19
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
20
+
21
+ - name : Read release notes
22
+ id : release_notes
23
+ run : |
24
+ VERSION=${{ env.VERSION }}
25
+ CHANGELOG=$(sed -n "/## $VERSION/,/^## /p" CHANGELOG.md | sed '$d' | tail -n +2)
26
+ if [ -z "$CHANGELOG" ]; then
27
+ echo "Release notes not found for version $VERSION"
28
+ exit 1
29
+ fi
30
+ echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
31
+ echo "$CHANGELOG" >> $GITHUB_ENV
32
+ echo "EOF" >> $GITHUB_ENV
33
+
34
+ - name : Create GitHub release
35
+ uses : softprops/action-gh-release@v2
36
+ with :
37
+ body : ${{ env.RELEASE_NOTES }}
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
## 1.1.3
2
-
3
2
* 💄 优化说明文档
4
3
* 📱 优化图片无法正确显示的问题
5
4
Original file line number Diff line number Diff line change 1
1
<h1 align =" center " >Flutter AdSpark Pro</h1 >
2
2
<h5 align =" center " >一款优质的广告监测、增长分析、归因上报、事件管理插件(巨量广告、穿山甲)</h5 >
3
3
4
+
4
5
<p align =" center " >
5
6
<a href =" https://pub.dev/packages/flutter_adspark " >
6
7
<img src =" https://img.shields.io/pub/v/flutter_adspark?logo=dart " />
7
- <img src =" https://img.shields.io/badge/OS-iOS%20%7C%20Android-blue?logo=preact " />
8
+ <img src =" https://img.shields.io/badge/OS-iOS%20%7C%20Android-blue?logo=preact " />
9
+ </a >
10
+ <a href =" https://github.com/FlutterAds/flutter_adspark " >
11
+ <img src =" https://github.com/FlutterAds/flutter_adspark/actions/workflows/flutter.yml/badge.svg " >
12
+ <img src=https://img.shields.io/github/stars/FlutterAds/flutter_adspark?color=brightgreen>
8
13
</a >
9
- <a href =" https://flutterads.top " >
10
- <img src =" https://img.shields.io/badge/Pro-v1.2.1-success?logo=flutter&logoColor=FFD700 " />
14
+ <a href =" https://flutterads.top/ " >
15
+ <img src =" https://img.shields.io/badge/Pro-v3.5.0-success?logo=flutter&logoColor=FFD700 " />
16
+ <a href =" https://flutterads.top/ " >
11
17
<img src =" https://img.shields.io/badge/Site-FlutterAds-success?logo=webtrees&logoColor=FFD700 " />
12
18
</a >
13
19
</p >
17
23
</a >
18
24
</p >
19
25
26
+
20
27
## 💻 支持平台
21
28
22
29
- 穿山甲
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void main() {
15
15
/// 初始化
16
16
Future <void > init () async {
17
17
bool ? result = await FlutterAdspark .init ("appid" , "huawei" );
18
- print ("FlutterAdspark init result: $result " );
18
+ debugPrint ("FlutterAdspark init result: $result " );
19
19
}
20
20
21
21
class MyApp extends StatefulWidget {
You can’t perform that action at this time.
0 commit comments