File tree Expand file tree Collapse file tree 7 files changed +61
-38
lines changed
Expand file tree Collapse file tree 7 files changed +61
-38
lines changed Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.4.1)
2+
3+ add_library (demo SHARED src/main/cpp/demo.cpp)
4+
5+ find_library (log -lib log )
6+ find_library (android-lib android)
7+
8+ target_link_libraries (demo ${log -lib} ${android-lib})
Original file line number Diff line number Diff line change 1- apply plugin : ' com.android.application'
1+ plugins {
2+ id ' com.android.application'
3+ }
24
35android {
4- compileSdkVersion 26
6+ compileSdkVersion = 27
7+ buildToolsVersion = ' 27.0.3'
58 defaultConfig {
69 applicationId ' com.jpegkit.app'
710 minSdkVersion 15
8- targetSdkVersion 26
11+ targetSdkVersion 27
912 versionCode 1
10- versionName ' 0.1.0'
13+ versionName ' 0.2.0'
14+ externalNativeBuild {
15+ cmake {
16+ cppFlags ' '
17+ }
18+ }
19+ }
20+ externalNativeBuild {
21+ cmake {
22+ path ' CMakeLists.txt'
23+ }
1124 }
1225}
1326
27+ repositories {
28+ jcenter()
29+ google()
30+ }
31+
1432dependencies {
1533 implementation project(' :jpegkit' )
16- implementation ' com.android.support:appcompat-v7:26 .1.0 '
34+ implementation ' com.android.support:appcompat-v7:27 .1.1 '
1735}
Original file line number Diff line number Diff line change 1+ #include < jni.h>
2+
3+ extern " C" JNIEXPORT void JNICALL
4+ Java_com_jpegkit_app_MainActivity_init (JNIEnv *env, jobject obj) {
5+ }
Original file line number Diff line number Diff line change 1- ext {
2- compileSdkVersion = 27
3- buildToolsVersion = ' 27.0.0'
4-
5- minSdkVersion = 15
6- targetSdkVersion = 27
7- }
8-
9-
101buildscript {
112 repositories {
123 google()
134 jcenter()
145 }
156 dependencies {
16- classpath ' com.android.tools.build:gradle:3.0.1'
17- }
18- }
19-
20-
21- allprojects {
22- repositories {
23- google()
24- jcenter()
7+ classpath ' com.android.tools.build:gradle:3.1.2'
258 }
269}
Original file line number Diff line number Diff line change 1- # Mon Jan 22 05:18:53 EST 2018
1+ # Mon Jun 11 14:39:14 EDT 2018
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-4.1 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-4.4 -all.zip
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.4.1)
22
3- set (JPEG_INC_DIR ${CMAKE_SOURCE_DIR} /cpp/libjpeg/include )
4- set (JPEG_BUILD_DIR ${CMAKE_SOURCE_DIR} /jniLibs)
3+ set (JPEG_INC_DIR ${CMAKE_SOURCE_DIR} /src/main/ cpp/libjpeg/include )
4+ set (JPEG_BUILD_DIR ${CMAKE_SOURCE_DIR} /src/main/ jniLibs)
55
66include_directories (${JPEG_INC_DIR} )
77
88add_library (libjpeg STATIC IMPORTED )
99set_target_properties (libjpeg PROPERTIES IMPORTED_LOCATION ${JPEG_BUILD_DIR} /${ANDROID_ABI} /libjpeg-turbo.a)
1010
11- add_library (jpegkit SHARED ${CMAKE_SOURCE_DIR} /cpp/JniJpeg.cpp)
11+ add_library (jpegkit SHARED ${CMAKE_SOURCE_DIR} /src/main/ cpp/JniJpeg.cpp)
1212
1313target_link_libraries (jpegkit libjpeg)
Original file line number Diff line number Diff line change 11plugins {
2+ id ' com.android.library'
23 id ' com.jfrog.bintray' version ' 1.7.3'
34 id ' com.github.dcendents.android-maven' version ' 1.5'
45}
56
6- apply plugin : ' com.android.library'
7-
87android {
9- compileSdkVersion rootProject . ext . compileSdkVersion
10- buildToolsVersion rootProject . ext . buildToolsVersion
8+ compileSdkVersion = 27
9+ buildToolsVersion = ' 27.0.3 '
1110 defaultConfig {
12- minSdkVersion rootProject. ext. minSdkVersion
13- targetSdkVersion rootProject. ext. targetSdkVersion
11+ minSdkVersion 15
12+ targetSdkVersion 27
13+ externalNativeBuild {
14+ cmake {
15+ cppFlags ' '
16+ }
17+ }
1418 }
1519 externalNativeBuild {
1620 cmake {
17- path ' src/main/ CMakeLists.txt'
21+ path ' CMakeLists.txt'
1822 }
1923 }
2024}
2125
26+ repositories {
27+ jcenter()
28+ google()
29+ }
30+
2231dependencies {
23- implementation ' com.android.support:exifinterface:27.1.0 '
32+ implementation ' com.android.support:exifinterface:27.1.1 '
2433}
2534
2635ext. getBintrayUser = { ->
@@ -30,7 +39,7 @@ ext.getBintrayUser = { ->
3039
3140 Properties properties = new Properties ()
3241 properties. load(rootProject. file(' local.properties' ). newDataInputStream())
33- return properties. getProperty(' bintray.user' );
42+ return properties. getProperty(' bintray.user' )
3443}
3544
3645ext. getBintrayKey = { ->
@@ -100,7 +109,7 @@ task deployRelease {
100109}
101110
102111group = ' com.camerakit'
103- version = ' 0.1 .0'
112+ version = ' 0.2 .0'
104113
105114install {
106115 repositories. mavenInstaller {
You can’t perform that action at this time.
0 commit comments