Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
59be286
remove conflicting min SDK
shresthajibesh Dec 21, 2025
54ae652
update the gradle from version 8.10.1 to 8.13.2
shresthajibesh Dec 21, 2025
258caff
add kotlin equivalent of gradle files
shresthajibesh Dec 21, 2025
d2f861b
remove the old groovy gradle files
shresthajibesh Dec 21, 2025
e46ba6b
declare version catalog
shresthajibesh Dec 21, 2025
7709337
declare version catalog
shresthajibesh Dec 21, 2025
a77aa7b
update dependency declaration to use version catalog
shresthajibesh Dec 21, 2025
c862e52
fix settings.gradle.kts
shresthajibesh Dec 21, 2025
1dee5d9
add jitpack repo
shresthajibesh Dec 21, 2025
6c3c0b9
update the compile sdk and target SDK
shresthajibesh Dec 25, 2025
8b66ddd
reverting to sdk 35
shresthajibesh Dec 25, 2025
09ded68
update junit
shresthajibesh Dec 25, 2025
9882c9a
add ksp and hilt dependency
shresthajibesh Dec 25, 2025
03bf663
annotate App with hiltandroidapp
shresthajibesh Dec 25, 2025
3ffba64
downgrading dependencies
shresthajibesh Dec 25, 2025
83b9f01
mark settings activity as entry point
shresthajibesh Dec 25, 2025
4effe4c
Rename .java to .kt
shresthajibesh Dec 25, 2025
e2cd501
migrate app class to kotlin
shresthajibesh Dec 25, 2025
65364cc
add empty app module
shresthajibesh Dec 25, 2025
9bcc4b5
add compose dependencies
shresthajibesh Dec 26, 2025
06c96c5
add compose elements
shresthajibesh Dec 26, 2025
1a773cf
add missing colors and themes
shresthajibesh Dec 27, 2025
1a833aa
remove duplication of colorscheme accessor
shresthajibesh Dec 27, 2025
9bb42cd
remove unused import
shresthajibesh Dec 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 0 additions & 129 deletions app/build.gradle

This file was deleted.

149 changes: 149 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.ksp)
alias(libs.plugins.hilt.android)
alias(libs.plugins.compose.compiler)
}

android {
namespace = "de.rwth_aachen.phyphox"
testNamespace = "de.rwth_aachen.phyphoxTest"
compileSdk = libs.versions.compileSdk.get().toInt()

defaultConfig {
applicationId = "de.rwth_aachen.phyphox"
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.targetSdk.get().toInt()

versionName = "1.2.0"
// format WXXYYZZ, where WW is major, XX is minor, YY is patch, and ZZ is build
versionCode = 1020009 //1.02.00-09

val locales = listOf(
"en",
"cs",
"de",
"el",
"es",
"fr",
"hi",
"it",
"ja",
"ka",
"nl",
"pl",
"pt",
"ru",
"sr",
"b+sr+Latn",
"tr",
"vi",
"zh-rCN",
"zh-rTW"
)
buildConfigField(
"String[]",
"LOCALE_ARRAY",
"new String[]{\"" + locales.joinToString("\",\"") + "\"}"
)
resourceConfigurations.addAll(locales)

vectorDrawables {
useSupportLibrary = true
}
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

multiDexEnabled = true
}

buildTypes {
getByName("release") {
lint {
disable.add("MissingTranslation")
}
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
}
}

externalNativeBuild {
cmake {
path = file("src/main/cpp/CMakeLists.txt")
}
}

flavorDimensions.add("permissions")
productFlavors {
create("screenshot") {
dimension = "permissions"
}
create("regular") {
dimension = "permissions"
}
}

compileOptions {
encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

bundle {
language {
enableSplit = false
}
}

buildFeatures {
buildConfig = true
compose = true
}

ndkVersion = "28.0.13004108"
}

dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation(libs.androidx.multidex)
implementation(libs.google.material)
implementation(libs.androidx.annotation)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.appcompat.resources)
implementation(libs.androidx.preference)
implementation(libs.androidx.core)
implementation(libs.androidx.fragment)
implementation(libs.androidx.fragment.ktx)
implementation(libs.androidx.viewpager)
implementation(libs.androidx.recyclerview.selection)
implementation(libs.androidx.recyclerview)
implementation(libs.bundles.camerax)// CameraX Bundle
implementation(libs.commons.io)
implementation(libs.zxing.android.embedded)//https://github.com/journeyapps/zxing-android-embedded/blob/master/CHANGES.md
implementation(libs.apache.poi)
implementation(libs.jlhttp)
implementation(libs.caverock.androidsvg)//https://bigbadaboom.github.io/androidsvg/release_notes.html
implementation(libs.paho.mqtt.android)

