-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Malte Baumann
committed
Jul 30, 2018
1 parent
37a7d86
commit 2b8dfad
Showing
4 changed files
with
168 additions
and
38 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
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,36 +1,95 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
google() | ||
maven { url 'https://artifactory.9elements.com/artifactory/imgly' } | ||
} | ||
dependencies { | ||
classpath 'ly.img.android.pesdk:plugin:6.0.0' | ||
} | ||
} | ||
apply plugin: 'com.android.application' | ||
|
||
dependencies { | ||
api 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.51' | ||
} | ||
|
||
repositories { | ||
maven { | ||
url "https://artifactory.9elements.com/artifactory/imgly" | ||
} | ||
jcenter() | ||
google() | ||
maven { url 'https://artifactory.9elements.com/artifactory/imgly' } | ||
} | ||
|
||
android { | ||
defaultConfig { | ||
renderscriptTargetApi 23 | ||
renderscriptSupportModeEnabled true | ||
vectorDrawables.useSupportLibrary true | ||
// Apply the Android Plugin | ||
apply plugin: 'com.android.application' | ||
|
||
// Apply the PESDKPlugin. | ||
// [!] This assumes you made the correct changes to your projects build.gradle file! | ||
// See https://docs.photoeditorsdk.com/guides/android/v6/introduction/getting_started for details. | ||
apply plugin: 'ly.img.android.pesdk' | ||
|
||
// Configure the PESDKPlugin | ||
pesdkConfig { | ||
|
||
licencePath "LICENSE_ANDROID" // Name of the Licence file in the asset folder | ||
|
||
// Insert the latest SDK version here. You will find it here https://github.com/imgly/pesdk-android-demo/releases | ||
pesdkVersion "6.0.0" | ||
|
||
// If you use another supportLibVersion ('com.android.support'), change this version here to update your own supportLibVersion | ||
supportLibVersion "27.1.1" | ||
|
||
// Define the modules you are need | ||
modules { | ||
// Add all the backend modules you need | ||
include 'ly.img.android.pesdk.operation:text' | ||
include 'ly.img.android.pesdk.operation:frame' | ||
include 'ly.img.android.pesdk.operation:focus' | ||
include 'ly.img.android.pesdk.operation:brush' | ||
include 'ly.img.android.pesdk.operation:camera' | ||
include 'ly.img.android.pesdk.operation:filter' | ||
include 'ly.img.android.pesdk.operation:sticker' | ||
include 'ly.img.android.pesdk.operation:overlay' | ||
include 'ly.img.android.pesdk.operation:adjustment' | ||
include 'ly.img.android.pesdk.operation:text-design' | ||
include 'ly.img.android.pesdk.operation:abstract-sticker' | ||
|
||
// Add all the UI modules you are need | ||
include 'ly.img.android.pesdk.ui.mobile_ui:core' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:text' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:focus' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:frame' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:brush' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:filter' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:camera' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:sticker' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:overlay' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:transform' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:adjustment' | ||
include 'ly.img.android.pesdk.ui.mobile_ui:text-design' | ||
|
||
|
||
// Add the serializer if you need | ||
include 'ly.img.android.pesdk:serializer' | ||
|
||
// Add asset packs if you need | ||
include 'ly.img.android.pesdk.assets:font-basic' | ||
include 'ly.img.android.pesdk.assets:font-text-design' | ||
include 'ly.img.android.pesdk.assets:frame-basic' | ||
include 'ly.img.android.pesdk.assets:filter-basic' | ||
include 'ly.img.android.pesdk.assets:overlay-basic' | ||
include 'ly.img.android.pesdk.assets:sticker-shapes' | ||
include 'ly.img.android.pesdk.assets:sticker-emoticons' | ||
} | ||
} | ||
|
||
android { | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
packagingOptions { | ||
pickFirst 'lib/mips/librsjni.so' | ||
pickFirst 'lib/mips/libRSSupport.so' | ||
} | ||
} | ||
|
||
dependencies { | ||
compile 'ly.img.android:photo-editor-sdk:5.1.5' | ||
} | ||
|
||
|