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
package com.eugeneek.injector | |
import java.util.* | |
import kotlin.reflect.KClass | |
object Injector { | |
private val scopes = HashMap<String, Scope>() | |
@JvmStatic |
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
class RecognitionException( | |
override val message: String | |
) : Throwable() | |
class Recognizer( | |
private val documentReder: DocumentReader | |
) { | |
fun recognize(image: Bitmap, callback: ((RecognitionResult) -> Unit)) { | |
documentReader.recognizeImage(image) { action, results, error -> |
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
package com.eugeneek; | |
import android.content.Context; | |
import android.support.annotation.RawRes; | |
import android.util.Base64; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; |
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
apply plugin: 'com.android.application' | |
apply from: "$project.rootDir/scripts/script-git-version.gradle" | |
apply from: "$project.rootDir/scripts/dependencies.gradle" | |
ext { | |
// Version names | |
appVersionCode = getVersionCode() | |
appVersionName = getVersionName() | |
} |
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
public class SignatureView extends View { | |
private Bitmap mBitmap; | |
private Canvas mCanvas; | |
private Path mPath; | |
private Paint mBitmapPaint; | |
private Paint mPaint; | |
private Paint circlePaint; | |
private Path circlePath; | |
private int backgroundColor; |