Skip to content

Commit

Permalink
Removed censorship. Added a Gab branding. Split output into abi speci…
Browse files Browse the repository at this point in the history
…fic apk's.
  • Loading branch information
johanw666 committed Apr 15, 2022
1 parent 0c840a7 commit 8851e7b
Show file tree
Hide file tree
Showing 92 changed files with 369 additions and 434 deletions.
26 changes: 7 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,29 @@
[![Translate - with Weblate](https://img.shields.io/badge/translate%20with-Weblate-green.svg?style=flat)](https://weblate.tusky.app/) [![OpenCollective](https://opencollective.com/tusky/backers/badge.svg)](https://opencollective.com/tusky/) [![Build Status](https://app.bitrise.io/app/a3e773c3c57a894c/status.svg?token=qLu_Ti4Gp2LWcYT4eo2INQ&branch=master)](https://app.bitrise.io/app/a3e773c3c57a894c#/builds)
# Tusky
# Gab

![](/fastlane/metadata/android/en-US/images/icon.png)
Gab is a beautiful Android client for [Mastodon](https://github.com/tootsuite/mastodon). Mastodon is an ActivityPub federated social network. That means no single entity controls the whole network, rather, like e-mail, volunteers and organisations operate their own independent servers, users from which can all interact with each other seamlessly.

Tusky is a beautiful Android client for [Mastodon](https://github.com/mastodon/mastodon). Mastodon is an ActivityPub federated social network. That means no single entity controls the whole network, rather, like e-mail, volunteers and organisations operate their own independent servers, users from which can all interact with each other seamlessly.

[<img src="/assets/fdroid_badge.png" alt="Get it on F-Droid" height="80" />](https://f-droid.org/repository/browse/?fdid=com.keylesspalace.tusky)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" alt="Get it on Google Play" height="80" />](https://play.google.com/store/apps/details?id=com.keylesspalace.tusky&utm_source=github&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1)
Gab is a fork of Tusky (https://github.com/tuskyapp/Tusky) that does not censor free-speech nodes.

## Features

- Material Design
- Most Mastodon APIs implemented
- Multi-Account support
- Dark, light and black themes with the possibility to auto-switch based on the time of day
- Drafts - compose posts and save them for later
- Drafts - compose toots and save them for later
- Choose between different emoji styles
- Optimized for all screen sizes
- Completely open-source - no non-free dependencies like Google services

### Testing

The nightly build from master is [available on Google Play](https://play.google.com/store/apps/details?id=com.keylesspalace.tusky.test).

### Support

Check out our [FAQs](https://github.com/tuskyapp/faq), your question may already be answered.
If you have any bug reports, feature requests or questions please open an issue or send us a message at [[email protected]](https://mastodon.social/@Tusky)!
If you have any bug reports, feature requests or questions please open an issue.

For translating Tusky into your language, visit https://weblate.tusky.app/
For translating Gab-changed strings into your language, please open an issue.

### Head of development

This app was developed by [[email protected]](https://mastodon.social/@Vavassor).
The current maintainer is [[email protected]](https://chaos.social/@ConnyDuck).

### Development chatroom
https://riot.im/app/#/room/#Tusky:matrix.org
This port was done by johanw666.

###
20 changes: 19 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ apply plugin: 'kotlin-parcelize'
apply from: "../instance-build.gradle"

def getGitSha = {
/*
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
*/
return ""; // JW
}

android {
Expand All @@ -21,16 +24,31 @@ android {
minSdkVersion 21
targetSdkVersion 31
versionCode 89
versionName "17.0"
versionName "17.0.0-JW"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

resValue "string", "app_name", APP_NAME
setProperty("archivesBaseName", "Gab-$versionName") // JW: added

buildConfigField("String", "CUSTOM_LOGO_URL", "\"$CUSTOM_LOGO_URL\"")
buildConfigField("String", "CUSTOM_INSTANCE", "\"$CUSTOM_INSTANCE\"")
buildConfigField("String", "SUPPORT_ACCOUNT_URL", "\"$SUPPORT_ACCOUNT_URL\"")

// JW: add abifilters
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}

splits {
abi {
enable true
reset()
include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
universalApk true
}
}

kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
Expand Down
Binary file modified app/src/blue/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/blue/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/blue/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/blue/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/blue/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/green/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/green/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/green/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/green/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/green/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/src/main/java/com/keylesspalace/tusky/AboutActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ class AboutActivity : BottomSheetActivity(), Injectable {
viewUrl(BuildConfig.SUPPORT_ACCOUNT_URL)
}

// JW: added
if (BuildConfig.SUPPORT_ACCOUNT_URL.isBlank()) {
binding.tuskyProfileButton.hide()
}

binding.aboutLicensesButton.setOnClickListener {
startActivityWithSlideInAnimation(Intent(this, LicenseActivity::class.java))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class NetworkModule {
val requestWithUserAgent = chain.request().newBuilder()
.header(
"User-Agent",
"Tusky/${BuildConfig.VERSION_NAME} Android/${Build.VERSION.RELEASE} OkHttp/${OkHttp.VERSION}"
"Gab/${BuildConfig.VERSION_NAME} Android/${Build.VERSION.RELEASE} OkHttp/${OkHttp.VERSION}" // JW: change user agent name
)
.build()
chain.proceed(requestWithUserAgent)
Expand Down
Binary file modified app/src/main/res/drawable-hdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-hdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable-mdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 0 additions & 14 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

51 changes: 0 additions & 51 deletions app/src/main/res/drawable-v24/ic_notoemoji.xml

This file was deleted.

Binary file modified app/src/main/res/drawable-xhdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable-xxhdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxxhdpi/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 9 additions & 13 deletions app/src/main/res/drawable/ic_splash.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="240dp"
android:layout_width="240dp">

<item android:drawable="@drawable/ic_launcher_background" />

<item
android:top="40dp"
android:bottom="40dp"
android:left="40dp"
android:right="40dp"
android:drawable="@drawable/ic_launcher_foreground" />

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<color android:color="@color/tusky_grey_20"/>
</item>
<item>
<bitmap
android:src="@drawable/splash"
android:gravity="center" />
</item>
</layer-list>
9 changes: 0 additions & 9 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

This file was deleted.

Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file added app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
6 changes: 3 additions & 3 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@
* the url can be changed to link to the localized version of the license.
-->
<string name="about_project_site">موقع المشروع :\n
https://tusky.app</string>
https://gab.com</string>
<string name="about_bug_feature_request_site">تقارير الأخطاء و طلبات التحسينات على :\n
https://github.com/tuskyapp/Tusky/issues</string>
https://github.com/johanw666/Gab/issues</string>
<string name="about_tusky_account">الملف الشخصي لتوسكي</string>
<string name="post_share_content">شارك محتوى التبويق</string>
<string name="post_share_link">شارك الرابط إلى التبويق</string>
Expand Down Expand Up @@ -479,7 +479,7 @@
<string name="title_bookmarks">الفواصل المرجعية</string>
<string name="action_bookmark">أضفه إلى الفواصل المرجعية</string>
<string name="action_view_bookmarks">الفواصل المرجعية</string>
<string name="about_powered_by_tusky">مدعوم بِـ Tusky</string>
<string name="about_powered_by_tusky">مدعوم بِـ Gab</string>
<string name="description_post_bookmarked">أضيف إلى الفواصل المرجعية</string>
<string name="select_list_title">اختر قائمة</string>
<string name="list">القائمة</string>
Expand Down
16 changes: 8 additions & 8 deletions app/src/main/res/values-bg/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<string name="license_cc_by_sa_4">CC-BY-SA 4.0</string>
<string name="license_cc_by_4">CC-BY 4.0</string>
<string name="license_apache_2">Лицензиран под лиценза Apache (копие по-долу)</string>
<string name="license_description">Tusky съдържа код и активи от следните проекти с отворен код:</string>
<string name="license_description">Gab съдържа код и активи от следните проекти с отворен код:</string>
<string name="unreblog_private">Отсподеляне</string>
<string name="reblog_private">Споделяне с оригиналната аудитория</string>
<string name="account_moved_description">%1$s се премести в:</string>
Expand All @@ -116,7 +116,7 @@
<string name="caption_systememoji">Емоджи комплектът по подразбиране в устройство ви</string>
<string name="restart">Рестартиране</string>
<string name="later">По-късно</string>
<string name="restart_emoji">Ще трябва да рестартирате Tusky, за да приложите тези промени</string>
<string name="restart_emoji">Ще трябва да рестартирате Gab, за да приложите тези промени</string>
<string name="restart_required">Изисква се рестартиране на приложението</string>
<string name="action_open_post">Отваряне на публикация</string>
<string name="expand_collapse_all_posts">Разгъване/свиване на всички състояния</string>
Expand Down Expand Up @@ -189,14 +189,14 @@
<string name="post_media_images">Изображения</string>
<string name="post_share_link">Споделяне на връзка към публикация</string>
<string name="post_share_content">Споделяне на съдържание на публикация</string>
<string name="about_tusky_account">Профилът на Tusky</string>
<string name="about_tusky_account">Профилът на Gab</string>
<string name="about_bug_feature_request_site">Доклади за грешки и заявки за функции:
\n https://github.com/tuskyapp/Tusky/issues</string>
\n https://github.com/johanw666/Gab/issues</string>
<string name="about_project_site">Уебсайт на проекта:
\n https://tusky.app</string>
<string name="about_tusky_license">Tusky е свободен софтуер с отворен код. Той е лицензиран под Общият публичен лиценз на GNU Версия 3. Можете да видите лиценза тук: https://www.gnu.org/licenses/gpl-3.0.en.html</string>
<string name="about_powered_by_tusky">Осъществено от Tusky</string>
<string name="about_tusky_version">Tusky %s</string>
\n https://gab.com</string>
<string name="about_tusky_license">Gab е свободен софтуер с отворен код. Той е лицензиран под Общият публичен лиценз на GNU Версия 3. Можете да видите лиценза тук: https://www.gnu.org/licenses/gpl-3.0.en.html</string>
<string name="about_powered_by_tusky">Осъществено от Gab</string>
<string name="about_tusky_version">Gab %s</string>
<string name="about_title_activity">Относно</string>
<string name="description_account_locked">Заключен акаунт</string>
<plurals name="notification_title_summary">
Expand Down
Loading

0 comments on commit 8851e7b

Please sign in to comment.