Skip to content

Commit

Permalink
Use kotlin-compose-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanGIG committed Sep 8, 2024
1 parent 340bbba commit 8e6dd5d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
25 changes: 14 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.compose'
id 'kotlin-parcelize'
id 'org.lsposed.lsplugin.jgit'
}
Expand Down Expand Up @@ -38,7 +39,6 @@ android {
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
release {
Expand All @@ -55,6 +55,7 @@ android {
}

buildFeatures {
aidl true
buildConfig true
viewBinding true
compose true
Expand All @@ -63,33 +64,35 @@ android {
kotlinOptions {
jvmTarget = '17'
}
composeOptions {
kotlinCompilerExtensionVersion "1.5.4"
}
}

composeCompiler {
enableStrongSkippingMode = true
reportsDestination = layout.buildDirectory.dir("compose_compiler")
}

dependencies {
//Ui
def composeBom = platform('androidx.compose:compose-bom:2024.05.00')
def composeBom = platform("androidx.compose:compose-bom:2024.09.00")
implementation composeBom
androidTestImplementation composeBom

implementation 'androidx.compose.material3:material3'
implementation 'androidx.compose.material:material-icons-extended:1.6.7'
implementation 'androidx.compose.material:material-icons-extended'

// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// Integration with activities
implementation 'androidx.activity:activity-compose:1.9.0'
implementation 'androidx.activity:activity-compose:1.9.2'
// Integration with ViewModels
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.8.0'
implementation "androidx.compose.runtime:runtime-livedata:1.6.7"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.8.5"
implementation "androidx.compose.runtime:runtime-livedata:1.7.0"
// Integration with Navigation
implementation 'androidx.navigation:navigation-compose:2.7.7'
implementation "androidx.navigation:navigation-compose:2.8.0"

//Root
def libsuVersion = '5.2.2'
def libsuVersion = "6.0.0"
implementation "com.github.topjohnwu.libsu:core:$libsuVersion"
implementation "com.github.topjohnwu.libsu:service:$libsuVersion"

Expand Down
5 changes: 3 additions & 2 deletions app/src/main/java/com/dumper/android/dumper/Dumper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ class Dumper(private val context: Context, private val config: DumperConfig, pri
try {
pid = Process.getProcessID(config.processName) ?: throw Exception("Process not found!")

outLog.appendLine("PID: $pid")
outLog.appendLine("FILE: $file")
outputHandler.appendLine("PROCESS: ${config.processName}")
outputHandler.appendLine("PID: $pid")
outputHandler.appendLine("FILE: ${config.file}")

val mem = parseMap() ?: throw Exception("Unable to parse map!")

Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ buildscript {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.3.1'
classpath 'com.android.tools.build:gradle:8.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20"
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.0.20"
classpath "org.lsposed.lsplugin:jgit:1.1"

// NOTE: Do not place your application dependencies here; they belong
Expand Down

0 comments on commit 8e6dd5d

Please sign in to comment.