diff --git a/app/build.gradle b/app/build.gradle index 3c11ffd80..70702f5f3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,6 +28,10 @@ android { // define this values in your local.properties file buildConfigField 'String', 'SHIKIMORI_CLIENT_ID', "\"${localProperty('shikimori.clientId')}\"" buildConfigField 'String', 'SHIKIMORI_CLIENT_SECRET', "\"${localProperty('shikimori.clientSecret')}\"" + + if (currentBranch() == "feature/nextgen") { + applicationIdSuffix = '.next' + } } buildTypes { debug { @@ -76,7 +80,7 @@ afterEvaluate { } } dependencies { - implementation('com.github.nv95:kotatsu-parsers:330495556a') { + implementation('com.github.nv95:kotatsu-parsers:c5c84c8630') { exclude group: 'org.json', module: 'json' } diff --git a/app/src/main/java/org/koitharu/kotatsu/core/parser/RemoteMangaRepository.kt b/app/src/main/java/org/koitharu/kotatsu/core/parser/RemoteMangaRepository.kt index f74946ba6..f98634436 100644 --- a/app/src/main/java/org/koitharu/kotatsu/core/parser/RemoteMangaRepository.kt +++ b/app/src/main/java/org/koitharu/kotatsu/core/parser/RemoteMangaRepository.kt @@ -36,10 +36,7 @@ class RemoteMangaRepository(private val parser: MangaParser) : MangaRepository { override suspend fun getTags(): Set = parser.getTags() - @Deprecated("") - fun getFaviconUrl(): String = parser.getFaviconUrl() - - suspend fun getFavicons(): Favicons = parser.parseFavicons() + suspend fun getFavicons(): Favicons = parser.getFavicons() fun getAuthProvider(): MangaParserAuthProvider? = parser as? MangaParserAuthProvider diff --git a/build.gradle b/build.gradle index 989d431d9..d92058634 100644 --- a/build.gradle +++ b/build.gradle @@ -32,6 +32,16 @@ Object localProperty(String name, Object defaultValue = 'null') { return value != null ? value : defaultValue } +String currentBranch() { + def branchName = "" + try { + branchName = "git rev-parse --abbrev-ref HEAD".execute().text.trim(); + } catch (ignored) { + println "Git not found" + } + return branchName +} + task clean(type: Delete) { delete rootProject.buildDir } \ No newline at end of file