Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #397

Merged
merged 326 commits into from
May 23, 2024
Merged

Dev #397

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
326 commits
Select commit Hold shift + click to select a range
fbbbf41
feat: custom theming for stats widget
rebelonion Mar 27, 2024
ea678ef
feat: visual representation of selected widget colors
rebelonion Mar 27, 2024
7951c2c
fix: some widget sting newlines
rebelonion Mar 28, 2024
6b868fa
fix: not meant to be quoted (#300)
AbandonedCart Mar 28, 2024
78f6ec2
feat: add watch title search button (#303)
AbandonedCart Mar 28, 2024
2dc3035
feat: more options in anime and manga side
aayush2622 Mar 29, 2024
eff0a34
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 Mar 29, 2024
1c1d14f
fix: "popular manga" text missing
aayush2622 Mar 29, 2024
a02b8b7
fix: text in manga side not disappearing
aayush2622 Mar 29, 2024
92be9bf
fix: removed onlist for now
aayush2622 Mar 29, 2024
c29147a
Just some quality of life garbage (#304)
AbandonedCart Mar 29, 2024
e31d2ad
fix: logout of comments when log out of anilist
rebelonion Mar 29, 2024
ca482ea
fix: navbar breaking on return to comments fragment
rebelonion Mar 29, 2024
e34a20b
fix: comment scrolling freezing
rebelonion Mar 29, 2024
63a5150
fix: home screen number spacing
rebelonion Mar 29, 2024
51beac2
Revert (some of) "Just some quality of life garbage (#304)" (#306)
AbandonedCart Mar 30, 2024
c0bccc0
feat: combined queries
aayush2622 Mar 30, 2024
99b3bba
feat: adult only media option
aayush2622 Mar 30, 2024
04f2034
fix: duplicate media
aayush2622 Mar 31, 2024
f30e6b7
fix: banner animation
aayush2622 Mar 31, 2024
2d5d02f
fix: adult only in recent too
aayush2622 Mar 31, 2024
76e11e5
fix: removed unused banners
aayush2622 Mar 31, 2024
95b2939
fix: hide recent if its empty
aayush2622 Mar 31, 2024
0d8a825
feat: Download subs
aayush2622 Mar 31, 2024
86427a4
Add CommitHash to Version Name :prayge: (#307)
Sadwhy Apr 1, 2024
a815bac
feat: 18+ media on infinite scroll too
aayush2622 Apr 1, 2024
aabbe91
feat(discord): custom buttons (#295)
sneazy-ibo Apr 2, 2024
146805a
feat(filter): revamping search for anime and manga (#272)
sneazy-ibo Apr 2, 2024
b2a44cf
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 Apr 2, 2024
79d20b0
feat: ibo happy now?
aayush2622 Apr 2, 2024
9e96fd1
feat(accounts): redirect on avatar click (#310)
sneazy-ibo Apr 2, 2024
55bc2ad
Updated icons (#311)
Sadwhy Apr 2, 2024
ba17252
fix: automate getting contributions (#314)
AbandonedCart Apr 2, 2024
ff3131d
feat: manual repository entries
AbandonedCart Mar 27, 2024
012b1cd
fix: make settings great again
AbandonedCart Mar 30, 2024
47b1940
feat: Some comment design tweaks
aayush2622 Apr 3, 2024
75e9054
fix: make bottom to top work properly (#320)
AbandonedCart Apr 4, 2024
720b40a
feat: custom downloader and downloader location (#313)
rebelonion Apr 4, 2024
6bfadfa
Update beta.yml
rebelonion Apr 4, 2024
36c476b
fix: remove armeabi
rebelonion Apr 4, 2024
e1b968b
feat: add a time since chapter item (#316)
AbandonedCart Apr 4, 2024
5979479
Two intents enter, one intent leaves (#317)
AbandonedCart Apr 4, 2024
d08e89b
Merge branch 'pr/299' into dev
rebelonion Apr 4, 2024
7688ffa
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion Apr 4, 2024
da56aec
fix: return jsdeliver
rebelonion Apr 4, 2024
e0df092
fix: some tweaks in settings
aayush2622 Apr 4, 2024
dec4996
feat: voiceActors (not info for now)
aayush2622 Apr 4, 2024
0d5815d
fix: workflow
aayush2622 Apr 4, 2024
63c3058
feat: voiceActor's characters info
aayush2622 Apr 5, 2024
d6e6c6f
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 Apr 5, 2024
d8c311f
Include all Splits for discord (#324)
Sadwhy Apr 5, 2024
e4574d6
feat: send all apks to telegram
rebelonion Apr 5, 2024
ce11c71
Fixed artifact upload (#326)
Sadwhy Apr 5, 2024
d2f118a
feat: more media in recommendations
aayush2622 Apr 5, 2024
13a65c2
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 Apr 5, 2024
72c69e7
ExoPlayer improvements (#325)
AbandonedCart Apr 5, 2024
f6c7b09
fix: remove duplicate extension code (#322)
AbandonedCart Apr 5, 2024
5fcbfeb
fix: download name comparison
rebelonion Apr 5, 2024
4d28ae2
fix: handle last manga chapter check being null
rebelonion Apr 5, 2024
2f30bdb
fix: case for empty headers
rebelonion Apr 5, 2024
8bde831
fix: default SearchSources to false
rebelonion Apr 5, 2024
cf7ccae
feat: AppUpdater can handle splits
rebelonion Apr 6, 2024
594b71d
fix: cache upcoming widget data
rebelonion Apr 6, 2024
dd994dc
fix: request storage permission for novels
rebelonion Apr 6, 2024
04538c5
fix: fix the fix for MangaUpdates (#327)
AbandonedCart Apr 6, 2024
58d5b5b
fix: fix the fix for the fix for MangaUpdates
rebelonion Apr 6, 2024
771cdcc
fix: MangaExtensionRepos where AnimeExtensionRepos should be
rebelonion Apr 6, 2024
9ace8e5
fix: it was only an int for convenience (#330)
AbandonedCart Apr 6, 2024
9f7e01a
fix: only show count on releasing/hiatus manga
rebelonion Apr 6, 2024
04fb31e
fix: changelogs for telegram
aayush2622 Apr 6, 2024
ae5907e
fix: correct updater for alpha
rebelonion Apr 6, 2024
79337b5
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion Apr 6, 2024
e5cb7c7
fix: Voice artists not showing media
aayush2622 Apr 6, 2024
abe3f88
fix: telegram changelogs (again)
aayush2622 Apr 6, 2024
e49f0db
feat: socials in media
aayush2622 Apr 6, 2024
3666758
feat(socials): ratings and progress
aayush2622 Apr 7, 2024
47d05e7
fix: exo / subtitle improvements (#335)
AbandonedCart Apr 8, 2024
f96d2ff
feat: add per-widget configuration (#333)
AbandonedCart Apr 8, 2024
29e115c
feat: repo editor in extension window (#332)
AbandonedCart Apr 8, 2024
a51e025
fix: address possible format issues (#331)
AbandonedCart Apr 8, 2024
6be5896
Added Skip Recap Feature (#336)
JohnVictoryz Apr 8, 2024
87535a9
fix: got lost in the cherry-picking (#337)
AbandonedCart Apr 8, 2024
9b6dc13
fix: idr
aayush2622 Apr 8, 2024
a5a94e5
fix: no 13 arifs
aayush2622 Apr 8, 2024
c242d9d
fix: no more 13 arifs
aayush2622 Apr 8, 2024
5e52774
feat: toggle for icon in rpc
aayush2622 Apr 10, 2024
674a512
feat: split all settings
aayush2622 Apr 11, 2024
3619355
fix: idr
aayush2622 Apr 11, 2024
b961701
fix: settings scrolling
aayush2622 Apr 11, 2024
c0e3243
Feet(Settings): UI changes (#351)
Sadwhy Apr 12, 2024
70be4e9
fix: Disclaimer dialog crash
aayush2622 Apr 12, 2024
9ec448e
Feet(Settings): Revamped UI (#352)
Sadwhy Apr 12, 2024
ea29449
fix(settings): Centre icons
Sadwhy Apr 14, 2024
7ca4448
fix: offline mode failing
rebelonion Apr 15, 2024
a8ff4fd
feat: nomedia file
rebelonion Apr 15, 2024
bf33f5d
fix: activity opening twice
rebelonion Apr 15, 2024
126bc61
chore: update extension api
rebelonion Apr 15, 2024
4b413b7
fix: alpha update message
rebelonion Apr 15, 2024
6e399b3
feat: embedded tracks
rebelonion Apr 15, 2024
714591d
fix: infinite loop
rebelonion Apr 15, 2024
1d00558
feat: sort forks by stars
aayush2622 Apr 15, 2024
1082850
fix: custom theme dialog not working
aayush2622 Apr 15, 2024
820a09b
feat: settings to recycler view
aayush2622 Apr 15, 2024
9d3d394
feat: hide a12 theme settings for unsupported devices
aayush2622 Apr 15, 2024
f8a6fad
fix(settings): Center icons (again) 😔 (#361)
Sadwhy Apr 16, 2024
91d1d2c
feat: WIP new settings UI
aayush2622 Apr 16, 2024
cd3bb20
[skip ci] feat: new settings UI
aayush2622 Apr 17, 2024
3d1040b
[skip ci] feat: theme crash fix
aayush2622 Apr 17, 2024
670d16b
Addons (#368)
rebelonion Apr 19, 2024
3f19cad
fix: workflow universal
rebelonion Apr 19, 2024
72c07b7
fix: app updater single apk
rebelonion Apr 19, 2024
dd38bb1
Update Crowdin configuration file
rebelonion Apr 19, 2024
865b96a
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion Apr 19, 2024
386e02a
fix: exoplayer initialization
rebelonion Apr 19, 2024
24147e7
chore: code cleanup
rebelonion Apr 19, 2024
70a50ec
chore: cleanup pt2
rebelonion Apr 19, 2024
13f5d09
Update Crowdin configuration file
rebelonion Apr 19, 2024
44178b2
Why use decapitated actions? (#373)
Sadwhy Apr 19, 2024
3c46c21
feat: downloading extensions
rebelonion Apr 19, 2024
3622d91
fix: allow deprecated media to be played
rebelonion Apr 21, 2024
e475cc5
fix: novel extension installing
rebelonion Apr 21, 2024
4477e3a
fix: view clickable after hidden
rebelonion Apr 21, 2024
00758af
feat: desc for every setting
aayush2622 Apr 21, 2024
3fd01d5
fix: forgot to remove todo strings
aayush2622 Apr 21, 2024
233f4bf
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion Apr 21, 2024
6113a10
fix: update spinner
rebelonion Apr 21, 2024
513b937
fix: some sorting problems
rebelonion Apr 21, 2024
4ffe9d7
fix: novel loading
rebelonion Apr 21, 2024
870cb75
fix: duplicate download
rebelonion Apr 21, 2024
d2127f9
fix: double setting page in theme settings
aayush2622 Apr 21, 2024
c5a03c4
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 Apr 21, 2024
e81773f
fix: reading in manga instead of watching
aayush2622 Apr 22, 2024
55ad8dc
chore: cleanup
aayush2622 Apr 22, 2024
856deb7
feat: activity view
aayush2622 Apr 25, 2024
da456d3
feat(social): like button fix
aayush2622 Apr 26, 2024
f4c95b6
feat(social): mark alr watched
aayush2622 Apr 26, 2024
7ecdbfd
fix(social): thick bar
aayush2622 Apr 27, 2024
90e611d
fix(social): crash when clicking story
aayush2622 Apr 27, 2024
140dd2e
fix(social): activity name
aayush2622 Apr 27, 2024
73ef5f4
feat(social): text activity
aayush2622 Apr 27, 2024
133354a
feat(social): continue from where you left
aayush2622 Apr 27, 2024
90b9b7b
feat(social): filter activity only with in 3days
aayush2622 Apr 27, 2024
c947dbd
feat(social): only save last 100 activity ids
aayush2622 Apr 27, 2024
a573fbd
chore: cleanup
aayush2622 Apr 28, 2024
ea48809
chore: cleanup
aayush2622 Apr 28, 2024
0a0da65
chore: cleanup pt 3
aayush2622 Apr 29, 2024
8b582a9
fix: task system cleanup
rebelonion Apr 29, 2024
140737b
fix: next button
rebelonion Apr 29, 2024
e30124d
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 Apr 29, 2024
a7589a0
fix: combine some shit
rebelonion Apr 29, 2024
ed0e06d
fix: more combining shit
rebelonion Apr 29, 2024
0967721
fix: too much combining
rebelonion Apr 29, 2024
e9a60ea
fix: collections separate
rebelonion Apr 29, 2024
eca3807
fix: notification choosing wrong source
rebelonion Apr 29, 2024
040b084
fix: download title mismatch
rebelonion Apr 29, 2024
4fc96b7
fix: some context issues
rebelonion Apr 30, 2024
69fb86d
feat: special UE handler
rebelonion Apr 30, 2024
95a9d28
fix: null media.users
rebelonion Apr 30, 2024
390ce9a
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 Apr 30, 2024
fdb7f45
chore: cleanup pt 3
aayush2622 Apr 30, 2024
4233003
feat: list view for home page media
aayush2622 Apr 30, 2024
0ea1ec1
fix: title height
aayush2622 Apr 30, 2024
74fcd58
fix: strings
aayush2622 Apr 30, 2024
08c3806
fix: padding fic the Final
aayush2622 Apr 30, 2024
85835b5
fix: ffmpeg not downloading all tracks
rebelonion Apr 30, 2024
2d2f058
fix: downloaded next not working
rebelonion May 1, 2024
1431027
fix: smol changes
rebelonion May 1, 2024
9b132e9
fix: hide image search for manga
rebelonion May 1, 2024
4362dd9
Very small UI change (#384)
Sadwhy May 1, 2024
31c509f
fix: decouple animator for stories
rebelonion May 1, 2024
71870ff
fix: banner crash
aayush2622 May 1, 2024
8a0224e
feat: crash report | various small fixes
rebelonion May 1, 2024
f03af68
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion May 1, 2024
e32bfa0
fix: network safety
rebelonion May 2, 2024
deda67a
fix: more network stuffs
rebelonion May 2, 2024
a3e1cc4
fix: scanlator | language selection
rebelonion May 2, 2024
97ff591
fix: switch visibility
rebelonion May 2, 2024
3a88656
feat: share as file option for crash
rebelonion May 2, 2024
e9551be
feat(Media List view): switch between grid and list view
aayush2622 May 2, 2024
d5be218
fix: use binding in CrashActivity.kt
aayush2622 May 2, 2024
a1b9f90
fix: switch auto off
rebelonion May 3, 2024
95c0b57
fix media initialization check
rebelonion May 3, 2024
dc19694
fix: check for empty uri
rebelonion May 3, 2024
126fe75
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion May 3, 2024
7bdc7c1
feat: moved social bellow synonyms
aayush2622 May 3, 2024
425ca15
feat: hide media from home screen
aayush2622 May 3, 2024
f86086c
fix: only save when clicked save
aayush2622 May 3, 2024
aae80f6
fix: something
aayush2622 May 4, 2024
7aa0951
feat: long click "continue Watching" to see hidden items
aayush2622 May 4, 2024
390c709
fix: not un-hiding item
aayush2622 May 4, 2024
14f29d0
fix: optimization # 1
rebelonion May 5, 2024
b187cf0
fix: optimization # 2
rebelonion May 6, 2024
abcf9fc
feat: activity ui tweaks
aayush2622 May 6, 2024
636a56f
feat: multi stream audio support
rebelonion May 7, 2024
40c2989
chore: version bump
rebelonion May 7, 2024
fda68a7
fix: lang codes not found
rebelonion May 7, 2024
7fdd8d5
fix: no need for update post
rebelonion May 7, 2024
9d13920
fix: audio track names scrambled
rebelonion May 7, 2024
7e504df
fix: comment api change
rebelonion May 9, 2024
4ac53da
fix: addon race condition
rebelonion May 9, 2024
e7b6ba8
fix: broken default home screen
rebelonion May 9, 2024
b3d3913
feat: log last loaded activity
rebelonion May 9, 2024
be97229
chore: AGP
rebelonion May 9, 2024
e1a865c
feat: notification filtering
rebelonion May 9, 2024
988e4de
feat: list searching
rebelonion May 11, 2024
13e2e37
fix: searchHistoryAdapter call before initialized
rebelonion May 11, 2024
831b99a
feat: message when downloader not installed
rebelonion May 11, 2024
a0fabd3
feat: reviews
rebelonion May 12, 2024
fa659c7
feat: creating activities in app
rebelonion May 12, 2024
6e3a3bb
fix: blank text check
rebelonion May 12, 2024
d355cc5
feat: replying to activities
rebelonion May 12, 2024
001c384
feat: replies in stories
rebelonion May 13, 2024
b0b51c4
feat: reply count in story
rebelonion May 13, 2024
a3b1d3d
fix: reply text background color
aayush2622 May 13, 2024
2c521b4
feat: anilist post confirmation
rebelonion May 16, 2024
ac531cd
fix: string sanitizer
rebelonion May 16, 2024
fd8dd26
fix: broken neutral button
rebelonion May 16, 2024
f1d16ba
feat: support for multiple audio/subtitle downloads
rebelonion May 16, 2024
6c1176a
feat: view subscriptions in settings
rebelonion May 17, 2024
df2867c
feat: subscriptions in notifications
rebelonion May 17, 2024
949bcc4
fix: some error checking
rebelonion May 18, 2024
bfa8471
fix: idr
aayush2622 May 18, 2024
f53d27b
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 May 18, 2024
114be6f
fix: review rework
aayush2622 May 19, 2024
ab360b3
feat: extension testing
rebelonion May 19, 2024
91f7281
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion May 19, 2024
d12ddc9
feat: reviews in info page
aayush2622 May 20, 2024
1dd3bdd
fix: show only trusted
rebelonion May 20, 2024
2c3eb82
fix: show subscription name
rebelonion May 20, 2024
41ed5a6
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion May 20, 2024
ea045c1
fix: keep ui on the main thread
rebelonion May 20, 2024
212bce0
Invisible Status Discord Rpc (#394)
itsmechinmoy May 20, 2024
1c73664
Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
rebelonion May 20, 2024
c2a10c2
fix: null safe cast
rebelonion May 20, 2024
10df198
feat: video fixing options
rebelonion May 20, 2024
fe1a7af
feat: test ms response
rebelonion May 20, 2024
b3ed8ac
Update LICENSE.md
rebelonion May 21, 2024
66805bd
fix: list view crash
rebelonion May 21, 2024
fd42533
fix: attribution
rebelonion May 21, 2024
039e3d6
feat: banner and cover for airing notifications
aayush2622 May 21, 2024
48ccb2c
feat : qol things
aayush2622 May 21, 2024
0008da2
Merge remote-tracking branch 'origin/dev' into dev
aayush2622 May 21, 2024
143eed8
feat: add calculator to app
rebelonion May 22, 2024
4ccf6fa
fix: rearrange some stuff
rebelonion May 22, 2024
e5ec6a6
fix: various small fixes
rebelonion May 22, 2024
d06c980
fix: you're welcome <@1193590680308699266>
rebelonion May 23, 2024
773b7f5
feat: remove 18+ media and anilist adult is off
aayush2622 May 23, 2024
3d187a0
fix: smol fixes
rebelonion May 23, 2024
94ffc25
feat: open profile links
rebelonion May 23, 2024
560eef4
Merge branch 'main' into dev
rebelonion May 23, 2024
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
  •  
  •  
  •  
31 changes: 14 additions & 17 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ jobs:
echo "COMMIT_LOG=${COMMIT_LOGS}" >> $GITHUB_ENV
# Debugging: Print the variable to check its content
echo "$COMMIT_LOGS"
echo "$COMMIT_LOGS" > commit_log.txt
shell: /usr/bin/bash -e {0}
env:
CI: true
continue-on-error: true

- name: Save Current SHA for Next Run
run: echo ${{ github.sha }} > last_sha.txt
Expand Down Expand Up @@ -82,13 +84,13 @@ jobs:
- name: Build with Gradle
run: ./gradlew assembleGoogleAlpha -Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/key.keystore -Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }}

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4.3.1
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: APKs
path: |
app/build/outputs/apk/google/alpha/*/*.apk
app/build/outputs/apk/google/alpha/*/*/*.apk
name: Dantotsu
retention-days: 5
compression-level: 9
path: "app/build/outputs/apk/google/alpha/app-google-alpha.apk"

- name: Upload APK to Discord and Telegram
if: ${{ github.repository == 'rebelonion/Dantotsu' }}
Expand All @@ -102,7 +104,7 @@ jobs:
commit_messages="${commit_messages:0:$max_length}... (truncated)"
fi
contentbody=$( jq -nc --arg msg "Alpha-Build: <@&1225347048321191996> **$VERSION**:" --arg commits "$commit_messages" '{"content": ($msg + "\n" + $commits)}' )
curl -F "payload_json=${contentbody}" -F "dantotsu_debug=@app/build/outputs/apk/google/alpha/app-google-universal-alpha.apk" ${{ secrets.DISCORD_WEBHOOK }}
curl -F "payload_json=${contentbody}" -F "dantotsu_debug=@app/build/outputs/apk/google/alpha/app-google-alpha.apk" ${{ secrets.DISCORD_WEBHOOK }}

#Telegram
curl -F "chat_id=${{ secrets.TELEGRAM_CHANNEL_ID }}" \
Expand All @@ -115,18 +117,13 @@ jobs:
VERSION: ${{ env.VERSION }}

- name: Upload Current SHA as Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: last-sha
path: last_sha.txt


- name: Delete Old Pre-Releases
id: delete-pre-releases
uses: sgpublic/delete-release-action@master
- name: Upload Commit log as Artifact
uses: actions/upload-artifact@v4
with:
pre-release-drop: true
pre-release-keep-count: 3
pre-release-drop-tag: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: commit-log
path: commit_log.txt
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ output.json

#other
scripts/

#crowdin
crowdin.yml
675 changes: 9 additions & 666 deletions LICENSE.md

Large diffs are not rendered by default.

69 changes: 37 additions & 32 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ plugins {
id 'com.google.devtools.ksp'
}

def gitCommitHash = providers.exec {
commandLine("git", "rev-parse", "--verify", "--short", "HEAD")
}.standardOutput.asText.get().trim()

android {
compileSdk 34

Expand All @@ -14,9 +18,10 @@ android {
minSdk 21
targetSdk 34
versionCode((System.currentTimeMillis() / 60000).toInteger())
versionName "3.0.0"
versionCode 300000000
versionName "3.1.0"
versionCode 300100000
signingConfig signingConfigs.debug

}

flavorDimensions += "store"
Expand All @@ -38,7 +43,7 @@ android {
buildTypes {
alpha {
applicationIdSuffix ".beta" // keep as beta by popular request
versionNameSuffix "-alpha01"
versionNameSuffix "-alpha01-" + gitCommitHash
manifestPlaceholders.icon_placeholder = "@mipmap/ic_launcher_alpha"
manifestPlaceholders.icon_placeholder_round = "@mipmap/ic_launcher_alpha_round"
debuggable System.getenv("CI") == null
Expand Down Expand Up @@ -75,14 +80,14 @@ android {

dependencies {

// FireBase
googleImplementation platform('com.google.firebase:firebase-bom:32.7.4')
googleImplementation 'com.google.firebase:firebase-analytics-ktx:21.5.1'
googleImplementation 'com.google.firebase:firebase-crashlytics-ktx:18.6.2'
// Core
// FireBase
googleImplementation platform('com.google.firebase:firebase-bom:33.0.0')
googleImplementation 'com.google.firebase:firebase-analytics-ktx:22.0.0'
googleImplementation 'com.google.firebase:firebase-crashlytics-ktx:19.0.0'
// Core
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.browser:browser:1.8.0'
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.fragment:fragment-ktx:1.6.2'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
Expand All @@ -94,59 +99,59 @@ dependencies {
implementation 'com.github.Blatzar:NiceHttp:0.4.4'
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.webkit:webkit:1.10.0'
implementation 'androidx.webkit:webkit:1.11.0'
implementation "com.anggrayudi:storage:1.5.5"

// Glide
// Glide
ext.glide_version = '4.16.0'
api "com.github.bumptech.glide:glide:$glide_version"
implementation "com.github.bumptech.glide:glide:$glide_version"
ksp "com.github.bumptech.glide:ksp:$glide_version"
implementation "com.github.bumptech.glide:okhttp3-integration:$glide_version"
implementation 'jp.wasabeef:glide-transformations:4.3.0'

// Exoplayer
ext.exo_version = '1.3.0'
// Exoplayer
ext.exo_version = '1.3.1'
implementation "androidx.media3:media3-exoplayer:$exo_version"
implementation "androidx.media3:media3-ui:$exo_version"
implementation "androidx.media3:media3-exoplayer-hls:$exo_version"
implementation "androidx.media3:media3-exoplayer-dash:$exo_version"
implementation "androidx.media3:media3-datasource-okhttp:$exo_version"
implementation "androidx.media3:media3-session:$exo_version"
//media3 casting
// Media3 Casting
implementation "androidx.media3:media3-cast:$exo_version"
implementation "androidx.mediarouter:mediarouter:1.6.0"
implementation "androidx.mediarouter:mediarouter:1.7.0"

// UI
implementation 'com.google.android.material:material:1.11.0'
//implementation 'nl.joery.animatedbottombar:library:1.1.0'
implementation 'com.github.rebelonion:AnimatedBottomBar:v1.1.0'
// UI
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.github.RepoDevil:AnimatedBottomBar:7fcb9af'
implementation 'com.flaviofaria:kenburnsview:1.0.7'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
implementation 'com.alexvasilkov:gesture-views:2.8.3'
implementation 'com.github.VipulOG:ebook-reader:0.1.6'
implementation 'androidx.paging:paging-runtime-ktx:3.2.1'
implementation 'com.github.eltos:simpledialogfragments:v3.7'
implementation 'com.github.AAChartModel:AAChartCore-Kotlin:93972bc'
implementation 'com.github.AAChartModel:AAChartCore-Kotlin:7.2.1'

// Markwon
// Markwon
ext.markwon_version = '4.6.2'
implementation "io.noties.markwon:core:$markwon_version"
implementation "io.noties.markwon:editor:$markwon_version"
implementation "io.noties.markwon:ext-strikethrough:$markwon_version"
implementation "io.noties.markwon:ext-tables:$markwon_version"
implementation "io.noties.markwon:ext-tasklist:$markwon_version"
implementation "io.noties.markwon:html:$markwon_version"
implementation "io.noties.markwon:image-glide:$markwon_version"

// Groupie
implementation "io.noties.markwon:core:$markwon_version"
implementation "io.noties.markwon:editor:$markwon_version"
implementation "io.noties.markwon:ext-strikethrough:$markwon_version"
implementation "io.noties.markwon:ext-tables:$markwon_version"
implementation "io.noties.markwon:ext-tasklist:$markwon_version"
implementation "io.noties.markwon:html:$markwon_version"
implementation "io.noties.markwon:image-glide:$markwon_version"

// Groupie
ext.groupie_version = '2.10.1'
implementation "com.github.lisawray.groupie:groupie:$groupie_version"
implementation "com.github.lisawray.groupie:groupie-viewbinding:$groupie_version"

// string matching
// String Matching
implementation 'me.xdrop:fuzzywuzzy:1.4.0'

// Aniyomi
// Aniyomi
implementation 'io.reactivex:rxjava:1.3.8'
implementation 'io.reactivex:rxandroid:1.2.1'
implementation 'ru.beryukhov:flowreactivenetwork:1.0.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import com.google.firebase.FirebaseApp
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.google.firebase.crashlytics.ktx.crashlytics
import com.google.firebase.ktx.Firebase
import com.google.firebase.ktx.app

class FirebaseCrashlytics : CrashlyticsInterface {
override fun initialize(context: Context) {
FirebaseApp.initializeApp(context)
}

override fun logException(e: Throwable) {
FirebaseCrashlytics.getInstance().recordException(e)
}
Expand Down
52 changes: 29 additions & 23 deletions app/src/google/java/ani/dantotsu/others/AppUpdater.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,18 @@ object AppUpdater {
setPositiveButton(currContext()!!.getString(R.string.lets_go)) {
MainScope().launch(Dispatchers.IO) {
try {
client.get("https://api.github.com/repos/$repo/releases/tags/v$version")
.parsed<GithubResponse>().assets?.find {
it.browserDownloadURL.endsWith("apk")
}?.browserDownloadURL.apply {
if (this != null) activity.downloadUpdate(version, this)
else openLinkInBrowser("https://github.com/repos/$repo/releases/tag/v$version")
}
val apks =
client.get("https://api.github.com/repos/$repo/releases/tags/v$version")
.parsed<GithubResponse>().assets?.filter {
it.browserDownloadURL.endsWith(
".apk"
)
}
val apkToDownload = apks?.first()
apkToDownload?.browserDownloadURL.apply {
if (this != null) activity.downloadUpdate(version, this)
else openLinkInBrowser("https://github.com/repos/$repo/releases/tag/v$version")
}
} catch (e: Exception) {
logError(e)
}
Expand All @@ -111,24 +116,25 @@ object AppUpdater {
}

private fun compareVersion(version: String): Boolean {
return when (BuildConfig.BUILD_TYPE) {
"debug" -> BuildConfig.VERSION_NAME != version
"alpha" -> false
else -> {
fun toDouble(list: List<String>): Double {
return list.mapIndexed { i: Int, s: String ->
when (i) {
0 -> s.toDouble() * 100
1 -> s.toDouble() * 10
2 -> s.toDouble()
else -> s.toDoubleOrNull() ?: 0.0
}
}.sum()
}

if (BuildConfig.DEBUG) {
return BuildConfig.VERSION_NAME != version
} else {
fun toDouble(list: List<String>): Double {
return list.mapIndexed { i: Int, s: String ->
when (i) {
0 -> s.toDouble() * 100
1 -> s.toDouble() * 10
2 -> s.toDouble()
else -> s.toDoubleOrNull() ?: 0.0
}
}.sum()
val new = toDouble(version.split("."))
val curr = toDouble(BuildConfig.VERSION_NAME.split("."))
new > curr
}

val new = toDouble(version.split("."))
val curr = toDouble(BuildConfig.VERSION_NAME.split("."))
return new > curr
}
}

Expand Down
Loading
Loading