File tree Expand file tree Collapse file tree 5 files changed +94
-5
lines changed
Expand file tree Collapse file tree 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 11## 1.1.3
2-
32* 💄 优化说明文档
43* 📱 优化图片无法正确显示的问题
54
Original file line number Diff line number Diff line change 11<h1 align =" center " >Flutter AdSpark Pro</h1 >
22<h5 align =" center " >一款优质的广告监测、增长分析、归因上报、事件管理插件(巨量广告、穿山甲)</h5 >
33
4+
45<p align =" center " >
56<a href =" https://pub.dev/packages/flutter_adspark " >
67<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>
813</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/ " >
1117<img src =" https://img.shields.io/badge/Site-FlutterAds-success?logo=webtrees&logoColor=FFD700 " />
1218</a >
1319</p >
1723</a >
1824</p >
1925
26+
2027## 💻 支持平台
2128
2229- 穿山甲
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void main() {
1515/// 初始化
1616Future <void > init () async {
1717 bool ? result = await FlutterAdspark .init ("appid" , "huawei" );
18- print ("FlutterAdspark init result: $result " );
18+ debugPrint ("FlutterAdspark init result: $result " );
1919}
2020
2121class MyApp extends StatefulWidget {
You can’t perform that action at this time.
0 commit comments