Skip to content

Commit

Permalink
Large refactor, use Uni types, auth, cleanup (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV-GH authored Jun 27, 2024
1 parent 6d9c80d commit 0736e52
Show file tree
Hide file tree
Showing 1,721 changed files with 37,389 additions and 13,854 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ root = true
indent_size = 4
insert_final_newline = true
end_of_line = lf
max_line_length = 140

ktlint_code_style = intellij_idea
ktlint_standard_no-wildcard-imports = disabled
Expand Down
2 changes: 2 additions & 0 deletions .github/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
kotlin.daemon.jvmargs=-Xmx6G
org.gradle.jvmargs=-Xmx6G
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: SimonMarquis/ci-gradle-properties-action@v1
with:
path: .github/gradle.properties
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Cache Konan dependencies
Expand All @@ -39,20 +41,25 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- run: ./gradlew lintKotlin
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: SimonMarquis/ci-gradle-properties-action@v1
with:
path: .github/gradle.properties
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- run: ./gradlew allTests
23 changes: 23 additions & 0 deletions ACTIVE_CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Active Changes

This document lists the changes that you will need to actively handle, through feature flags.



## 0.19.4
- Hide post support
- Alt text support.
- Voting types rework:
A user can now individually set which voting type they want to see.
(Upvotes, downvotes, total_score, ratio) This means there is now two `show_scores` account settings.
But each has different behaviour. The old behaviour is to hide all voting types and the new one is to hide only the total.


## 0.19.0
- Log out support (invalidates the current JWT)
- Instance block support
- 2FA rework, one must now provide a valid 2FA code to enable 2FA. Added routes to support this.




5 changes: 4 additions & 1 deletion GeneratorScripts/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
id("com.google.devtools.ksp").version("2.0.0-1.0.22")
}

repositories {
Expand All @@ -11,7 +12,7 @@ dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
implementation("com.charleskorn.kaml:kaml:0.55.0")
val ktorVersion = "2.3.10"
val konvertVersion = "2.3.0"
val konvertVersion = "3.2.1"
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
Expand All @@ -25,6 +26,8 @@ dependencies {
implementation("io.mcarle:konvert:$konvertVersion")
implementation("io.mcarle:konvert-api:$konvertVersion")
implementation(project(":app"))

ksp("io.mcarle:konvert:$konvertVersion")
}


Expand Down
Loading

0 comments on commit 0736e52

Please sign in to comment.