최종 수정일: 2025년 10월 2일
스레디오(이하 "본 확장 프로그램")는 사용자의 개인정보를 소중히 여기며, 최소한의 데이터만 수집하고 모든 데이터를 사용자의 기기 내에만 저장합니다.
| val projectGroup: String by project | |
| val projectVersion: String by project | |
| val kotlinVersion: String by project | |
| val ktlintVersion: String by project | |
| plugins { | |
| val kotlinVersion = "1.4.10" | |
| kotlin("jvm") version kotlinVersion | |
| kotlin("kapt") version kotlinVersion | |
| } |
| // 앱이 설치 설치되었는지 판단하는 함수 | |
| fun Context.isInstalledApp(packageName: String): Boolean { | |
| val intent = packageManager.getLaunchIntentForPackage(packageName) | |
| return intent != null | |
| } | |
| // 특정 앱을 실행하는 함수 | |
| fun Context.openApp(packageName: String) { | |
| val intent = packageManager.getLaunchIntentForPackage(packageName) | |
| startActivity(intent) |
| class SortTest { | |
| @Test | |
| fun `sorting`() { | |
| DUMMY.sortedWith( | |
| compareByDescending<SortItem> { it.bool } | |
| .thenBy { it.num } | |
| .thenBy { it.date } | |
| .thenBy { it.name } | |
| ).print() |
| import org.apache.commons.codec.binary.Hex | |
| import java.nio.charset.Charset | |
| import java.security.GeneralSecurityException | |
| import java.text.SimpleDateFormat | |
| import java.util.* | |
| import javax.crypto.Mac | |
| import javax.crypto.spec.SecretKeySpec | |
| object HmacGenerator { |
| <application ...> | |
| ... | |
| <service android:name=".ClipboardService"/> | |
| </application> |
| <application .. > | |
| ... | |
| <service android:name=".StartAppService"/> | |
| </application> |
| /** | |
| * Usage | |
| * DLog.w("This is awesome!") | |
| * | |
| * print -> W/Dave: [xx.kt::methodName]This is awesome! | |
| */ | |
| object DLog { | |
| private const val TAG : String = "Dave" | |
| fun e(message : String){ |