Skip to content

Instantly share code, notes, and snippets.

@moshimore
Created September 15, 2019 15:00
Show Gist options
  • Save moshimore/132915726d79c56d1d5c9d2e237d7d52 to your computer and use it in GitHub Desktop.
Save moshimore/132915726d79c56d1d5c9d2e237d7d52 to your computer and use it in GitHub Desktop.
Android CameraX Sample
android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
def camerax_version = "1.0.0-alpha05"
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment