Skip to content

Commit

Permalink
Prevent errors on API level 16 and 17
Browse files Browse the repository at this point in the history
  • Loading branch information
emersoncloud committed Jan 22, 2019
1 parent 35fbf2d commit e2b861f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.camerakit.preview
import android.content.Context
import android.opengl.GLES20.glGenTextures
import android.opengl.GLSurfaceView
import android.os.Build
import androidx.annotation.Keep
import android.util.AttributeSet
import javax.microedition.khronos.egl.EGLConfig
Expand Down Expand Up @@ -106,6 +107,9 @@ class CameraSurfaceView : GLSurfaceView, GLSurfaceView.Renderer {
companion object {

init {
if (Build.VERSION.SDK_INT <= 17) {
System.loadLibrary("camerakit-core")
}
System.loadLibrary("camerakit")
}

Expand Down

0 comments on commit e2b861f

Please sign in to comment.