Skip to content

Editing Turkish Language #712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 154 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
d0015ae
image picker bugfix for xiaomi and huawei phones
nicolabeghin Aug 31, 2016
f83ebc6
Merge pull request #156 from nicolabeghin/master
ArthurHub Sep 1, 2016
59487fc
after PR, use last intent as target instead of first.
ArthurHub Sep 1, 2016
58f11a4
streamline crop rectangle change using inverse matrix to fix crop ima…
ArthurHub Sep 1, 2016
4c184ba
update version to 2.3.1
ArthurHub Sep 1, 2016
880573a
handle auto-zoom required on size change of the crop image view
ArthurHub Sep 1, 2016
a8a4bd3
update readme
ArthurHub Sep 1, 2016
f9ceac0
revert change made for testing
ArthurHub Sep 1, 2016
4294250
Start a picker to choose image if no image uri is provided to Activit…
Oct 28, 2016
e1767de
Start a picker to choose image if no image uri is provided to Activit…
Oct 28, 2016
c3ec812
Added a method for creating an intent just to use the camera with the…
lennonspirlandelli-luizalabs Nov 2, 2016
9e53d85
Merge pull request #188 from adwiv/master
ArthurHub Nov 18, 2016
0d30f65
Merge pull request #190 from lennonpetrick/master
ArthurHub Nov 18, 2016
363f016
update com.android.support:appcompat to v7:24.2.1
ArthurHub Nov 18, 2016
736430c
add scaling fallback on OOM for cropping image object
ArthurHub Nov 18, 2016
56da059
Allows for degrees to be negative
timothylcooke Nov 29, 2016
2f3b9d4
Merge pull request #207 from timothylcooke/master
ArthurHub Nov 29, 2016
06f9354
Added crop overlay released listener
ryee1 Jan 20, 2017
a1b55b1
Merge pull request #226 from ryee1/master
ArthurHub Apr 10, 2017
5ba4bbb
update gradle/tools/sdk to latest
ArthurHub Apr 10, 2017
19b519e
minor name refactor after PR merge
ArthurHub Apr 10, 2017
f93fce2
add chinese translation strings from @bobingxin PR
ArthurHub Apr 10, 2017
9ed46cb
Allow flipping images horizontally and vertically
tibbi Apr 10, 2017
3d31b8f
Merge pull request #252 from tibbi/master
ArthurHub Apr 14, 2017
70bdd52
remove deprecated code
ArthurHub Apr 10, 2017
80e7970
update version and readme
ArthurHub Apr 10, 2017
9fc839c
Added originalUri and originalBitmap to CropResult object
ArthurHub Apr 10, 2017
9fd17d1
update readme
ArthurHub Apr 10, 2017
c18eb25
fix NRE in mOnCropOverlayReleasedListener invoke
ArthurHub Apr 14, 2017
2379516
update readme with image flipping support
ArthurHub Apr 14, 2017
80f50db
handle rotation by 90 degrees to change horizontal/vertical flipping,…
ArthurHub Apr 14, 2017
289b241
handle flip during cropping of image loaded from URI
ArthurHub Apr 14, 2017
a18edfb
refactor use of flip and rotation by using set rotation first and the…
ArthurHub Apr 14, 2017
e098a07
refactor mFlipHorizontally/mFlipVertically to CropImageView instead o…
ArthurHub Apr 14, 2017
95a65e4
support setting image flip on crop image activity builder
ArthurHub Apr 14, 2017
cd8a23d
support image flip menu buttons on crop image activity, with allow sw…
ArthurHub Apr 14, 2017
cdf2d4a
fix ignoring image rotation data in `setImageBitmap(Bitmap, ExifInter…
ArthurHub Apr 14, 2017
4e220cb
fix `resetCropRect()` resetting image rotation to 0 instead of the or…
ArthurHub Apr 14, 2017
af6b0c3
update readme
ArthurHub Apr 14, 2017
ebd37f4
Add files via upload
ArthurHub Apr 14, 2017
1f3de0e
fix corners of crop overlay offset for oval shape resulting in confus…
ArthurHub Apr 21, 2017
6c10064
Add `start` method that accepts `android.app.Fragment`, annotated wit…
ArthurHub Apr 21, 2017
e4d3c4b
Fix support for negative rotation values for CropImageActivity
ArthurHub Apr 22, 2017
2d01115
add test project to test dependency on the library from jcenter is w…
ArthurHub Apr 22, 2017
8b6e307
Fix instance state saved before any image loaded resulted in corrupte…
ArthurHub Apr 22, 2017
eef913e
update version to 2.4.1
ArthurHub Apr 22, 2017
9aa1661
hot-fix (crop rectangle state restore broken in 2.4.1)
ArthurHub Apr 22, 2017
5f1bae0
Adding option to return or dont camera intents on getPickImageChooser…
hrossi Apr 26, 2017
5c14024
Merge pull request #268 from hugo-rossi/master
ArthurHub Apr 28, 2017
8661c99
creating string files for Portuguese Language
hrossi Apr 28, 2017
baa9325
Merge pull request #270 from hugo-rossi/master
ArthurHub Apr 28, 2017
61fd441
update readme
ArthurHub Apr 28, 2017
515f986
on `onSaveInstanceState` save bitmap to temp file on disk to be resto…
ArthurHub Apr 28, 2017
d566d63
fix restore state not restoring rotation
ArthurHub Apr 28, 2017
65384a9
Fix initial crop window invalid position because reading previous ima…
ArthurHub Apr 28, 2017
005186b
Add config to enable saving bitmap to instance state
ArthurHub Apr 28, 2017
b128d34
update version and readme
ArthurHub Apr 28, 2017
525f728
Update README.md
ArthurHub Apr 28, 2017
50d2c35
fix travis fails
danikula May 1, 2017
aa0af8b
Merge pull request #272 from danikula/travis
ArthurHub May 5, 2017
d7a70bb
Fix reading image exif data by using `com.android.support:exifinterfa…
ArthurHub May 5, 2017
e8e6a3b
Update README.md
ArthurHub May 6, 2017
768a04f
update readme and version
ArthurHub May 6, 2017
f221d6e
Assigned @null default value to `crop_image_menu_crop` drawable
adrien-aubel May 27, 2017
0f8f950
Merge pull request #291 from adrien-aubel/patch-1
ArthurHub May 30, 2017
b71415a
update readme and version
ArthurHub May 30, 2017
6257fb5
update `CropImage.activity()` API to be clear on implicit image picke…
ArthurHub May 30, 2017
cb67794
update readme and version
ArthurHub May 30, 2017
76bd1c4
Update README.md
ArthurHub May 30, 2017
3847d67
Check `mOptions.outputUri` is null in addition to checking if it's EMPTY
ArthurHub May 30, 2017
6e82440
Add new helper method to CropImage.java to allow a
cdavietei Jun 22, 2017
109d9b9
Making the library JitPack-friendly.
gazialankus Jun 30, 2017
b3b4c54
Added original image dimensions to CropResult.
gazialankus Jun 30, 2017
3897b24
Merge pull request #327 from gazialankus/orig-dimension-pr
ArthurHub Jul 6, 2017
3bc4969
Merge pull request #315 from cdavietei/frag-chooser-intent
ArthurHub Jul 6, 2017
7c150ab
Merge pull request #325 from gazialankus/jitpack-friendly-pr
ArthurHub Jul 6, 2017
2ead8ee
Fix class not found when unmarshalling
Vantablack Jul 6, 2017
c1f37bc
Merge pull request #332 from Vantablack/fix-parcel
ArthurHub Jul 6, 2017
da7158b
Use stub drawable instead of @null for defaul, empty menu crop icon.
ArthurHub Jul 7, 2017
96a2355
update readme and version
ArthurHub Jul 7, 2017
f78d486
Use CharSequence instead of string for activity title (#297)
ArthurHub Jul 7, 2017
21cf46b
Fix reading CropImageOptions in CropImageView after Samsung bundle fix
ArthurHub Jul 7, 2017
e972cd1
fix NPE in getWhileImageRect(). resolve #339
dmedov Jul 26, 2017
d47ff07
Merge pull request #347 from dmedov/fix/issue_339_NPE_getWholeRect
ArthurHub Jul 28, 2017
f474a1c
Fix #361
Aug 24, 2017
f2cd702
russian translations
edwardstock Aug 25, 2017
94fb67d
Merge pull request #366 from edwardstock/master
ArthurHub Sep 1, 2017
956bca7
Merge pull request #365 from rakeshghasadiya/master
ArthurHub Sep 1, 2017
cd33b8f
remove support for crop_image_menu_crop drawable resource and replace…
ArthurHub Sep 1, 2017
1ed4d2c
Use string resource for "no permissions" toast
ArthurHub Sep 1, 2017
4ac1339
refactor crop menu crop button options
ArthurHub Sep 1, 2017
85b624c
update to latest SDK and gradle
ArthurHub Sep 1, 2017
a46d434
bump version to 2.5.0 and update readme
ArthurHub Sep 1, 2017
d5c5cbc
fix ver doc and minor refactor
ArthurHub Sep 1, 2017
dfaf980
Update README.md
ArthurHub Sep 2, 2017
8d5c25d
Japanese translations
YutaKohashi Sep 15, 2017
3ec8576
Merge pull request #390 from YutaKohashi/master
ArthurHub Sep 20, 2017
c495ae4
add cropmove and windowchange listener, add getCropWindowRect() in Cr…
hendrysetiadi89 Oct 3, 2017
3672fcc
fix typo
hendrysetiadi89 Oct 3, 2017
b8eaedc
Merge pull request #407 from hendrysetiadi89/master
ArthurHub Oct 3, 2017
92e780b
apply google-java-formatter
ArthurHub Oct 6, 2017
ff42443
try to solve manifest merger issue #405
ArthurHub Oct 6, 2017
2726e5e
use thread pool executors for async image loading and cropping operat…
ArthurHub Oct 6, 2017
0e923fc
fix image rotation breaking min/max crop result restrictions #401
ArthurHub Oct 7, 2017
5fb46a6
Propagate all extra data set on start crop activity intent back in cr…
ArthurHub Oct 7, 2017
e44e7a6
fix appcompat version in test
ArthurHub Oct 27, 2017
5c7d27b
Polish Translation
rozPierog Oct 29, 2017
304fbbe
Added fr-CA translation
Francis-Ouellet Nov 1, 2017
9aa45e8
Merge pull request #432 from Francis-Ouellet/master
ArthurHub Nov 3, 2017
63443a9
Merge pull request #428 from rozPierog/master
ArthurHub Nov 3, 2017
7cd943c
Add ko translation
sim0629 Nov 10, 2017
b5a33f3
changing french canadian language to generic french
Nov 10, 2017
9df2e64
german translation
sgrimm112 Nov 22, 2017
765bc44
Merge pull request #447 from sgrimm112/master
ArthurHub Dec 8, 2017
ce3348b
Merge pull request #437 from laminr/master
ArthurHub Dec 8, 2017
b398cc3
Merge pull request #436 from sim0629/feature/korean-translation
ArthurHub Dec 8, 2017
161a132
- Update to sdk v27
ArthurHub Dec 9, 2017
a68af94
Add strings for hebrew
shaymargolis Dec 16, 2017
3863da4
Translation to Spanish (es-rGT)
JairoDev01 Jan 17, 2018
2debbd6
Add additional languages and missing Chinese translations
gwharvey Feb 5, 2018
f0337f0
Need proguard conf
ben-j69 Feb 6, 2018
fb94238
Fix crash https://github.com/ArthurHub/Android-Image-Cropper/issues/5…
unverbraucht Mar 15, 2018
b8a492e
Update Chinese translations
dlackty Mar 19, 2018
391d3ca
Merge pull request #506 from dlackty/update-zh-translations
ArthurHub Apr 6, 2018
f54f778
Merge pull request #504 from unverbraucht/master
ArthurHub Apr 6, 2018
839806c
Merge pull request #483 from ben-j69/patch-1
ArthurHub Apr 6, 2018
ab04de6
Merge pull request #473 from JairoGeek/master
ArthurHub Apr 6, 2018
0c7ade1
Merge pull request #461 from shaymargolis/master
ArthurHub Apr 6, 2018
848f612
- Update to gradle wrapper to 4.4
ArthurHub Apr 6, 2018
5ce4985
Merge branch 'add_languages' of git://github.com/gwharvey/Android-Ima…
ArthurHub Apr 6, 2018
092a395
update travis to 27.0.3
ArthurHub Apr 6, 2018
1bf68d4
doc/test update
ArthurHub Apr 6, 2018
cba310c
+ add exception when file is not a picture (as example - video file)
Jun 1, 2018
54156af
adds swedish translation
Jul 16, 2018
421241d
add translations for catillian spanish, farsi, hindi, indonesian (id/…
david-serrano Aug 21, 2018
d0839a8
Migrated to AndroidX 1.0.0
mradzinski Oct 4, 2018
da043e8
use canvas.clipOutPath if Android O or greater
juliooa Oct 14, 2018
ccd9152
Merge pull request #618 from juliooa/fix/clipPath-Android-Pie
ArthurHub Oct 27, 2018
b2d86eb
Merge pull request #615 from mradzinski/mradzinski/androidx
ArthurHub Oct 27, 2018
d3d92fa
Merge pull request #595 from david-serrano/master
ArthurHub Oct 27, 2018
f92cf86
Merge pull request #550 from uncledoc/master
ArthurHub Oct 27, 2018
c454492
Merge pull request #576 from jkwiecien/swedish-locale
ArthurHub Oct 27, 2018
2e7e1bf
fix overlay
ArthurHub Oct 27, 2018
dc09699
update build tools to 3.2.1
ArthurHub Oct 27, 2018
d27f3c5
bump version to 2.8.0
ArthurHub Oct 27, 2018
b6fcc58
update readme
ArthurHub Oct 27, 2018
77b8f03
update travis
ArthurHub Oct 27, 2018
271b222
Update .travis.yml
ArthurHub Oct 27, 2018
e5a4c6e
Update .travis.yml
ArthurHub Oct 27, 2018
78f5c40
fix test module dependency to use the cropper android library module
donfuxx Jan 22, 2019
bbb5877
Update Readme to androidX
DHosseiny Feb 2, 2019
92f22df
Merge pull request #651 from DHosseiny/patch-1
ArthurHub Feb 8, 2019
2a4a425
Merge pull request #644 from donfuxx/test_gradle_fix
ArthurHub Feb 8, 2019
5f35aee
Update README.md
ArthurHub Sep 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
language: android
jdk: oraclejdk8
sudo: false

android:
components:
- build-tools-24.0.1
- android-24
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository

script:
Expand Down
114 changes: 68 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
Android Image Cropper
=======
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android--Image--Cropper-green.svg?style=true)](https://android-arsenal.com/details/1/3487)
[ ![Download](https://api.bintray.com/packages/arthurhub/maven/Android-Image-Cropper/images/download.svg) ](https://bintray.com/arthurhub/maven/Android-Image-Cropper/_latestVersion)

# :triangular_flag_on_post: The Project is NOT currently maintained :triangular_flag_on_post:

## Please use **[CanHub's fork](https://github.com/CanHub/Android-Image-Cropper)!**

### Thank everybody for using the library. It was very fun to create and a privilage to help you build awesome apps.
### The same way I took an unmaintained initial implementation from [edmodo](https://github.com/edmodo/cropper), I'm happy to see [CanHub](https://github.com/CanHub/Android-Image-Cropper) taking it now.
### Good luck and happy coding :octocat:


----
----
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android--Image--Cropper-green.svg?style=true)](https://android-arsenal.com/details/1/3487)
[![Build Status](https://travis-ci.org/ArthurHub/Android-Image-Cropper.svg?branch=master)](https://travis-ci.org/ArthurHub/Android-Image-Cropper)

**Powerful** (Zoom, Rotation, Multi-Source), **customizable** (Shape, Limits, Style), **optimized** (Async, Sampling, Matrix) and **simple** image cropping library for Android.

Expand All @@ -13,43 +24,61 @@ Android Image Cropper

[See GitHub Wiki for more info.](https://github.com/ArthurHub/Android-Image-Cropper/wiki)

Include the library
1. Include the library

```
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
dependencies {
api 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
}
```

Add permissions to manifest

```
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
```
Add this line to your Proguard config file

```
-keep class androidx.appcompat.widget.** { *; }
```
### Using Activity

2. Add `CropImageActivity` into your AndroidManifest.xml
```xml
<activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="@style/Base.Theme.AppCompat"/> <!-- optional (needed if default theme has no action bar) -->
android:theme="@style/Base.Theme.AppCompat"/> <!-- optional (needed if default theme has no action bar) -->
```

3. Start `CropImageActivity` using builder pattern from your activity
```java
// start picker to get image for cropping and then use the image in cropping activity
CropImage.activity()
.setGuidelines(CropImageView.Guidelines.ON)
.start(this);

// start cropping activity for pre-acquired image saved on the device
CropImage.activity(imageUri)
.setGuidelines(CropImageView.Guidelines.ON)
.start(this);
.start(this);

// for fragment (DO NOT use `getActivity()`)
CropImage.activity(imageUri)
.start(getContext(), this);
CropImage.activity()
.start(getContext(), this);
```

4. Override `onActivityResult` method in your activity to get crop result
```java
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
CropImage.ActivityResult result = CropImage.getActivityResult(data);
if (resultCode == RESULT_OK) {
Uri resultUri = result.getUri();
} else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {
Exception error = result.getError();
}
if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
CropImage.ActivityResult result = CropImage.getActivityResult(data);
if (resultCode == RESULT_OK) {
Uri resultUri = result.getUri();
} else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {
Exception error = result.getError();
}
}
}
```

Expand All @@ -58,38 +87,39 @@ Include the library
```xml
<!-- Image Cropper fill the remaining available height -->
<com.theartofdev.edmodo.cropper.CropImageView
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/cropImageView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/cropImageView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
```

3. Set image to crop
```java
cropImageView.setImageBitmap(bitmap);
// or
cropImageView.setImageUriAsync(uri);
// or (prefer using uri for performance and better user experience)
cropImageView.setImageBitmap(bitmap);
```

4. Get cropped image
```java
Bitmap cropped = cropImageView.getCroppedImage();
// or (must subscribe to async event using cropImageView.setOnCropImageCompleteListener(listener))
// subscribe to async event using cropImageView.setOnCropImageCompleteListener(listener)
cropImageView.getCroppedImageAsync();
// or
Bitmap cropped = cropImageView.getCroppedImage();
```

## Features
- Built-in `CropImageActivity`.
- Set cropping image as Bitmap, Resource or Android URI (Gallery, Camera, Dropbox, etc.).
- Image rotation during cropping.
- Image rotation/flipping during cropping.
- Auto zoom-in/out to relevant cropping area.
- Auto rotate bitmap by image Exif data.
- Set result image min/max limits in pixels.
- Set initial crop window size/location.
- Request cropped image resize to specific size.
- Bitmap memory optimization, OOM handling (should never occur)!
- API Level 10.
- API Level 14.
- More..

## Customizations
Expand All @@ -107,25 +137,17 @@ For more information, see the [GitHub Wiki](https://github.com/ArthurHub/Android
- [Adding auto-zoom feature to Android-Image-Cropper](https://theartofdev.com/2016/04/25/adding-auto-zoom-feature-to-android-image-cropper/)

## Change log
*2.3.0*

- Change required width/height behavior to support resizing (inside/fit/exact) see wiki for details.
- Add sampling fallback to lower cropped image resolution on OOM error (if image loaded from URI).
- Setting aspect ratio will also set it to fixed, to help with confusion, add clear aspect ratio method.
- Add support for setting min/max crop result size in code on CropImageView.
- Fix cropping failing bug when skia fails region cropping.
- Add Fallback to Intent.ACTION_PICK if no intent found for Intent.ACTION_GET_CONTENT (thx geolyth)
- Multi touch support for cropping window (experimental, thx bbwharris)
- **BREAKING CHANGES**:
- If you previously used requested width/height the default behavior now is to resize inside the cropped image, to preserve the previous behavior you need to pass the SAMPLING option.
- `OnGetCroppedImageCompleteListener` and `OnSaveCroppedImageCompleteListener` is deprecated, use `OnCropImageCompleteListener` that combines the two and provides the result object as crop activity.
- Set aspect ratio also sets fixed aspect ratio to true, if this is not the desired behavior set the fix aspect ratio flag manually or call the method after calling set aspect ratio.

*2.2.5*

- Fix to webp file extension (thx Nathan)
- Fix wrong initial crop window when image contains exif data.
- Added corners to circular crop window, can be removed by setting `BorderCornerThickness` to 0.
*2.8.0*
- Fix crash on Android O (thx @juliooa)
- Update to support library to AndroidX (thx @mradzinski)
- Handle failure when selecting non image file (thx @uncledoc)
- More translations (thx @jkwiecien, @david-serrano)

*2.7.0*
- Update gradle wrapper to 4.4
- Update support library to 27.1.1 and set is statically! (thx @androideveloper)
- Fix NPE in activity creation by tools (thx @unverbraucht)
- More translations (thx @gwharvey, @dlackty, @JairoGeek, @shaymargolis)

See [full change log](https://github.com/ArthurHub/Android-Image-Cropper/wiki/Change-Log).

Expand Down
Binary file added art/zoom sample small 2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/zoom sample small 3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 17 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

allprojects {
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven {
url "https://maven.google.com"
}
}
}
}

ext {
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
androidXLibraryVersion = '1.0.0'

PUBLISH_GROUP_ID = 'com.theartofdev.edmodo'
PUBLISH_ARTIFACT_ID = 'android-image-cropper'
PUBLISH_VERSION = '2.8.0'
// gradlew clean build generateRelease
}
20 changes: 7 additions & 13 deletions cropper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@ apply plugin: 'com.android.library'
// http://www.flexlabs.org/2013/06/using-local-aar-android-library-packages-in-gradle-builds
apply plugin: 'maven-publish'

ext {
PUBLISH_GROUP_ID = 'com.theartofdev.edmodo'
PUBLISH_ARTIFACT_ID = 'android-image-cropper'
PUBLISH_VERSION = '2.3.0'
// gradlew clean build generateRelease
}

android {

compileSdkVersion 24
buildToolsVersion '24.0.1'
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
minSdkVersion 10
targetSdkVersion 24
minSdkVersion 14
targetSdkVersion rootProject.compileSdkVersion
versionCode 1
versionName PUBLISH_VERSION
}
Expand Down Expand Up @@ -46,9 +39,10 @@ publishing {
}
}

apply from: 'https://raw.githubusercontent.com/ArthurHub/release-android-library/master/android-release-aar.gradle'
apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'

dependencies {
compile 'com.android.support:appcompat-v7:24.1.1'
api "androidx.appcompat:appcompat:$androidXLibraryVersion"
implementation "androidx.exifinterface:exifinterface:$androidXLibraryVersion"
}

Loading