diff --git a/app/build.gradle b/app/build.gradle index b9b6925..194c868 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -116,7 +116,7 @@ android { excludes += ['META-INF/AL2.0', 'META-INF/LGPL2.1'] } } - namespace 'dragonx.android' + namespace 'cash.z.ecc.android' applicationVariants.all { variant -> variant.outputs.all { output -> outputFileName = "$archivesBaseName-v${Deps.versionName}-${variant.buildType.name}-${output.getFilter("ABI")}.apk" diff --git a/app/src/main/java/cash/z/ecc/android/ui/profile/ProfileFragment.kt b/app/src/main/java/cash/z/ecc/android/ui/profile/ProfileFragment.kt index c44a100..1a40aac 100644 --- a/app/src/main/java/cash/z/ecc/android/ui/profile/ProfileFragment.kt +++ b/app/src/main/java/cash/z/ecc/android/ui/profile/ProfileFragment.kt @@ -66,26 +66,21 @@ class ProfileFragment : BaseFragment() { openTelegramLink() } - // Matrix - binding.matrixButton.setOnClickListener { - openMatrixLink() - } - - // Mastodon - binding.mastodonButton.setOnClickListener { - openMastodonLink() - } - - // PeerTube - binding.peertubeButton.setOnClickListener { - openPeerTubeLink() - } - // SilentDragon Gitea binding.textBannerMessage.setOnClickListener { openGiteaLink() } + // Fakebook + binding.fakebookButton.setOnClickListener { + openFakebookLink() + } + + // Twatter + binding.twatterButton.setOnClickListener { + openTwatterLink() + } + // Add build version binding.textVersion.text = BuildConfig.VERSION_NAME @@ -101,6 +96,12 @@ class ProfileFragment : BaseFragment() { }*/ } + private fun openFakebookLink() { + getString(R.string.fakebook_url).takeUnless { it.isBlank() }?.let { url -> + mainActivity?.onLaunchUrl(url) + } + } + private fun openGiteaLink() { getString(R.string.gitea_url).takeUnless { it.isBlank() }?.let { url -> mainActivity?.onLaunchUrl(url) @@ -125,6 +126,12 @@ class ProfileFragment : BaseFragment() { } } + private fun openTwatterLink() { + getString(R.string.twatter_url).takeUnless { it.isBlank() }?.let { url -> + mainActivity?.onLaunchUrl(url) + } + } + private fun openTelegramLink() { getString(R.string.telegram_url).takeUnless { it.isBlank() }?.let { url -> mainActivity?.onLaunchUrl(url) @@ -137,6 +144,12 @@ class ProfileFragment : BaseFragment() { } } + private fun openYoutubeLink() { + getString(R.string.youtube_url).takeUnless { it.isBlank() }?.let { url -> + mainActivity?.onLaunchUrl(url) + } + } + override fun onResume() { super.onResume() resumedScope.launch { diff --git a/app/src/main/res/drawable/ic_fakebook.xml b/app/src/main/res/drawable/ic_fakebook.xml new file mode 100644 index 0000000..ddfd116 --- /dev/null +++ b/app/src/main/res/drawable/ic_fakebook.xml @@ -0,0 +1,949 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_twatter.xml b/app/src/main/res/drawable/ic_twatter.xml new file mode 100644 index 0000000..26e9773 --- /dev/null +++ b/app/src/main/res/drawable/ic_twatter.xml @@ -0,0 +1,1089 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_youtube.xml b/app/src/main/res/drawable/ic_youtube.xml new file mode 100644 index 0000000..5e8ed38 --- /dev/null +++ b/app/src/main/res/drawable/ic_youtube.xml @@ -0,0 +1,1229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_profile.xml b/app/src/main/res/layout/fragment_profile.xml index e527e13..0c11668 100644 --- a/app/src/main/res/layout/fragment_profile.xml +++ b/app/src/main/res/layout/fragment_profile.xml @@ -262,31 +262,23 @@ app:srcCompat="@drawable/ic_telegram" /> + app:srcCompat="@drawable/ic_fakebook" /> + app:srcCompat="@drawable/ic_twatter" /> - \ No newline at end of file diff --git a/app/src/zcashmainnet/res/values/strings.xml b/app/src/zcashmainnet/res/values/strings.xml index 1031c78..755b7cf 100644 --- a/app/src/zcashmainnet/res/values/strings.xml +++ b/app/src/zcashmainnet/res/values/strings.xml @@ -1,5 +1,6 @@ https://explorer.dragonx.is/tx/%1$s + https://www.facebook.com/profile.php?id=100081853099621 https://git.hush.is/hush/SilentDragonAndroid/releases https://hush.is/matrix https://hush.is/mastodon @@ -7,5 +8,7 @@ https://hush.is/seedphrase DRGX https://t.me/hush_main + https://twitter.com/DragonXchain + https://dragonx.is https://dragonx.is