Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
b9ce4ba
opt follow item
bggRGjQaUbCoE Apr 26, 2026
dccb5d4
create fav tag from fav panel
bggRGjQaUbCoE Apr 26, 2026
fae0cfe
disable blank issue
bggRGjQaUbCoE Apr 27, 2026
60801f9
disable auto reset brightness on iOS
bggRGjQaUbCoE Apr 26, 2026
6755b7f
get real-time video duration in post panel
bggRGjQaUbCoE Apr 27, 2026
b406a00
opt audio normalization
bggRGjQaUbCoE Apr 27, 2026
89fdc28
auto add to created fav/follow
bggRGjQaUbCoE Apr 27, 2026
80ecd35
sort follow tag
bggRGjQaUbCoE Apr 27, 2026
524b6bc
unify horizontal video models
bggRGjQaUbCoE Apr 28, 2026
47e3a47
fix fav sort
bggRGjQaUbCoE Apr 27, 2026
f7a2be1
fix #1904
bggRGjQaUbCoE Apr 28, 2026
9ed8b14
feat: add to filter (#1903)
My-Responsitories Apr 28, 2026
88c01ff
improve handling video pop
bggRGjQaUbCoE Apr 28, 2026
11b6f24
opt reorder
bggRGjQaUbCoE Apr 28, 2026
7b51b69
improve handling android window mode
bggRGjQaUbCoE Apr 29, 2026
c7864ff
Reapply "hide systembar when preview"
bggRGjQaUbCoE Apr 29, 2026
cd26cf6
tweaks
bggRGjQaUbCoE Apr 29, 2026
57c683d
upgrade deps
bggRGjQaUbCoE Apr 29, 2026
6feb1c1
tweak
bggRGjQaUbCoE Apr 29, 2026
5937d83
ios bottom sheet patch
bggRGjQaUbCoE Apr 29, 2026
3a9cafa
handle foldable screen size
bggRGjQaUbCoE Apr 30, 2026
9752ae2
refresh live msg if needed
bggRGjQaUbCoE Apr 30, 2026
5d87361
do not exit onDestroy
bggRGjQaUbCoE Apr 30, 2026
74c389b
custom fullscreen sc width
bggRGjQaUbCoE Apr 30, 2026
c0b5876
fix #1917
bggRGjQaUbCoE Apr 30, 2026
3a46ce2
upgrade deps
bggRGjQaUbCoE Apr 30, 2026
887c352
fix #1917
bggRGjQaUbCoE Apr 30, 2026
a2b54e5
tweak
bggRGjQaUbCoE Apr 30, 2026
7b6d8be
Release 2.0.6
bggRGjQaUbCoE Apr 30, 2026
3f34d1a
fix: orientation (#1935)
My-Responsitories May 1, 2026
84bbbd1
update gitignore
bggRGjQaUbCoE May 1, 2026
d85dd86
opt sc endTime
bggRGjQaUbCoE May 1, 2026
dbbdb61
fix decrease system brightness on android
bggRGjQaUbCoE May 1, 2026
d434f54
fix #1929
bggRGjQaUbCoE May 1, 2026
a91a90b
tweak
bggRGjQaUbCoE May 2, 2026
09c73d3
improve slide gesture patch
bggRGjQaUbCoE May 2, 2026
68e9afd
fixes
bggRGjQaUbCoE May 2, 2026
b00b9e2
opt view opus images
bggRGjQaUbCoE May 2, 2026
293f046
fix orientation
bggRGjQaUbCoE May 2, 2026
74ed061
opt icons
bggRGjQaUbCoE May 2, 2026
cd1fdd4
transparent live dm panel barrier
bggRGjQaUbCoE May 2, 2026
cdd9289
opt reply cardLabels
bggRGjQaUbCoE May 2, 2026
c4847ca
opt icons
bggRGjQaUbCoE May 2, 2026
d41f69e
improve gesture patch
bggRGjQaUbCoE May 2, 2026
5830927
opt android orientation
bggRGjQaUbCoE May 3, 2026
9259e84
upgrade deps
bggRGjQaUbCoE May 3, 2026
d5bf348
add audio volume button & slider on desktop
bggRGjQaUbCoE May 3, 2026
ac96314
flutter 3.41.9
bggRGjQaUbCoE May 4, 2026
9b0c9e9
navigator patch
bggRGjQaUbCoE May 4, 2026
0f07dcc
upgrade deps
bggRGjQaUbCoE May 4, 2026
4228f91
fix: html numeric character (#1972)
My-Responsitories May 4, 2026
31aeab3
fix ios build
bggRGjQaUbCoE May 4, 2026
d0373da
fix get video part dimension
bggRGjQaUbCoE May 5, 2026
b7b40c5
Release 2.0.7
bggRGjQaUbCoE May 5, 2026
f5dbfce
tweaks (#2032)
My-Responsitories May 8, 2026
d631165
tweaks
bggRGjQaUbCoE May 8, 2026
23db485
improve player gesture
bggRGjQaUbCoE May 9, 2026
dbb865d
fix #2002
bggRGjQaUbCoE May 9, 2026
fab34df
tweaks
bggRGjQaUbCoE May 9, 2026
1a45b5c
upgrade deps
bggRGjQaUbCoE May 10, 2026
0344823
fix(dynamics): disable shadow ban check for scheduled posts (#2059)
uhiovk May 11, 2026
be9f39d
remove longpress threshold on main
bggRGjQaUbCoE May 12, 2026
0581d8f
upgrade deps
bggRGjQaUbCoE May 12, 2026
5087542
tweaks
bggRGjQaUbCoE May 12, 2026
24769e1
fix #2087
bggRGjQaUbCoE May 13, 2026
b33fdf1
tweaks (#2100)
My-Responsitories May 15, 2026
3ac21d9
improve player gesture
bggRGjQaUbCoE May 14, 2026
2c511d1
tweaks
bggRGjQaUbCoE May 14, 2026
ce706d4
improve horizontal touch slop
bggRGjQaUbCoE May 15, 2026
ad6c0e0
upgrade deps
bggRGjQaUbCoE May 15, 2026
d5293fb
feat: handle vote uri (#2105)
My-Responsitories May 15, 2026
9d21be1
improve text selection patch
bggRGjQaUbCoE May 15, 2026
859f144
image anim patch
bggRGjQaUbCoE May 15, 2026
200329d
remove image anim check
bggRGjQaUbCoE May 16, 2026
e142cb6
add patch link
bggRGjQaUbCoE May 16, 2026
cd82668
fix #2112
bggRGjQaUbCoE May 16, 2026
0c308a7
fix text selection patch
bggRGjQaUbCoE May 16, 2026
8683658
opt update page transition
bggRGjQaUbCoE May 16, 2026
ed39624
opt member header
bggRGjQaUbCoE May 16, 2026
68e302b
fix #2143
bggRGjQaUbCoE May 18, 2026
b04c3d8
custom angle degree
bggRGjQaUbCoE May 18, 2026
6a1db5d
opt handle brightness/volume
bggRGjQaUbCoE May 17, 2026
cc169db
upgrade deps
bggRGjQaUbCoE May 18, 2026
ad15837
upgrade deps
bggRGjQaUbCoE May 19, 2026
1fcc264
flutter 3.44.0
bggRGjQaUbCoE May 16, 2026
0cac46e
fix setEnabledSystemUIMode
bggRGjQaUbCoE May 19, 2026
89522e2
layoutbuilder patch
bggRGjQaUbCoE May 19, 2026
66f15f5
add publish throttle
bggRGjQaUbCoE May 19, 2026
46baad8
upgrade deps
bggRGjQaUbCoE May 20, 2026
7c34203
improve handle opus nullType
bggRGjQaUbCoE May 20, 2026
be5889e
upgrade deps
bggRGjQaUbCoE May 20, 2026
5fbc86a
fix #2171
bggRGjQaUbCoE May 21, 2026
8309be9
fix #2171
bggRGjQaUbCoE May 21, 2026
dd85aba
upgrade deps
bggRGjQaUbCoE May 24, 2026
87914a2
fix fav favFolder toast
bggRGjQaUbCoE May 24, 2026
99a950b
fix #2192
bggRGjQaUbCoE May 24, 2026
c2ceb9e
improve pay coin
bggRGjQaUbCoE May 24, 2026
f14aacd
handle msg type `EN_MSG_TYPE_CUSTOM_FACE`
bggRGjQaUbCoE May 24, 2026
3b68fe4
opt rcmd
bggRGjQaUbCoE May 25, 2026
56756c5
fix #2209
bggRGjQaUbCoE May 26, 2026
41c8e1a
refa: log (#2216)
My-Responsitories May 26, 2026
41027f7
fix #2226
bggRGjQaUbCoE May 28, 2026
6464987
upgrade deps
bggRGjQaUbCoE May 27, 2026
6c61ff5
opt publish page
bggRGjQaUbCoE May 28, 2026
1ba6983
fix #2233
bggRGjQaUbCoE May 29, 2026
60f800b
gitignore
bggRGjQaUbCoE May 30, 2026
2e7c804
upgrade deps
bggRGjQaUbCoE May 30, 2026
6a75061
fix dev build
bggRGjQaUbCoE May 30, 2026
d4d9fc3
refa: jni (#2244)
My-Responsitories May 30, 2026
b3e2dcf
opt: win32 api (#2246)
My-Responsitories May 31, 2026
bee04fb
refa jni
bggRGjQaUbCoE May 31, 2026
90590fa
refa pip
bggRGjQaUbCoE May 31, 2026
fb9568a
opt: remove volatile (#2255)
My-Responsitories May 31, 2026
9ac37d6
add pip backward/forward btns
bggRGjQaUbCoE Jun 1, 2026
2de59b0
opt set pip actions
bggRGjQaUbCoE Jun 1, 2026
6d7ae5d
opt: java
My-Responsitories Jun 1, 2026
e619946
chore: remove unused assets (#2267)
My-Responsitories Jun 2, 2026
66a191b
refa: cache manager (#2266)
My-Responsitories Jun 2, 2026
e5f2a1b
opt image grid
bggRGjQaUbCoE Jun 1, 2026
6bcd143
update icons
bggRGjQaUbCoE Jun 2, 2026
31f8435
upgrade deps
bggRGjQaUbCoE Jun 3, 2026
bed533e
style: account switch descriptions (#2280)
My-Responsitories Jun 3, 2026
3446484
fix: remove hive file (#2276)
My-Responsitories Jun 3, 2026
508384c
constraint video bottomsheet
bggRGjQaUbCoE Jun 3, 2026
af1cd30
opt video bottomsheet
bggRGjQaUbCoE Jun 3, 2026
7b01c33
more fab anim
bggRGjQaUbCoE Jun 4, 2026
f637771
android patch
bggRGjQaUbCoE Jun 4, 2026
cd367a8
Release 2.0.8
bggRGjQaUbCoE Jun 4, 2026
73d7d78
fix #2295
bggRGjQaUbCoE Jun 4, 2026
295a587
lint
bggRGjQaUbCoE Jun 4, 2026
038285c
fix parse opus
bggRGjQaUbCoE Jun 4, 2026
88f0ab1
opt chat item
bggRGjQaUbCoE Jun 4, 2026
5007099
fix #2308
bggRGjQaUbCoE Jun 5, 2026
9acb32a
opt logout main
bggRGjQaUbCoE Jun 6, 2026
78b3df4
validate cookie on login
bggRGjQaUbCoE Jun 6, 2026
14d1c37
flutter 3.44.1
bggRGjQaUbCoE Jun 6, 2026
c44e92d
update patch
bggRGjQaUbCoE Jun 6, 2026
3b9403a
fix #2305
bggRGjQaUbCoE Jun 6, 2026
b67756c
fix: mob geetest (#2341)
My-Responsitories Jun 7, 2026
ccc7cd0
upgrade deps
bggRGjQaUbCoE Jun 8, 2026
b4fd362
fix #2342
bggRGjQaUbCoE Jun 8, 2026
01a1cb2
fix #2350
bggRGjQaUbCoE Jun 8, 2026
22fc256
fix #2351
bggRGjQaUbCoE Jun 8, 2026
75bbe5a
fix: all music achievement (#2363)
My-Responsitories Jun 9, 2026
46d9f8a
fix #2365
bggRGjQaUbCoE Jun 9, 2026
fe15024
opt: subtitle & video screenshot (#2364)
My-Responsitories Jun 9, 2026
90d79b2
custom player/max volume
bggRGjQaUbCoE Jun 8, 2026
22f3707
feat: custom buffer size (#2370)
My-Responsitories Jun 10, 2026
8784cb9
opt icon
bggRGjQaUbCoE Jun 9, 2026
6cf41d1
fix RichTextField selection (#2374)
bggRGjQaUbCoE Jun 10, 2026
76cd529
fix #2378
bggRGjQaUbCoE Jun 10, 2026
9e1a747
upgrade deps
bggRGjQaUbCoE Jun 10, 2026
aa35569
update RichTextField
bggRGjQaUbCoE Jun 11, 2026
ea5d759
switch live stream/format/codec/url support
bggRGjQaUbCoE Jun 11, 2026
1c5aa2b
opt: fullscreen dialog (#2385)
My-Responsitories Jun 11, 2026
c2ae3cd
fix #2386
bggRGjQaUbCoE Jun 12, 2026
64a7d3a
configure audio buffer
bggRGjQaUbCoE Jun 12, 2026
4f8d64a
upgrade deps
bggRGjQaUbCoE Jun 12, 2026
c7b0a89
flutter 3.44.2
bggRGjQaUbCoE Jun 12, 2026
7e3c5c6
Release 2.0.9
bggRGjQaUbCoE Jun 12, 2026
1c19925
fix RichTextField text replace
bggRGjQaUbCoE Jun 12, 2026
199ad27
tweaks (#2404)
My-Responsitories Jun 13, 2026
b02e425
fix video progress
bggRGjQaUbCoE Jun 13, 2026
3fae4ef
opt ui
bggRGjQaUbCoE Jun 13, 2026
2536350
fix parse dyn
bggRGjQaUbCoE Jun 13, 2026
686611d
chore: sync with upstream and apply local Android/media/widget updates
furrybluelan Jun 22, 2026
bd29f73
docs: 添加致歉说明,解释开发进度延迟
furrybluelan Jun 22, 2026
e7255fc
fix: 更新 Android 构建流程,添加对开发版本的支持并优化输出文件
furrybluelan Jun 22, 2026
160ac47
fix: 更新 Debian 控制文件生成逻辑,移除旧版控制文件并添加动态内容
furrybluelan Jun 22, 2026
fd4df1e
fix: 修复 Debian 控制文件路径错误,确保正确生成控制文件
furrybluelan Jun 22, 2026
4b8a941
fix: 更新 Debian 控制文件中的包名,使用上下文前缀替代应用名称
furrybluelan Jun 22, 2026
319a854
fix: 更新 Debian 控制文件中的包名,使用应用名称的小写形式替代前缀
furrybluelan Jun 22, 2026
5e79799
fix: 更新 Debian 控制文件生成逻辑,使用动态内容替代静态内容并优化依赖项格式
furrybluelan Jun 22, 2026
b609c62
fix: 更新重命名逻辑,简化 Linux 资产路径匹配
furrybluelan Jun 22, 2026
7c7ae11
upgrade deps
bggRGjQaUbCoE Jun 24, 2026
3e2e78a
flutter 3.44.3
bggRGjQaUbCoE Jun 24, 2026
3510b6c
cache live stream pref
bggRGjQaUbCoE Jun 14, 2026
fe2ebeb
fix RichTextField text delete
bggRGjQaUbCoE Jun 17, 2026
c3c8876
fix RichTextField text replace on desktop
bggRGjQaUbCoE Jun 20, 2026
1ce2999
remove delete range on focus changed
bggRGjQaUbCoE Jun 23, 2026
16b38d1
opt like btn
bggRGjQaUbCoE Jun 24, 2026
c4dd07a
feat: dyn reaction
bggRGjQaUbCoE Jun 19, 2026
267de61
update android default hwdec
bggRGjQaUbCoE Jun 20, 2026
3b92e4f
set desktop brightness if needed
bggRGjQaUbCoE Jun 23, 2026
e4cbb4c
update default spring description
bggRGjQaUbCoE Jun 23, 2026
3dee6a8
build
bggRGjQaUbCoE Jun 24, 2026
9d94c72
tweaks (#2426)
My-Responsitories Jun 26, 2026
735bb0a
opt set dyn react count
bggRGjQaUbCoE Jun 24, 2026
c23518d
upgrade deps
bggRGjQaUbCoE Jun 26, 2026
2ba6f0d
flutter 3.44.4
bggRGjQaUbCoE Jun 26, 2026
a623cee
refactor progress bar
bggRGjQaUbCoE Jun 26, 2026
7049e5c
opt ui
bggRGjQaUbCoE Jun 26, 2026
840f8d5
opt HeartBeat
bggRGjQaUbCoE Jun 26, 2026
5d15bf5
refactor dyn uplist
bggRGjQaUbCoE Jun 27, 2026
d33d2a1
tweaks
bggRGjQaUbCoE Jun 27, 2026
37c7d1f
upgrade deps
bggRGjQaUbCoE Jun 27, 2026
aac4524
opt dyn desktop ctr
bggRGjQaUbCoE Jun 28, 2026
add6dfc
lazy init dyn refreshctrl
bggRGjQaUbCoE Jun 28, 2026
ace9404
opt nested scroll
bggRGjQaUbCoE Jun 28, 2026
0df637f
popup menu patch
bggRGjQaUbCoE Jun 28, 2026
1320046
小小的改点issues
Li2548 Jun 30, 2026
aba3b1f
update
Li2548 Jun 30, 2026
48fa676
Update build.py
Li2548 Jun 30, 2026
5eb553c
修正编译问题
Li2548 Jun 30, 2026
dd88bb6
小改动
Li2548 Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"flutter": "3.41.6"
"flutter": "3.44.4"
}
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug-反馈.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ body:
options:
- label: 搜索了 [历史 issue](https://github.com/FRBLanApps/PiliSuper/issues?q=is%3Aissue) ,并未发现相同问题
required: true
- label: 搜索了 [上游的历史 issue](https://github.com/bggRGjQaUbCoE/PiliPlus/issues?q=is%3Aissue) ,并未发现相同问题
- label: 搜索了 [上游的历史 issue](https://github.com/bggRGjQaUbCoE/PiliPlus/issues?q=is%3Aissue) ,404 not found
required: true
- label: 正在使用最新版本。
required: true
- label: 已排除网络问题
required: true
- label: 我并没有详细看这些选项,我只是机械化的选了这些,请关闭本issue。
required: false
- label: 已排除账号问题
required: true
- label: 已排除设置问题
required: true
- label: 我并没有详细看这些选项,我只是机械化的选了这些,请关闭本issue。
required: false

- type: checkboxes
id: assign
Expand Down
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/功能请求.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ body:
options:
- label: 搜索了 [历史 issue](https://github.com/FRBLanApps/PiliSuper/issues?q=is%3Aissue) ,并未发现相同功能请求
required: true
- label: 搜索了 [上游的历史 issue](https://github.com/bggRGjQaUbCoE/PiliPlus/issues?q=is%3Aissue) ,并未发现相同功能请求
- label: 搜索了 [上游的历史 issue](https://github.com/bggRGjQaUbCoE/PiliPlus/issues?q=is%3Aissue) ,404 not found
required: true
- label: 正在使用最新版本。
required: true
- label: 设置中未搜索到该功能
required: true
- label: 我并没有详细看这些选项,我只是机械化的选了这些,请关闭本issue。
required: false
- label: 设置中未搜索到该功能
required: true


- type: checkboxes
id: assign
Expand Down
58 changes: 56 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on:
description: "Build Android"
default: true
type: boolean
build_android_dev:
description: "Build Android Dev version"
default: true
type: boolean
build_ios:
description: "Build iOS"
default: true
Expand Down Expand Up @@ -77,7 +81,7 @@ jobs:
run: |
dart pub global activate rename

- name: Build
- name: Build Release
env:
KEYSTORE_B64: ${{ secrets.SIGN_KEYSTORE_BASE64 }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
Expand Down Expand Up @@ -115,13 +119,45 @@ jobs:
"${SIGN_ARGS[@]}" \
"${NAME_ARGS[@]}" \

- name: Build Dev
env:
KEYSTORE_B64: ${{ secrets.SIGN_KEYSTORE_BASE64 }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASS: ${{ secrets.KEY_PASSWORD }}
STORE_PASS: ${{ secrets.KEYSTORE_PASSWORD }}
if: ${{ github.event_name == 'pull_request' || inputs.build_android_dev == true }}
run: |
SIGN_ARGS=()
if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "$KEYSTORE_B64" ]]; then
SIGN_ARGS+=(
--sign
--keystore-base64 "$KEYSTORE_B64"
--key-alias "$KEY_ALIAS"
--key-password "$KEY_PASS"
--store-password "$STORE_PASS"
--clean-keys
)
fi

python3 build.py android \
--output-prefix PiliSuper \
--output dist \
--dev \
--skip_rename \
--no-patches \
--no-pub-get \
"${SIGN_ARGS[@]}" \

- name: Release
if: ${{ inputs.tag != '' }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag }}
name: ${{ inputs.tag }}
files: dist/PiliSuper_android_*.apk
files: |
dist/PiliSuper_android_*_arm64-v8a.apk
dist/PiliSuper_android_*_armeabi-v7a.apk
dist/PiliSuper_android_*_x86_64.apk

- uses: actions/upload-artifact@v7
with:
Expand All @@ -140,6 +176,24 @@ jobs:
name: Android_x86_64
path: dist/PiliSuper_android_*_x86_64.apk
archive: false

- uses: actions/upload-artifact@v7
with:
name: Android_arm64-v8a
path: dist/PiliSuper_android_*_arm64-v8a_dev.apk
archive: false

- uses: actions/upload-artifact@v7
with:
name: Android_armeabi-v7a
path: dist/PiliSuper_android_*_armeabi-v7a_dev.apk
archive: false

- uses: actions/upload-artifact@v7
with:
name: Android_x86_64
path: dist/PiliSuper_android_*_x86_64_dev.apk
archive: false

# ───────────── iOS ─────────────
ios:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/
Package.resolved

# IntelliJ related
*.iml
Expand Down Expand Up @@ -146,4 +149,4 @@ pili_release.json

dist

test*.dart
test*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
直接在关于那里找导入/导出登录信息/设置即可。
产生的文本既适用于本项目,也适用于上游的PiliPlus。

## 致歉

抱歉各位用户,近两个月团队成员都在忙于中考高考与竞赛等人生大事,无暇顾及本软件的开发工作,对此,我们深表歉意,我们将会在未来给大家带来更好的功能更新,敬请期待。

## 适配平台

- [x] Android
Expand Down
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- lib/grpc/bilibili/**
# - lib/grpc/google/**
# - lib/common/widgets/flutter/**

formatter:
Expand Down
29 changes: 22 additions & 7 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ import org.jetbrains.kotlin.konan.properties.Properties

plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}

val agpMajorVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
.substringBefore('.')
.toInt()
val builtInKotlinProperty = providers.gradleProperty("android.builtInKotlin").orNull
val isBuiltInKotlinEnabled = agpMajorVersion >= 9 &&
(builtInKotlinProperty == null || builtInKotlinProperty.toBoolean())
if (!isBuiltInKotlinEnabled) {
apply(plugin = "org.jetbrains.kotlin.android")
}

android {
namespace = "com.example.piliplus"
compileSdk = flutter.compileSdkVersion
Expand All @@ -18,12 +27,6 @@ android {
targetCompatibility = JavaVersion.VERSION_17
}

kotlin {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
}
}

defaultConfig {
applicationId = "com.example.piliplus"
minSdk = flutter.minSdkVersion
Expand Down Expand Up @@ -51,6 +54,12 @@ android {
}
}

buildFeatures {
Comment thread
Li2548 marked this conversation as resolved.
if (project.hasProperty("dev")) {
resValues = true
}
}

buildTypes {
all {
signingConfig = config ?: signingConfigs["debug"]
Expand Down Expand Up @@ -82,6 +91,12 @@ android {
}
}

kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
}
}

flutter {
source = "../.."
}
Loading