Skip to content

Commit 772528c

Browse files
committed
dev: remove compiler.jar
1 parent e8b74dc commit 772528c

File tree

121 files changed

+181
-13955
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+181
-13955
lines changed

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ android {
2929
}
3030
}
3131

32-
compileOptions{
32+
compileOptions {
3333
sourceCompatibility JavaVersion.VERSION_1_8
3434
targetCompatibility JavaVersion.VERSION_1_8
3535
}
@@ -42,8 +42,8 @@ dependencies {
4242
implementation 'com.google.android.material:material:1.5.0'
4343
implementation 'com.blankj:utilcodex:1.31.0'
4444

45-
implementation 'io.github.xiaoyvyv:compiler-d8:1.0.2'
46-
// implementation project(':compiler-d8')
45+
// implementation 'io.github.xiaoyvyv:compiler-d8:1.0.2'
46+
implementation project(':compiler-d8')
4747
implementation project(':compiler-format')
4848

4949
testImplementation 'junit:junit:4.13.2'

app/src/main/java/com/xiaoyv/javaengine/CompileActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class CompileActivity : AppCompatActivity(), CoroutineScope by MainScope() {
5454
binding.toolbar.menu.add("Run")
5555
.setOnMenuItemClickListener {
5656
formatCode()
57-
// runProgram()
57+
runProgram()
5858
true
5959
}.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS)
6060

@@ -64,7 +64,7 @@ class CompileActivity : AppCompatActivity(), CoroutineScope by MainScope() {
6464
private fun formatCode() {
6565
val codeText = binding.codeText.text.toString()
6666
val formatSource = Formatter(JavaFormatterOptions.builder()
67-
.style(JavaFormatterOptions.Style.GOOGLE)
67+
.style(JavaFormatterOptions.Style.AOSP)
6868
.build())
6969
.formatSource(codeText)
7070
binding.codeText.setText(formatSource)

compiler-d8/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies {
4040
implementation 'org.eclipse.jdt:ecj:3.26.0'
4141

4242
// Jdk Java Compiler
43-
implementation project(':compiler')
43+
implementation project(':compiler-jdk8')
4444

4545
implementation 'androidx.core:core-ktx:1.7.0'
4646
implementation 'androidx.appcompat:appcompat:1.4.1'

compiler-format.zip

-18.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)