Skip to content

Commit

Permalink
3.9.9
Browse files Browse the repository at this point in the history
3.9.9
  • Loading branch information
Sereri authored Nov 10, 2024
2 parents 8564b45 + ddede8e commit a4521bf
Show file tree
Hide file tree
Showing 117 changed files with 3,410 additions and 802 deletions.
70 changes: 26 additions & 44 deletions Awful.apk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,41 +1,32 @@
buildscript {
ext.kotlin_version = '1.7.20'
ext.kotlin_version = '1.9.21'

repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:8.7.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'

}
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'


repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'com.google.devtools.ksp'
}

android {
compileSdkVersion 33
namespace "com.ferg.awfulapp"
compileSdk 34

buildFeatures {
viewBinding = true
buildConfig = true
}

defaultConfig {
applicationId = "com.ferg.awfulapp"
minSdkVersion 21
targetSdkVersion 33
resConfigs 'en'
minSdkVersion 24
targetSdkVersion 35
resourceConfigurations += ['en']

// Stops the Gradle plugin’s automatic rasterization of vectors
vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -75,10 +66,9 @@ android {
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
}
}

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

task copyThreadTags {
Expand Down Expand Up @@ -115,20 +105,20 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
// these are all needed to override some old versions that are dependencies... somewhere
implementation 'androidx.media:media:1.6.0'
implementation 'androidx.media:media:1.7.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

// used to fix SSL issues on older devices
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.android.volley:volley:1.2.1'


implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.google.code.gson:gson:2.11.0'

implementation 'org.jsoup:jsoup:1.14.2'
implementation 'org.jsoup:jsoup:1.18.1'
implementation 'com.jakewharton.threetenabp:threetenabp:1.2.4'
implementation 'com.samskivert:jmustache:1.15'

Expand All @@ -142,22 +132,14 @@ dependencies {
implementation 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:2.0.24@aar'
implementation 'com.github.orangegangsters:swipy:1.2.3@aar'
implementation 'com.bignerdranch.android:expandablerecyclerview:2.1.1'
implementation 'com.jakewharton:butterknife:10.2.1'
implementation 'com.jakewharton.timber:timber:4.7.1'

implementation 'com.github.bumptech.glide:glide:4.11.0'
kapt 'com.github.bumptech.glide:compiler:4.11.0'

implementation 'com.github.chrisbanes:PhotoView:2.3.0'
kapt 'com.jakewharton:butterknife-compiler:10.2.1'

implementation 'com.google.firebase:firebase-crashlytics:18.3.1'

implementation 'com.github.rubensousa:BottomSheetBuilder:1.5.1'
implementation 'androidx.preference:preference:1.2.1'

testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.hamcrest:hamcrest-library:1.3'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'

// updating this might cause the status and navigation bar to become blue, test for this
implementation 'androidx.core:core-splashscreen:1.0.0-alpha02'
Expand Down
15 changes: 15 additions & 0 deletions Awful.apk/src/debug/res/xml-v25/shortcuts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="bookmarks"
android:shortcutShortLabel="@string/user_cp"
android:icon="@drawable/ic_baseline_bookmarks_24">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="com.ferg.awfulapp.debug"
android:targetClass="com.ferg.awfulapp.ForumsIndexActivity">
<!-- Must match values in NavigationEvent.kt for EVENT_EXTRA_KEY and TYPE_BOOKMARKS -->
<extra android:name="navigation event" android:value="nav_bookmarks" />
</intent>
</shortcut>
</shortcuts>
50 changes: 43 additions & 7 deletions Awful.apk/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ferg.awfulapp"
android:versionCode="30816"
android:versionName="3.8.16"
android:versionCode="30909"
android:versionName="3.9.9"
android:installLocation="auto">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<application
<application
android:label="@string/app_name"
android:name="com.ferg.awfulapp.AwfulApplication"
android:allowBackup="true"
Expand Down Expand Up @@ -73,6 +74,8 @@
<data android:pathPrefix="/bookmarkthreads.php"/>
<data android:pathPrefix="/showthread.php"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>
</activity-alias>
<activity-alias android:label="@string/app_name"
android:icon="@mipmap/ic_launcher_dog"
Expand All @@ -99,6 +102,8 @@
<data android:pathPrefix="/bookmarkthreads.php"/>
<data android:pathPrefix="/showthread.php"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>
</activity-alias>

<activity-alias android:label="@string/app_name"
Expand Down Expand Up @@ -126,6 +131,8 @@
<data android:pathPrefix="/bookmarkthreads.php"/>
<data android:pathPrefix="/showthread.php"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>
</activity-alias>

<activity-alias android:label="@string/app_name"
Expand Down Expand Up @@ -153,6 +160,8 @@
<data android:pathPrefix="/bookmarkthreads.php"/>
<data android:pathPrefix="/showthread.php"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>
</activity-alias>

<activity-alias android:label="@string/app_name"
Expand Down Expand Up @@ -180,6 +189,8 @@
<data android:pathPrefix="/bookmarkthreads.php"/>
<data android:pathPrefix="/showthread.php"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>
</activity-alias>

<activity-alias android:label="@string/app_name"
Expand Down Expand Up @@ -207,6 +218,8 @@
<data android:pathPrefix="/bookmarkthreads.php"/>
<data android:pathPrefix="/showthread.php"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>
</activity-alias>
<!--
This handles share intents, and is meant to run invisibly and separately in its own task (singleInstance)
Expand All @@ -227,11 +240,26 @@
android:name="com.ferg.awfulapp.preferences.SettingsActivity"
android:label="@string/settings_activity_title"
android:configChanges="keyboardHidden" />
<activity
android:name="com.ferg.awfulapp.AwfulImgurAuthActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="awful" android:host="imgur_oauth_callback" />
</intent-filter>
</activity>
<activity
android:name="com.ferg.awfulapp.PostReplyActivity"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|screenSize"
/>
<activity
android:name="com.ferg.awfulapp.PostThreadActivity"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|screenSize"
/>

<activity android:name=".users.LepersColonyActivity"/>

Expand All @@ -240,15 +268,23 @@
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|keyboardHidden|screenSize"
/>
<activity

<activity android:name="com.ferg.awfulapp.CaptchaActivity"
android:theme="@style/Theme.AppCompat.Light" />

<!-- Legacy activity for API 24 and below, to create bookmarks shortcut.
Isn't enabled until first launch on appropriate device. -->
<activity
android:name="com.ferg.awfulapp.UserCPShortcutActivity"
android:label="@string/usercp"
android:enabled="@bool/legacy_shortcut_creation"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<activity android:name="com.ferg.awfulapp.MessageDisplayActivity"
android:configChanges="orientation|keyboardHidden|screenSize" />
<activity android:name="com.ferg.awfulapp.PrivateMessageActivity"
Expand Down
41 changes: 40 additions & 1 deletion Awful.apk/src/main/assets/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,53 @@

<main>
<section>
<h2>3.8.16</h2>
<h2>3.9.9</h2>
<ul>
<li>Replaced the display image zoom thing so that it doesn't just enlarge the image but also actually zooms in. The wonders of modern technology.</li>
<li>Added function to increase the number of bad threads on the forums. May dog have mercy on our souls.</li>
<li>Fixed file attachments again (Android 13 and up this time).</li>
<li>Fixed the theme font functionality. You can now make (most of) the app look like a 2009 Samsung phone again.</li>
<li>Added OpenDislexic font. Gee Whiz, what a coincidence.</li>
</ul>
</section>
<section>
<h2>3.9.4</h2>
<ul>
<li>Made imgur upload work again. You can finally uninstall that awful app. No, I mean theirs. I should have written terrible app, that's clearer.</li>
<li>Removed crash report library because Google considers it collecting user data. Now collecting user data via the base functionality again like in 2012. Remember to include your username in the crash reports. Or don't, that's ok too.</li>
<li>Removed some older libraries that are no longer maintained. Something might have broken? If you see something, say something</li>
</ul>
</section>
<section>
<h2>3.9.1</h2>
<ul>
<li>Refactored imgur upload to require account. On the one hand, you now need an Imgur account, on the other hand you can now delete those dick pics you "accidentally" uploaded in the app. Oh and also Imgur doesn't delete those images apparently?? Yet??</li>
<li>Added better handling for cloudfront captchas. You can now train self-driving cars without leaving the app.</li>
<li>Now also turning links for the letter app (formerly bird app) into embeds.</li>
</ul>
</section>
<section>
<h2>3.8.20</h2>
<ul>
<li>Fixed downloads on Android 13. It's called Tiramisu apparently, in case you're interested. Well, I told you anyway.</li>
<li>You can click on youtube video titles again to open it in the app or the browser. Turns out that was broken?</li>
<li>Now filtering tracking parameters for the youtube link in previous point, as well as finally removing those twitter link parameters. Took us long enough.</li>
<li>Upped the tablet minimum size from 6.5 to 7 inches. If your phone is bigger than that, only ${user_profile_deity} and the device and navigation settings can help you.</li>
<li>Fixed issue where linked images were not correctly converted to two links when images were disabled. The app should no longer hallucinate weird, invalid html.</li>
</ul>
</section>
<section>
<h2>3.8.18</h2>
<ul>
<li>App now "makes you" "accept" the forum "rules" before logging in. I'll post good, swear on me mum</li>
<li>Fixed an issue where newer version of the webview wouldn't let you use the three-dot menu. You can now quote instead of edit again.</li>
<li>Unless your phone is old (We're talking <i>very</i> old), the bookmark widget is a shortcut now. We're still looking into different icons, but at least it works now?</li>
<li>Added versions of the icons that <i>might</i> work with your launcher's theming settings. Fingers crossed.</li>
<li>Added an option for inlining tiktok videos. Also the frog now does the floss dance when you're not looking.</li>
<li>Fixed remaining probation time being calculated wrong if you live in one of those weird countries that use am/pm.</li>
<li>Fixed some issues with ignored posts. Also ignoring opinions about ignored posts.</li>
<li>Fixed the signature settings actually being used when making a reply. Working settings, imagine that.</li>
<li>Report button now also shows for users without platinum to prepare for the upcoming change in *checks notes* 2020. Huh.</li>
<li>Imgur images now insert where your cursor was instead of where they felt they belong. The uploader will also now use the last upload type instead of constantly asking you for a link to the image.</li>
<li>Updated some libraries under the hood for that extra bit of unintended wonkyness. That'll be fixed next version, we're sure.</li>
</ul>
Expand Down
10 changes: 10 additions & 0 deletions Awful.apk/src/main/assets/css/amberpos.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,14 @@ body {
*/
.postmenu:after {
content: "\e901";
}


#zoom-close {
background: black;
border: 2px solid #eacf4c;
}

#zoom-close:after {
color: #eacf4c;
}
Loading

0 comments on commit a4521bf

Please sign in to comment.