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
| import java.io.File | |
| import java.io.FileNotFoundException | |
| import java.util.* | |
| const val RESULT_PATH = "src/main/resources/result.txt" | |
| const val CODE_PATH = "src/main/resources/javacode" | |
| fun main(args: Array<String>) { | |
| val file = File(CODE_PATH) | |
| File(RESULT_PATH).delete() |
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
| import android.app.Activity; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Canvas; | |
| import android.graphics.drawable.BitmapDrawable; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.text.Html; | |
| import android.widget.TextView; |
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
| .gradle | |
| .idea | |
| /build | |
| /captures | |
| /local.properties | |
| *.iml | |
| .DS_Store |
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
| import android.graphics.Bitmap | |
| import android.graphics.Canvas | |
| import android.graphics.drawable.BitmapDrawable | |
| import android.graphics.drawable.Drawable | |
| import android.text.Html | |
| import android.util.Log | |
| import android.widget.TextView | |
| import com.squareup.picasso.Picasso | |
| import com.squareup.picasso.Target | |
| import java.lang.Exception |
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
| implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0' | |
| implementation 'com.squareup.retrofit2:retrofit:2.3.0' | |
| implementation 'com.squareup.retrofit2:adapter-rxjava2:2.2.0' | |
| implementation 'com.squareup.retrofit2:converter-gson:2.3.0' | |
| implementation "io.reactivex.rxjava2:rxjava:2.1.6" | |
| implementation 'io.reactivex.rxjava2:rxandroid:2.0.1' |
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 OpenHelper private constructor(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_VERSION) { | |
| override fun onCreate(db: SQLiteDatabase) { | |
| db.execSQL(Repo.CREATE_TABLE) | |
| } | |
| override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) { | |
| // upgrade logic | |
| } | |
| companion object { |