//hilt
implementation(libs.hilt.android)
ksp(libs.hilt.android.compiler)

// Compose
implementation(platform(libs.androidx.compose.bom))
implementation(libs.bundles.compose)
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)

add("androidTestScreenshotImplementation", libs.junit)
add("androidTestScreenshotImplementation", libs.fastlane.screengrab)
add("androidTestScreenshotImplementation", libs.androidx.test.rules)
add("androidTestScreenshotImplementation", libs.androidx.test.ext.junit)
add("androidTestScreenshotImplementation", libs.androidx.test.espresso.core)

androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test.junit4)

testImplementation(libs.junit)
testImplementation(libs.google.truth)
}
11 changes: 0 additions & 11 deletions app/src/main/java/de/rwth_aachen/phyphox/App.java

This file was deleted.

13 changes: 13 additions & 0 deletions app/src/main/java/de/rwth_aachen/phyphox/App.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package de.rwth_aachen.phyphox

import androidx.multidex.MultiDexApplication
import dagger.hilt.android.HiltAndroidApp

//This extension to application is only used to store measured data in memory as this may easily exceed the amount of data allowed on the transaction stack
@HiltAndroidApp
class App : MultiDexApplication() {

//Need to get rid off of this ASAP
@JvmField
var experiment: PhyphoxExperiment? = null
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
import android.view.ViewGroup;


import dagger.hilt.android.AndroidEntryPoint;
import de.rwth_aachen.phyphox.Helper.Helper;
import de.rwth_aachen.phyphox.Helper.WindowInsetHelper;
import de.rwth_aachen.phyphox.R;


@AndroidEntryPoint
public class SettingsActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/de/rwth_aachen/phyphox/di/AppModule.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package de.rwth_aachen.phyphox.di

import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent

@Module(includes = [])
@InstallIn(SingletonComponent::class)
abstract class AppModule {}

43 changes: 43 additions & 0 deletions app/src/main/java/de/rwth_aachen/phyphox/ui/theme/Color.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package de.rwth_aachen.phyphox.ui.theme

import androidx.compose.ui.graphics.Color

val PhyphoxPrimary = Color(0xFFFF7E22)
val PhyphoxPrimaryWeak = Color(0xFFFFA500)
val PhyphoxRwthPrimary = Color(0xFF00549F)

val PhyphoxWhite100 = Color(0xFFFFFFFF)
val PhyphoxWhite90 = Color(0xFFF0F0F0)
val PhyphoxWhite80 = Color(0xFFE0E0E0)
val PhyphoxWhite70 = Color(0xFFD0D0D0)
val PhyphoxWhite60 = Color(0xFFC4C4C4)
val PhyphoxWhite50Black50 = Color(0xFF808080)
val PhyphoxBlack40 = Color(0xFF404040)
val PhyphoxBlack50 = Color(0xFF303030)
val PhyphoxBlack60 = Color(0xFF202020)
val PhyphoxBlack80 = Color(0xFF101010)
val PhyphoxBlack100 = Color(0xFF000000)

val PhyphoxBlue100 = Color(0xFF2260A5)
val PhyphoxBlue60 = Color(0xFF39A2FF)
val PhyphoxBlue40 = Color(0xFF9DD1FF)
val PhyphoxBlueStrong = Color(0xFF0169C5)

val PhyphoxRed = Color(0xFFFE005D)
val PhyphoxRedWeak = Color(0xFFFF7CAC)

val PhyphoxMagenta = Color(0xFFEB46F4)
val PhyphoxMagentaWeak = Color(0xFFF6AAFA)

val PhyphoxGreen = Color(0xFF2BFB4C)
val PhyphoxGreenWeak = Color(0xFFA1FDAF)
val PhyphoxGreenStrong = Color(0xFF00D425)

val PhyphoxYellowWeak = Color(0xFFE7E09B)
val PhyphoxYellow = Color(0xFFEDF668)
val PhyphoxYellowStrong = Color(0xFF8D9709)

// Helper aliases to match old definitions if any
val PhyphoxBlack = PhyphoxBlack100
val PhyphoxWhite = PhyphoxWhite100
val PhyphoxBlue = PhyphoxBlue100
Loading