-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New feature: random time & isolated flag
- Loading branch information
Showing
13 changed files
with
144 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
import java.util.Properties | ||
|
||
|
||
plugins { | ||
`maven-publish` | ||
id("com.github.johnrengelman.shadow") version "7.0.0" | ||
id("kotlin") | ||
id("kotlinx-serialization") | ||
} | ||
|
||
|
||
publishing { | ||
val config = Properties() | ||
val file = rootProject.file("local.properties") | ||
if(file.exists()) file.inputStream().use { config.load(it) } | ||
val keyPrefix = "publishMaven.api." | ||
|
||
publications { | ||
create<MavenPublication>("covid-hcs") { | ||
groupId = "com.lhwdev.covid-hcs" | ||
artifactId = "hcs-api" | ||
version = "1.0.0" | ||
|
||
pom { | ||
licenses { | ||
license { | ||
name.set("Apache License 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
} | ||
|
||
from(components["java"]) | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
url = uri(config[keyPrefix + "url"].toString()) | ||
credentials { | ||
username = config[keyPrefix + "username"].toString() | ||
password = config[keyPrefix + "password"].toString() | ||
} | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":api-base")) | ||
implementation(project(":transkey")) | ||
|
||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2") | ||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0") | ||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.0.0") | ||
} |
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
23 changes: 23 additions & 0 deletions
23
app/src/main/java/com/lhwdev/selfTestMacro/DebugActivity.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.lhwdev.selfTestMacro | ||
|
||
import android.app.Activity | ||
import android.app.AlertDialog | ||
import android.content.ClipData | ||
import android.content.ClipboardManager | ||
import android.os.Bundle | ||
import android.widget.Toast | ||
import androidx.core.content.getSystemService | ||
|
||
|
||
class DebugActivity : Activity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
|
||
val clipboard = getSystemService<ClipboardManager>()!! | ||
val error = intent.getStringExtra("error") | ||
AlertDialog.Builder(this).setTitle("오류 발생").setMessage(error).setPositiveButton("오류 내용 복사") { _, _ -> | ||
clipboard.setPrimaryClip(ClipData.newPlainText("오류 로그", error)) | ||
Toast.makeText(this, "오류 로그를 복사했습니다.", Toast.LENGTH_LONG).show() | ||
}.show() | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
app/src/main/java/com/lhwdev/selfTestMacro/MainApplication.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
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