Commit Graph

34 Commits

Author SHA1 Message Date
AwkwardPeak7 50b5d33614
Random User-Agent Refactor (#17059)
* lib-randomua

* NHentai: Random mobile ua

* Madara random UA overhaul

* MangaThemesia random UA overhaul

* MangaHub random UA overhaul

* build errors and warnings

* remove preference from Constellar

* change to singleton object

* network.client

* fix copy paste and chapter deep link

* exit early

* use data class and enum options

* missing import

* suggested changes

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* re-add empty check to filters

* convert to interceptor

* update comment

Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>

* update error message

* initialize client by lazy

* dont check on excluded Filters

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* newlines

* move preference helper function into lib

* move preference helper function into lib x2

* move check to lib too

* move defaultRandomUserAgentType to constructor

* rename the interceptor

* organize the interceptor and preference stuff in different files

* hide custom ua setting when random ua is enabled

* English

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* catch specific exception

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* setVisible()

fresh stuff

* setVisible()

fresh stuff

* change summary

* workaround

* Update error message

Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>

* Update comment

Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
2023-07-15 19:52:35 -03:00
Alessandro Jean dd0a128de0
Revert `lib-i18n` addition (#16990)
* Revert "Add a new `lib-i18n` to make message translation easier (#16942)"

This reverts commit 4e17c228ca.

* Bump the versions.
2023-07-02 18:42:03 -03:00
Alessandro Jean 4e17c228ca
Add a new `lib-i18n` to make message translation easier (#16942)
* Add support to better internationalization with a new lib.

* Add info about `lib-i18n` in the contributing guide.

* Use lib-i18n in M+ as well.

* Change properties files to UTF-8.
2023-07-02 17:38:41 -03:00
AwkwardPeak7 6a106c8648
fix RCO (#16900)
* lib-synchrony

ported from aniyomiorg/aniyomi-extensions

Co-authored-by: jmir1 <43830312+jmir1@users.noreply.github.com>

* RCO: deobfuscate and extract beau function from rguard script

* fix genre filter

* bump

---------

Co-authored-by: jmir1 <43830312+jmir1@users.noreply.github.com>
2023-06-29 12:14:43 -03:00
nicki 951ca60b56
New Lib: Text Interceptor (#13859)
* move TextInterceptor to `lib`

to be used for author notes, image alt texts and what not

* refactor Tapastic to use `lib:extensions-lib`

* Refactor Webtoons to use `:lib-textinterceptor`

this turned out to be more complicated than I thought it'd be
TextInterceptor was used for Author Notes which, looking at previous messages,
was only intended to be added to Webtoons Source and not the entire webtoons
multisrc (i.e. WebtoonsTranslate and DongmanManhua don't seem to be making use
of the Show Author's Notes setting). This was in my favor, since having
to deal with additional.gradle to add dependencies to multisrc files doesn't
seem to work... I'll ask previous contributors just in case

* Fix `json` access

missed this while copying over code from `generated-src` to `multisrc/{overrides,src}`

* remove unused import

* make HOST name more clear

couldve used a better schema but that's something for some other time
also put the HOST in the lib itself so that one doesn't lose track of it in the extensions

* use android provided methods instead of hardcoding

based on https://github.com/tachiyomiorg/tachiyomi-extensions/pull/13859/files#r996276738
that suggested the following SO answer: https://github.com/tachiyomiorg/tachiyomi-extensions/pull/13859/files

* remove unused import

* move url generation to helper function

* fix error

oops sorry for that
happened when I was copy pasting back and forth between two sources and one generated source

Co-authored-by: Navaneeth M Nambiar <nmnambiar@hornbill>
2023-01-11 14:34:06 -03:00
arkon 40b6e31505
Expose coroutines dependencies to all extensions by default (#13757) 2022-10-08 09:44:48 -04:00
pratyush3757 6147a40686
BatoTo: Replace CryptoJS use with javax.crypto (#13562)
* Replace CryptoJS use with javax.crypto

* Migrated BatoToCryptoUtils to a lib module

* Replaced CryptoJS with javax.crypto for Mangapark
2022-09-24 15:53:39 -03:00
stevenyomi 445af0f144
Move unpacker lib to extension repo (#13565)
It was hosted at https://github.com/stevenyomi/unpacker
2022-09-24 12:01:52 -04:00
arkon 1905256b08
Refactor to use app-provided rate limiting interceptors (#12089) 2022-06-05 17:51:18 -04:00
arkon d925c30393
Build modules in chunks (#12067) 2022-06-04 20:55:39 -04:00
arkon 8aca482809
Update to Gradle 7.4 (#11164) 2022-03-17 20:09:43 -04:00
Andreas 5145eec280
Re: Use Gradle version catalog to simplify dependencies (#10953)
* Use Gradle version catalog to simplify dependencies

* Changes based on review comments

* Remove libs variables in buildScript

- Not needed in this Gradle version
2022-02-28 07:25:23 -05:00
arkon 985f285fc7 Revert "Use Gradle version catalog to simplify dependencies (#10938)"
This reverts commit c83960aaef.
2022-02-27 09:53:18 -05:00
Andreas c83960aaef
Use Gradle version catalog to simplify dependencies (#10938)
* Use Gradle version catalog to simplify dependencies

* Changes based on review comments
2022-02-27 09:49:41 -05:00
arkon 39b7fe8c4e
Move Duktape stub to extensions-lib (#9954)
* Move Duktape stub to extensions-lib

* Formatting fixes

* Address build errors
2021-11-28 13:00:39 -05:00
arkon 6a75de9261
Remove usage of @Nsfw annotation in favor of extension-level flagging (#9368) 2021-10-04 16:44:32 -04:00
Aria Moradi e84751d656
[skip ci] add multisrc generated extensions (#9033) 2021-09-11 09:19:03 -04:00
Aria Moradi 9df25cc3fc
[skip ci] generate the same project name (#8736)
* generate the same project name

* keep it commented out
2021-08-22 10:30:29 -04:00
arkon 0064d8bd96 Parallelize CI builds 2021-06-20 17:45:22 -04:00
arkon 3d0af119ce
Compile to SDK 30, update lib dependencies (#7187) 2021-05-22 16:04:17 -04:00
arkon 8e977fec59 Better group Gradle modules 2021-03-09 17:50:49 -05:00
arkon e8d6cdecaa [SKIP CI] Attempt to cancel old PR workflows 2021-02-28 11:19:45 -05:00
arkon 3836469f71 Fix push workflow again? 2021-02-12 19:20:53 -05:00
arkon e343d8dcda Fix push workflow 2021-02-12 19:16:06 -05:00
arkon 58ebc67389 Parallelize PR build workflow 2021-02-12 19:05:45 -05:00
arkon 13c1b882c8 Better organize the loaded modules in Android Studio 2021-02-12 18:36:10 -05:00
Aria Moradi 0ce4416f09
Multisrc bugfix and genkan refactor (#5707)
* themesource bugfix, refactor genkan

* revert 3da46570aa
2021-02-08 16:37:48 -05:00
arkon 3da46570aa Move annotations and Duktape stub into core module 2021-02-06 18:16:04 -05:00
Aria Moradi 3f081f69ac
lib-themesources, split Genkan into single-source extensions (#5154)
* lib themesources copied from SnakeDoc83/tachiyomi-extensions/library

* update to the newer Genkan

* update genkan generator

* GenkanOriginal

* code cleanup

* add all Genkan sources

* generate inside generated-src, res override

* src override

* move overrides out of library

* move overrides to a better place

* remove leftover generated files

* remove leftover generated files

* add generators main class

* comment the code

* Now sources are purely generated

* uncomment generators

* enhance comments

* icons by @as280093

* fix pathing issues

* nullpointerexception proof

* runAllGenerators task

* more flexibility in lib structure, fix a fiew errors

* update github workflows

* correct nonames scans directory name

* rename SK Scans to Sleeping Knight Scans

* fix typo

* update depencencies

* remove defaultRes from dependencies

* fix bug with nsfw

* fix nsfw generation

* themesourcesLibraryVersion is included in build.gradle extVersionCode

* improve javadoc

* fix formatting and language code generation

* comply with #5214

* common dependencies

* rename and move lib/themesources into /multisrc

* use not depricated form

* cleanup runAllGenerators task

* cleanup even more

* oops extra file

* remove test code

* comments

* update docs and refactor

* update docs

* requested changes

* clean up dependencies

* sealed dataClass

* refactor

* refactor string generators

* bring back writeAndroidManifest

* update overrideVersionCode javadoc

* update overrideVersionCode javadoc

* move dependency to extension source

* refactor runAllGenerators

* improve docs

* remove extra file
2021-02-06 17:32:04 -05:00
arkon 3b3695f97b Rename defaultRes module to core 2020-12-20 13:17:10 -05:00
arkon a07dabee6c Revert settings.gradle.kts change 2020-12-15 22:19:20 -05:00
arkon 3c1bc5f00d [SKIP CI] Update repo links 2020-12-15 17:51:30 -05:00
arkon d84a4c90b1
Project reorganization (#5096)
* Rename AndroidConfig to Config

* Move base AndroidManifest.xml

* Make fallback icons into an Android module

* Add example of how to only load a single extension in Gradle project
2020-12-11 09:41:48 -05:00
arkon d4c05d6d6d Convert settings.gradle to Kotlin DSL 2020-06-25 22:46:15 -04:00