-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from uswLectureEvaluation/feature/ktlint-detek…
…t-ci Feature/ktlint detekt ci
- Loading branch information
Showing
401 changed files
with
4,594 additions
and
4,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
max_line_length = 150 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
ktlint_standard_filename = disabled | ||
ktlint_standard_import-ordering = disabled | ||
ktlint_standard_annotation = disabled | ||
ktlint_standard_wrapping = disabled | ||
ktlint_standard_argument-list-wrapping = disabled | ||
ktlint_standard_multiline-if-else = disabled | ||
|
||
[*.{kt,kts}] | ||
ij_kotlin_allow_trailing_comma = true | ||
ij_kotlin_allow_trailing_comma_on_call_site = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,52 @@ | ||
plugins { | ||
id("suwiki.android.application") | ||
id("suwiki.android.application.compose") | ||
id("suwiki.android.application") | ||
id("suwiki.android.application.compose") | ||
} | ||
|
||
android { | ||
namespace = "com.kunize.uswtimetable" | ||
namespace = "com.kunize.uswtimetable" | ||
|
||
defaultConfig { | ||
applicationId = "com.kunize.uswtimetable" | ||
versionCode = 1 | ||
versionName = "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro", | ||
) | ||
} | ||
} | ||
defaultConfig { | ||
applicationId = "com.kunize.uswtimetable" | ||
versionCode = 1 | ||
versionName = "1.0" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(projects.core.database) | ||
implementation(projects.core.model) | ||
implementation(projects.core.network) | ||
implementation(projects.core.security) | ||
|
||
implementation(projects.data) | ||
implementation(projects.data.openmajor) | ||
implementation(projects.data.timetable.viewer) | ||
implementation(projects.data.timetable.editor) | ||
implementation(projects.data.lectureevaluation.editor) | ||
implementation(projects.data.lectureevaluation.viewer) | ||
implementation(projects.data.lectureevaluation.report) | ||
implementation(projects.data.lectureevaluation.my) | ||
implementation(projects.data.user) | ||
implementation(projects.data.notice) | ||
implementation(projects.data.signup) | ||
|
||
implementation(projects.domain) | ||
implementation(projects.di) | ||
|
||
implementation(projects.local.openmajor) | ||
implementation(projects.local.timetable.editor) | ||
implementation(projects.local.timetable.viewer) | ||
implementation(projects.local.user) | ||
|
||
implementation(projects.remote.lectureevaluation.editor) | ||
implementation(projects.remote.lectureevaluation.my) | ||
implementation(projects.remote.lectureevaluation.report) | ||
implementation(projects.remote.lectureevaluation.viewer) | ||
implementation(projects.remote.notice) | ||
implementation(projects.remote.openmajor) | ||
implementation(projects.remote.signup) | ||
implementation(projects.remote.timetable.viewer) | ||
implementation(projects.remote.user) | ||
implementation(projects.core.database) | ||
implementation(projects.core.model) | ||
implementation(projects.core.network) | ||
implementation(projects.core.security) | ||
|
||
implementation(projects.data) | ||
implementation(projects.data.openmajor) | ||
implementation(projects.data.timetable.viewer) | ||
implementation(projects.data.timetable.editor) | ||
implementation(projects.data.lectureevaluation.editor) | ||
implementation(projects.data.lectureevaluation.viewer) | ||
implementation(projects.data.lectureevaluation.report) | ||
implementation(projects.data.lectureevaluation.my) | ||
implementation(projects.data.user) | ||
implementation(projects.data.notice) | ||
implementation(projects.data.signup) | ||
|
||
implementation(projects.domain) | ||
implementation(projects.di) | ||
|
||
implementation(projects.local.openmajor) | ||
implementation(projects.local.timetable.editor) | ||
implementation(projects.local.timetable.viewer) | ||
implementation(projects.local.user) | ||
|
||
implementation(projects.remote.lectureevaluation.editor) | ||
implementation(projects.remote.lectureevaluation.my) | ||
implementation(projects.remote.lectureevaluation.report) | ||
implementation(projects.remote.lectureevaluation.viewer) | ||
implementation(projects.remote.notice) | ||
implementation(projects.remote.openmajor) | ||
implementation(projects.remote.signup) | ||
implementation(projects.remote.timetable.viewer) | ||
implementation(projects.remote.user) | ||
implementation(libs.junit) | ||
} |
20 changes: 9 additions & 11 deletions
20
app-compose/src/androidTest/java/com/kunize/uswtimetable/ExampleInstrumentedTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
package com.kunize.uswtimetable | ||
|
||
import androidx.test.platform.app.InstrumentationRegistry | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
|
||
import androidx.test.platform.app.InstrumentationRegistry | ||
import junit.framework.TestCase.assertEquals | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
import org.junit.Assert.* | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* See [testing documentation](http://d.android.com/tools/testing). | ||
*/ | ||
@RunWith(AndroidJUnit4::class) | ||
class ExampleInstrumentedTest { | ||
@Test | ||
fun useAppContext() { | ||
// Context of the app under test. | ||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
assertEquals("com.kunize.uswtimetable", appContext.packageName) | ||
} | ||
} | ||
@Test | ||
fun useAppContext() { | ||
// Context of the app under test. | ||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
assertEquals("com.kunize.uswtimetable", appContext.packageName) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
app-compose/src/test/java/com/kunize/uswtimetable/ExampleUnitTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
package com.kunize.uswtimetable | ||
|
||
import junit.framework.TestCase.assertEquals | ||
import org.junit.Test | ||
|
||
import org.junit.Assert.* | ||
|
||
/** | ||
* Example local unit test, which will execute on the development machine (host). | ||
* | ||
* See [testing documentation](http://d.android.com/tools/testing). | ||
*/ | ||
class ExampleUnitTest { | ||
@Test | ||
fun addition_isCorrect() { | ||
assertEquals(4, 2 + 2) | ||
} | ||
} | ||
@Test | ||
fun addition_isCorrect() { | ||
assertEquals(4, 2 + 2) | ||
} | ||
} |
Oops, something went wrong.