Skip to content

Commit

Permalink
Update to version 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Bachmann authored and Niklas Bachmann committed Jul 27, 2018
1 parent 481b6cd commit 70713d6
Show file tree
Hide file tree
Showing 378 changed files with 4,480 additions and 12,880 deletions.
39 changes: 32 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
# PhotoEditor SDK - Changelog

## v5.1.6
## v6.0.0

### Fixed
* Camera GPS-EXIF latitude and longitude is converted wrong into DMS format.
__PLEASE LOOK AT THE NEW DOCUMENTATION MANY THINGS HAS CHANGED__

### Added
* Licenced new feature "TextDesign", get a trail licence to test it.
* Background exporting without UI.
* Gradle integration plugin.
* You can create and start the Editor with different Themes.
* Two new Focus Modes.
* Gamma adjustment.

### Changed
* Java version to 1.8.
* Android SDK to 27.
* Use of Gradle 3.1.3 build plugin for faster builds.
* Split features into separate modules and asset packs, this makes it easier to control the sdk size.
* Refactored Layouts and styles.
* Rework of the focus tool with better single touch control.
* UI is now optional and can completely replaced by your own UI.
* The awkward tool class concept is removed, all functionality is now in the backend.
* You can now add your own operations (you need to understand OpenGl and Renderscript).
* Settings and state classes can be extended with your own code.

### Fixed
* Color mismatch at export.
* Some blurry in the focus area.
* Focus preview broken on some low end devices.
* Cross platform issues with the serialisation.
* `RecyclerView` sometimes scrolls in the wrong position.

## v5.1.5

Expand Down Expand Up @@ -43,7 +69,7 @@
* Serialized stickers are sometimes broken or missing after loading.
* Add `onAttachedToList()` and `onDetachedFromList()`to the `DataSourceViewHolder`
* Add URI Support `EditorLoadSettings.setImageSource()`

### Breaking changes
* `EditorLoadSettings.setImageSourcePath()` is deprecated use `EditorLoadSettings.setImageSource()` instead.
* `Intent.getStringExtra(ImgLyIntent.SOURCE_IMAGE_PATH)` is deprecated use `Uri source = Intent.getParcelableExtra(ImgLyIntent.SOURCE_IMAGE_URI);` instead.
Expand Down Expand Up @@ -80,7 +106,7 @@
## v5.0.17

### Fixed
* Internal class TransformedMotionEvent creates wrong./G states in some cases.
* Internal class TransformedMotionEvent creates wrong states in some cases.
* Sticker matrix updated wrong which causes flickering.
* Exporting many stickers crashes in some cases.
* Image does not export if only the crop aspect has changed.
Expand Down Expand Up @@ -392,5 +418,4 @@
* Toggled list images if you use vector and rastered drawables together.

### Changed
* Show a warning and fix wrong scaled frames, if you put the frame assets in the wrong drawable directory.

* Show a warning and fix wrong scaled frames, if you put the frame assets in the wrong drawable directory.
599 changes: 299 additions & 300 deletions README.md

Large diffs are not rendered by default.

