Skip to content

Commit

Permalink
v.1.6.0 (#178)
Browse files Browse the repository at this point in the history
* open AL links as inAppBrowserView & make the snackbar floating (#173)

* fix: open anilist links in-app browser to stop the app from reopening in certain devices

* fix: add floating snackbar

* fix: flip condition

* New persistence (#176)

* start of persistence overhaul

* remove all global state

* timestamps + list updating

* extra checks for null in notifications

* guest mode and easier account switching

* flutter upgrade and meta files cleanup

* reorganize filtering and tag handling

* filter persistence

* favorite reordering

* easy unfavoriting while editing favorites

* visual improvements and clearer labels

* adjustments for release

* fix defaults

* fully disable impeller

* prepare for release

* ios fixes

* fastlane

---------

Co-authored-by: Rachala Ovin <[email protected]>
  • Loading branch information
lotusprey and Curstantine authored Dec 30, 2024
1 parent 9480a2a commit 0341462
Show file tree
Hide file tree
Showing 161 changed files with 5,660 additions and 3,827 deletions.
3 changes: 0 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ linter:
# Often unnecessary.
use_key_in_widget_constructors: false

# Some enums use SCREAMING_SNAKE_CASE for easy API integration (accessing `name`).
constant_identifier_names: false

# For closures.
prefer_function_declarations_over_variables: false
47 changes: 13 additions & 34 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,32 @@ plugins {
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('keystore.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
compileSdkVersion 34
namespace = "com.otraku.app"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

lintOptions {
disable 'InvalidPackage'
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}

defaultConfig {
applicationId "com.otraku.app"
minSdkVersion 26
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
applicationId = "com.otraku.app"
minSdkVersion = 26
targetSdkVersion = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}

signingConfigs {
Expand All @@ -65,10 +50,6 @@ android {
}
}

dependenciesInfo {
includeInApk = false
}

flavorDimensions "default"
productFlavors {
dev {
Expand All @@ -80,5 +61,3 @@ android {
flutter {
source '../..'
}

dependencies {}
10 changes: 9 additions & 1 deletion android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,12 @@

# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken

# TODO: Remove when the packages have fixed this on their own.
-dontwarn com.google.errorprone.annotations.CanIgnoreReturnValue
-dontwarn com.google.errorprone.annotations.CheckReturnValue
-dontwarn com.google.errorprone.annotations.Immutable
-dontwarn com.google.errorprone.annotations.RestrictedApi
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.concurrent.GuardedBy
8 changes: 6 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<!-- Deep linking -->
<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand All @@ -68,5 +66,11 @@
</intent-filter>
</activity>
<meta-data android:name="flutterEmbedding" android:value="2" />

<!-- TODO: Remove when black screen is no longer showing. -->
<meta-data android:name="io.flutter.embedding.android.DisableSurfaceControl" android:value="true" />

<!-- TODO: Remove when impeller is fixed. -->
<meta-data android:name="io.flutter.embedding.android.EnableImpeller" android:value="false" />
</application>
</manifest>
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ allprojects {
}
}

rootProject.buildDir = '../build'
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
Expand Down
Loading

0 comments on commit 0341462

Please sign in to comment.