diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 3d8b1883..49681dad 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -45,6 +45,8 @@ jobs: name: Warosu - module: archb4k name: ArchB4K + - module: palanqwin + name: PalanqWin steps: - uses: actions/checkout@v3 diff --git a/extensions/palanqwin/build.gradle b/extensions/palanqwin/build.gradle new file mode 100644 index 00000000..869be792 --- /dev/null +++ b/extensions/palanqwin/build.gradle @@ -0,0 +1,50 @@ +apply plugin: 'chan-extension' + +chan { + nameUpper 'PalanqWin' + packageName 'com.trixiether.dashchan.chan.palanq' + versionName '1.0' + apiVersion 1 + hosts 'archive.palanq.win' +} + +dependencies { + implementation project(':engines:foolfuuka') +} + +android { + signingConfigs { + release { + + def keystoreProperties = new Properties() + try { + file('keystore.properties').newInputStream().withCloseable { keystoreProperties.load(it) } + } catch (IOException ignored) { + keystoreProperties = null + } + + if (keystoreProperties == null) { + //git workflow build + System.out.println("keystoreProperties is null") + def key_file = System.getenv("KEYSTORE_FILENAME") + storeFile file(key_file != null ? key_file : "keystore/dashchan") + storePassword System.getenv("KEYSTORE_PASSWORD") + keyAlias System.getenv("RELEASE_SIGN_KEY_ALIAS") + keyPassword System.getenv("RELEASE_SIGN_KEY_PASSWORD") + + } else { + //local build + storeFile keystoreProperties['store.file'] + storePassword keystoreProperties['store.password'] + keyAlias keystoreProperties['key.alias'] + keyPassword keystoreProperties['key.password'] + } + + } + } + buildTypes { + release { + signingConfig signingConfigs.release + } + } +} \ No newline at end of file diff --git a/extensions/palanqwin/res/drawable-v21/ic_custom_palanqwin.xml b/extensions/palanqwin/res/drawable-v21/ic_custom_palanqwin.xml new file mode 100644 index 00000000..42ef4cce --- /dev/null +++ b/extensions/palanqwin/res/drawable-v21/ic_custom_palanqwin.xml @@ -0,0 +1,10 @@ + + + diff --git a/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanConfiguration.java b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanConfiguration.java new file mode 100644 index 00000000..d90d9c4e --- /dev/null +++ b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanConfiguration.java @@ -0,0 +1,6 @@ +package com.trixiether.dashchan.chan.palanq; + +import chan.content.FoolFuukaChanConfiguration; + +public class PalanqWinChanConfiguration extends FoolFuukaChanConfiguration { +} diff --git a/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanLocator.java b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanLocator.java new file mode 100644 index 00000000..e33716c8 --- /dev/null +++ b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanLocator.java @@ -0,0 +1,10 @@ +package com.trixiether.dashchan.chan.palanq; + +import chan.content.FoolFuukaChanLocator; + +public class PalanqWinChanLocator extends FoolFuukaChanLocator { + public PalanqWinChanLocator() { + addChanHost("archive.palanq.win"); + setHttpsMode(HttpsMode.HTTPS_ONLY); + } +} diff --git a/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanMarkup.java b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanMarkup.java new file mode 100644 index 00000000..b467b76b --- /dev/null +++ b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanMarkup.java @@ -0,0 +1,6 @@ +package com.trixiether.dashchan.chan.palanq; + +import chan.content.FoolFuukaChanMarkup; + +public class PalanqWinChanMarkup extends FoolFuukaChanMarkup { +} diff --git a/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanPerformer.java b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanPerformer.java new file mode 100644 index 00000000..d5c2eae3 --- /dev/null +++ b/extensions/palanqwin/src/com/trixiether/dashchan/chan/palanq/PalanqWinChanPerformer.java @@ -0,0 +1,6 @@ +package com.trixiether.dashchan.chan.palanq; + +import chan.content.FoolFuukaChanPerformer; + +public class PalanqWinChanPerformer extends FoolFuukaChanPerformer { +}