112 changes: 74 additions & 38 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,58 +1,94 @@
buildscript {
repositories {
jcenter()
maven {
url "https://artifactory.9elements.com/artifactory/imgly"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.mutualmobile.gradle.plugins:dexinfo:0.1.2'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.mutualmobile.gradle.plugins.dexinfo'
apply plugin: 'com.neenbedankt.android-apt'

repositories {
jcenter()
apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'ly.img.android.pesdk'

pesdkConfig {

licencePath "LICENSE" // 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 "$pesdk_version"

// 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:text-design'
include 'ly.img.android.pesdk.ui.mobile_ui:adjustment'

// 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:frame-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 {
compileSdkVersion 25
buildToolsVersion '25.0.2'
compileSdkVersion 27
buildToolsVersion '27.0.3'

defaultConfig {
applicationId "com.photoeditorsdk.android.app"
minSdkVersion 15
targetSdkVersion 25
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "5.1.5"
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resValue 'string', 'pesdk_version', "v$pesdk_version"
}

buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
minifyEnabled true
shrinkResources true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile 'ly.img.android:photo-editor-sdk:5.1.5'
apt 'ly.img.android:build-processor:5.1.5'

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
16 changes: 9 additions & 7 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/svennahler/developer/ly.img.android.sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-keep class android.support.v8.renderscript.** { *; }
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.photoeditorsdk.android.app

import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getTargetContext()
assertEquals("com.photoeditorsdk.android.app", appContext.packageName)
}
}
16 changes: 8 additions & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.photoeditorsdk.android.app" >
package="com.photoeditorsdk.android.app">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>

<protected-broadcast android:name="android.intent.action.MEDIA_MOUNTED" />

<application
android:name="com.photoeditorsdk.android.app.Application"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.photoeditorsdk.android.app.MainActivity"
android:label="@string/app_name" >
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>

</application>

</manifest>
</manifest>
2 changes: 1 addition & 1 deletion app/src/main/assets/LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"owner":"Imgly Inc.","version":"2.1","enterprise_license":true,"available_actions":["magic","filter","transform","sticker","text","adjustments","brush","focus","frames","camera"],"features":["adjustment","filter","focus","overlay","transform","text","sticker","frame","brush","camera"],"platform":"Android","app_identifiers":["com.photoeditorsdk.android.app"],"api_token":"-lIPN9NGKvlJBI90zPVrFg","domains":["https://api.photoeditorsdk.com"],"issued_at":1502190783,"expires_at":null,"signature":"kkZDb/uHVuSnv/7KuhCnbQvXV5twR5JoK1wy4YeMzGiKmFdY0IhBpJMP4Ag3mbK5/Vbl7FR1358gTt3w34athuVtO/4zerfGSvTKru0Ebv8WzKTpPwe+2DkbFB0P2euhuoUtyGpPAN9FMevfCppSzSP9QPKj9kOkhCCVzvEo+05ma0gjaicMMfxzHDrI3/+0oV8yfasuI8BhX9VtsLrZ8lAOMHlB5ZZ4/A5TVj3knqeWY6/uNUbnL5j9rGIDADvrnTjc/BwXXvgS10nmMVb0DaY4UoXTzwRbiUS8tFl18zQmR1PMBphfdwsGE1w1lINbYybuW++Nc6OK+6q1ijsFF+c9SnlJX35DbH2ax3KLQFkeuAc32eDb4gz1mibPH3g8lDPBc6v/L85AO7osm/3TxWgHCE/nLEUh4igdU9KxGDrScTNo7osyGYM65dLoKz+cr45mPIWDeieL2r13g0h4KmUbFGIokEXEx7dnqU3lloKhLMhUh90dcVHHIXv5SOuILHk5t/BEbOEW7mMdlVNhT+zMeoET6JJA6tNX/0+nimP4jDYA+SXugDICfkOQA896pwJ0rDuGkBbxSO2tlvowuGmGaY6caSGZGQDHbIuKD16RlmG0O/7RUMyccOUYxSy1P+G/b7/I8lip/3qJWPyT92NYX7wIt7vBkxDB3f148JY="}
{"owner":"Imgly","version":"2.1","enterprise_license":false,"available_actions":["magic","filter","transform","sticker","text","adjustments","brush","focus","frames","camera"],"features":["adjustment","filter","focus","overlay","transform","text","sticker","frame","brush","camera","textdesign","library","export"],"platform":"Android","app_identifiers":["com.photoeditorsdk.android.app"],"api_token":"-lIPN9NGKvlJBI90zPVrFg","domains":["https://api.photoeditorsdk.com"],"issued_at":1528984457,"expires_at":null,"signature":"h3Q0G/1HZg+t9WXXYQ+b6YSbGHc3UOq1ktOci5tNf4xTV+A7igkTPCYbxSIELZUyAr+9idZNt8Z1thIVQ+3Kzaq7kCzaDgl+vHAglrxHTZuscg8gPjSGrfXWUeUNA0PZUXY72q5DYVc8BRaTrCdnIfZPScnvi1QmV/+M/ao2VGq98/Mu8jb4jHXpj3f/zTlsaBwUgLFCerR2nEYm8m0cpjxuGu1DSIKxCC8JgTxhPLC+w8LS0+gSlfps69lVUap7VyAj9DWCARQDfeHSAnokYzvTu0GL7xglCWuZbutaVezA//oWaa0qIDY66tOXBKosULRp2VqShATmfbvnIueAkEhWZSyMX+G6MRI1VYHtI4Q5YhMQLSWFvsIP6oVLJs+iiMpUXtcglGp85TGY9x2fQcJuWAbvFm7vYnTJqTHyiU81uZF+goC/N8zLrn8gORreOmdvDqQ7Sff65k8I9+D6cv7gtZGw4mxGohbMGqPuTFCXlbsCCA/58KTYJoqme/wPxqB0yhBE9VBU3W/y3TFjsv5ZmhZH1YheiN/fTOlnwSij8ZeaFCLtkNcfSmS7EWhPDWfZxptiRS7/BJqVRYxRwRc4W3KWMc30EiWCm0F+WDW64z0ayLH0g8KA56eaDR/8P1P0TNPJh8uS9t56HmvBmEU5pDrVm+BQRP3oPf3OFss="}
14 changes: 0 additions & 14 deletions app/src/main/java/com/photoeditorsdk/android/app/Application.java

This file was deleted.

Loading

0 comments on commit 70713d6

Please sign in to comment.