Skip to content

Commit

Permalink
Initial open source release
Browse files Browse the repository at this point in the history
  • Loading branch information
langerhans committed Jan 28, 2024
1 parent 90349a4 commit 0db588a
Show file tree
Hide file tree
Showing 97 changed files with 3,313 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
9 changes: 9 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/ktfmt.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
# OdinTools
Collection of utilities for the AYN Odin 2. This is a release repo as the app is currently closed source until I clean it up a bit more :)
Collection of utilities for the AYN Odin 2.

Latest release: **[0.3.0](https://github.com/langerhans/OdinTools/releases/latest)**
Latest release: **[1.0.1](https://github.com/langerhans/OdinTools/releases/latest)**

### Features
- Quick settings tile for switching the controller style with user selectable option for which styles to cycle through
- Quick settings tile for switching the L2/R2 style with user selectable option for which styles to cycle through
- Single press home button setting to allow going to the home screen by a single press of the home button
- Display saturation setting. This is set immediately and will be applied after a reboot as well. Note that it takes a few seconds after you first unlock the device to apply.
- Per-app overrides for both controller style and L2/R2 style settings. These will be applied and reverted automatically based on the current foreground app

### Contact
If you have any questions, feel free to find me on the AYN Discord at https://discord.com/invite/pWCpvEUTdR

### Compatibility
This app has been tested with the Odin 2 firmware version **1.0.0.208**. It's possible that AYN breaks the methods used by this app in a future update. The app will warn you accordingly if that's the case.
This app has been tested with the Odin 2 firmware version **1.0.0.253**. It's possible that AYN breaks the methods used by this app in a future update. The app will warn you accordingly if that's the case.

### Screenshots
![image](https://github.com/langerhans/OdinTools/assets/5160000/a977def1-b7b3-40a3-a3de-0ea13aa836db)
![image](https://github.com/langerhans/OdinTools/assets/5160000/bc0ff9bf-d4b8-424a-8633-b2413e475aaf)

#### Main menu
![image](docs/main.png)
#### QS tiles
![image](docs/qs_tiles.png)
#### App overrides
![image](docs/app_overrides.png)
2 changes: 2 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build
/release
81 changes: 81 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
plugins {
alias(libs.plugins.com.android.application)
alias(libs.plugins.org.jetbrains.kotlin.android)
alias(libs.plugins.com.google.dagger.hilt.android)
alias(libs.plugins.com.google.devtools.ksp)
alias(libs.plugins.androidx.room)
}

android {
namespace = "de.langerhans.odintools"
compileSdk = 34

defaultConfig {
applicationId = "de.langerhans.odintools"
minSdk = 33
targetSdk = 34
versionCode = 6
versionName = "1.0.1"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
initWith(buildTypes.getByName("debug"))
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
applicationVariants.all {
val variant = this
outputs
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
.forEach {
it.outputFileName = "OdinTools-${variant.versionName}.apk"
}
}
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
buildFeatures {
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.8"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}

room {
schemaDirectory("$projectDir/schemas")
}

kotlin {
jvmToolchain(11)
}

dependencies {
// Compose BOM specifics
val composeBom = platform(libs.androidx.compose.bom)
implementation(composeBom)
androidTestImplementation(composeBom)
debugImplementation(composeBom)

// Normal imports
implementation(libs.bundles.app)
debugImplementation(libs.bundles.appDebug)
annotationProcessor(libs.bundles.appAnnotationProcessor)
ksp(libs.bundles.appKsp)
testImplementation(libs.bundles.appUnitTest)
androidTestImplementation(libs.bundles.appAndroidTest)
}
Loading

0 comments on commit 0db588a

Please sign in to comment.