This file contains hidden or 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
// build.gradle of 'app' module. | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-kapt' // Add this line. | |
android { | |
... | |
dataBinding { | |
enabled = true | |
} | |
} | |
dependencies { |
This file contains hidden or 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
// Move the branch pointer to a different commit | |
git branch -f branch-name commit-name | |
// Cancel merging | |
git reset --hard ORIG_HEAD | |
git reset --merge ORIG_HEAD ;; If you wanna keep your changes | |
// Cancel editing a file | |
git checkout -- <file> |
This file contains hidden or 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
### Android ### | |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
This file contains hidden or 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
package winapi251.app.schoolmeal | |
import android.content.Context | |
import androidx.test.core.app.ApplicationProvider | |
import androidx.test.ext.junit.runners.AndroidJUnit4 | |
import org.junit.Assert.assertEquals | |
import org.junit.Test | |
import org.junit.runner.RunWith | |
@RunWith(AndroidJUnit4::class) |
This file contains hidden or 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
<!-- 안드로이드 매니페스트 --> | |
<manifest | |
package = "boxresin.app.barcodescanner" | |
xmlns:android = "http://schemas.android.com/apk/res/android" | |
xmlns:tools = "http://schemas.android.com/tools"> | |
<application | |
android:allowBackup = "false" | |
android:icon = "@mipmap/ic_launcher" | |
android:label = "@string/app_name" |
This file contains hidden or 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
package winapi251.app.schoolmeal.ui.main | |
import android.content.Context | |
import android.database.MatrixCursor | |
import android.util.Log | |
import androidx.appcompat.widget.SearchView | |
import androidx.cursoradapter.widget.SimpleCursorAdapter | |
import kotlinx.coroutines.experimental.Dispatchers | |
import kotlinx.coroutines.experimental.GlobalScope | |
import kotlinx.coroutines.experimental.android.Main |
This file contains hidden or 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
buildscript { | |
ext.kotlin_version = '1.2.71' | |
repositories { | |
google() | |
jcenter() | |
maven { url 'https://dl.bintray.com/minyushov/gradle' } | |
} | |
dependencies { |
This file contains hidden or 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
apply plugin: 'kotlin' | |
// 의존성 | |
dependencies { | |
// 로컬 JAR | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
// 코틀린 | |
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | |
} |
This file contains hidden or 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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/code | |
docker: | |
- image: circleci/android:api-28-alpha | |
environment: | |
JVM_OPTS: -Xmx3200m | |
TZ: "/usr/share/zoneinfo/Asia/Seoul" | |
steps: |
This file contains hidden or 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
class AnyTest { | |
@Test | |
fun test() { | |
"스파게티".matches("*스파게티").let { println(it) } | |
"스파게티".matches("스파게티").let { println(it) } | |
"소스파게티".matches("*스파게티").let { println(it) } | |
"소스파게티".matches("스파게티*").let { println(it) } | |
"스파게티테".matches("*스파게티").let { println(it) } | |
} |
OlderNewer