Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
bffdfae
scroll view patch
bggRGjQaUbCoE Apr 20, 2026
d32456f
opt ui
bggRGjQaUbCoE Apr 20, 2026
26a5d00
opt image gesture
bggRGjQaUbCoE Apr 21, 2026
dd5ccd1
text selection patch
bggRGjQaUbCoE Apr 21, 2026
d7b4cea
improve Dyn/Topic DraggableScrollableSheet
bggRGjQaUbCoE Apr 21, 2026
79c9849
Sync progress if needed before exit (#1896)
cnctem Apr 22, 2026
3542829
fix(article): fix Opus article body font size too small (#1897)
Starfallan Apr 23, 2026
d6bce6a
Revert "hide systembar when preview"
bggRGjQaUbCoE Apr 23, 2026
24ab750
opt onOrientationChanged
bggRGjQaUbCoE Apr 23, 2026
efc202c
upgrade deps
bggRGjQaUbCoE Apr 23, 2026
5b5983e
precheck video dimension
bggRGjQaUbCoE Apr 23, 2026
490a08f
grpc search archive
bggRGjQaUbCoE Apr 24, 2026
73484f1
opt ui
bggRGjQaUbCoE Apr 24, 2026
91f0017
fix(player): suppress volume indicator during audio duck events (#1899)
Starfallan Apr 24, 2026
d372142
view vote image
bggRGjQaUbCoE Apr 24, 2026
1761a9a
fix image gesture
bggRGjQaUbCoE Apr 24, 2026
326291d
upgrade deps
bggRGjQaUbCoE Apr 25, 2026
8fd5f35
replace errorWidget with errorBuilder in CachedNetworkSVGImage
bggRGjQaUbCoE Apr 25, 2026
baef165
Release 2.0.5
bggRGjQaUbCoE Apr 25, 2026
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
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
ed6353e
opt video header
bggRGjQaUbCoE Jun 30, 2026
f615a43
opt trending header
bggRGjQaUbCoE Jun 30, 2026
ee770f4
upgrade deps
bggRGjQaUbCoE Jun 30, 2026
8dd86b8
parse em html
bggRGjQaUbCoE Jul 1, 2026
600677c
opt icons
bggRGjQaUbCoE Jul 2, 2026
a63cc46
opt icons
bggRGjQaUbCoE Jul 2, 2026
2a71126
update video header param
bggRGjQaUbCoE Jul 3, 2026
f73fb09
stop triple on interrupted
bggRGjQaUbCoE Jul 3, 2026
2047152
remove FAB hero
bggRGjQaUbCoE Jul 3, 2026
b540647
feat: cross row select (#2437)
My-Responsitories Jul 3, 2026
8c8eb18
selectable region selection patch
bggRGjQaUbCoE Jul 3, 2026
46ce01d
opt opus
bggRGjQaUbCoE Jul 4, 2026
fd017e0
tweaks
bggRGjQaUbCoE Jul 4, 2026
0036b58
feat: reply vote
bggRGjQaUbCoE Jul 4, 2026
8cf2195
opt vote item
bggRGjQaUbCoE Jul 4, 2026
e3d4056
opt show live cover
bggRGjQaUbCoE Jul 3, 2026
2179e56
upgrade deps
bggRGjQaUbCoE Jul 5, 2026
15b6f91
Revert "opt: webview ua"
My-Responsitories Jul 6, 2026
5e1c73a
perf(ci): remove unnecessary packages from linux x64 install deps (#2…
VillagerTom Jul 7, 2026
aa03eed
dyn topic fold
bggRGjQaUbCoE Jul 6, 2026
6bedd9d
opt ui
bggRGjQaUbCoE Jul 6, 2026
89d56ec
upgrade deps
bggRGjQaUbCoE Jul 7, 2026
90eee40
flutter 3.44.5
bggRGjQaUbCoE Jul 7, 2026
cae5bef
fix(player): preserve default codec preferences after upgrade (#2444)
Starfallan Jul 11, 2026
1946218
tweaks
bggRGjQaUbCoE Jul 7, 2026
5aa49a1
upgrade deps
bggRGjQaUbCoE Jul 11, 2026
24e17c5
flutter 3.44.6
bggRGjQaUbCoE Jul 11, 2026
8211648
refa expandable
bggRGjQaUbCoE Jul 11, 2026
bcd8bc7
opt export subtitle
bggRGjQaUbCoE Jul 11, 2026
77153c1
refa intro panel gesture
bggRGjQaUbCoE Jul 12, 2026
dc306a0
opt intro panel
bggRGjQaUbCoE Jul 12, 2026
c1aeaca
Release 2.1.0
bggRGjQaUbCoE Jul 12, 2026
1aebdef
sync: 跟进至 2.1.0 (c1aeaca)
wm-develop Jul 29, 2026
20f68a8
Merge branch 'ohos' into feat/sync-upstream-2.1.0
wm-develop Jul 29, 2026
1a33c52
Merge branch 'ohos' into feat/sync-upstream-2.1.0
wm-develop Jul 29, 2026
e3645b5
chore: 移除两处冗余的 cached_network_image_ce 导入(hide CacheManager 后已废弃)
wm-develop Jul 29, 2026
05254d2
Merge branch 'ohos' into feat/sync-upstream-2.1.0
wm-develop Jul 29, 2026
a49bc1a
更新到上游2.1.0
cnoim Jul 29, 2026
2a22255
修复底栏在某些情况下会错误显示的问题
cnoim Jul 29, 2026
6c04157
修复横竖屏切换后沉浸光感底栏又突显的问题
cnoim Jul 29, 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.41.9"
}
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
.svn/
.swiftpm/
migrate_working_dir/
Package.resolved

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

dist

test*.dart
test*

ohos/build-profile.json5

Expand Down
14 changes: 8 additions & 6 deletions .vscode/build_env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ Future<void> _updatePubspecVersion(int versionCode) async {
final pubspecPath = './pubspec.yaml';
final file = File(pubspecPath);
if (!await file.exists()) return;

final content = await file.readAsString();
final lines = content.split('\n');

for (var i = 0; i < lines.length; i++) {
if (lines[i].startsWith('version:')) {
final match = RegExp(r'version:\s*([\d.]+)(\+[\d]+)?').firstMatch(lines[i]);
final match = RegExp(
r'version:\s*([\d.]+)(\+[\d]+)?',
).firstMatch(lines[i]);
if (match != null) {
final versionName = match.group(1)!;
lines[i] = 'version: $versionName+$versionCode';
Expand All @@ -24,12 +26,12 @@ Future<void> _updatePubspecVersion(int versionCode) async {

void main() async {
// 手动指定 versionName
const versionName = '2.0.1-ohos-3';
const versionName = '2.1.0-ohos';

// 通过 git 命令获取 hash 和 code
final versionCode = await _getGitCommitCount();
final commitHash = await _getGitCommitHash();

await _updatePubspecVersion(versionCode);

final env = {
Expand All @@ -39,7 +41,7 @@ void main() async {
'pili.time': DateTime.now().millisecondsSinceEpoch ~/ 1000,
'pili.hash': commitHash,
'pili.code': versionCode,
'ENABLE_FLEX_OVERFLOW': false
'ENABLE_FLEX_OVERFLOW': false,
};
File('./.vscode/env.json')
..createSync(recursive: true)
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 {
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
Loading