-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CameraKit/v0.2.0
v0.2.0
- Loading branch information
Showing
31 changed files
with
1,371 additions
and
86 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
|
||
add_library(demo SHARED src/main/cpp/demo.cpp) | ||
|
||
find_library(log-lib log) | ||
find_library(android-lib android) | ||
|
||
target_link_libraries(demo ${log-lib} ${android-lib}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
apply plugin: 'com.android.application' | ||
plugins { | ||
id 'com.android.application' | ||
id 'kotlin-android' | ||
} | ||
|
||
android { | ||
compileSdkVersion 26 | ||
compileSdkVersion = 28 | ||
buildToolsVersion = '28.0.0' | ||
defaultConfig { | ||
applicationId 'com.jpegkit.app' | ||
applicationId 'jpegkit.app' | ||
minSdkVersion 15 | ||
targetSdkVersion 26 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName '0.1.0' | ||
versionName '0.2.0' | ||
externalNativeBuild { | ||
cmake { | ||
cppFlags '' | ||
} | ||
} | ||
} | ||
externalNativeBuild { | ||
cmake { | ||
path 'CMakeLists.txt' | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
google() | ||
} | ||
|
||
dependencies { | ||
implementation project(':jpegkit') | ||
implementation 'com.android.support:appcompat-v7:26.1.0' | ||
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.50' | ||
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3' | ||
} |
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
File renamed without changes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <jni.h> | ||
|
||
extern "C" JNIEXPORT void JNICALL | ||
Java_com_jpegkit_app_MainActivity_init(JNIEnv *env, jobject obj) { | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,10 @@ | ||
ext { | ||
compileSdkVersion = 27 | ||
buildToolsVersion = '27.0.0' | ||
|
||
minSdkVersion = 15 | ||
targetSdkVersion = 27 | ||
} | ||
|
||
|
||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.0.1' | ||
} | ||
} | ||
|
||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
classpath 'com.android.tools.build:gradle:3.1.3' | ||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50' | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon Jan 22 05:18:53 EST 2018 | ||
#Mon Jun 11 14:39:14 EDT 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
|
||
include_directories(${CMAKE_SOURCE_DIR}/src/main/cpp/libjpeg/include) | ||
|
||
add_library(libjpeg STATIC IMPORTED) | ||
set_target_properties( | ||
libjpeg | ||
PROPERTIES | ||
IMPORTED_LOCATION | ||
${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libjpeg-turbo.a | ||
) | ||
|
||
include_directories(src/main/cpp/jpegkit/include) | ||
file(GLOB SOURCES "src/main/cpp/jpegkit/*.cpp") | ||
add_library(jpegkit SHARED ${SOURCES}) | ||
|
||
find_library(android-lib android) | ||
find_library(gl-lib GLESv2) | ||
|
||
target_link_libraries( | ||
jpegkit | ||
libjpeg | ||
${android-lib} | ||
${gl-lib} | ||
) |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef __JKUTILS_H__ | ||
#define __JKUTILS_H__ | ||
|
||
#include <jni.h> | ||
#include <unistd.h> | ||
#include <turbojpeg.h> | ||
#include <GLES2/gl2.h> | ||
|
||
typedef struct { unsigned char *bytes; } Allocation; | ||
|
||
#endif |
Oops, something went wrong.