Skip to content

Commit

Permalink
* fix javadoc issues
Browse files Browse the repository at this point in the history
* add generateRelease support
  • Loading branch information
Arthur Teplitzki committed Feb 12, 2015
1 parent 3541ea5 commit 35f33a0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
11 changes: 10 additions & 1 deletion cropper/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
apply plugin: 'com.android.library'

ext {
PUBLISH_GROUP_ID = 'com.theartofdev.edmodo'
PUBLISH_ARTIFACT_ID = 'Android-Image-Cropper'
PUBLISH_VERSION = '1.0'
// gradlew clean build generateRelease
}

android {

compileSdkVersion 21
Expand All @@ -14,4 +21,6 @@ android {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
}

apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ public void setImageBitmap(Bitmap bitmap) {
}

/**
* Sets a Bitmap and initializes the image rotation according to the EXIT data.
* <p/>
* Sets a Bitmap and initializes the image rotation according to the EXIT data.<br>
* <br>
* The EXIF can be retrieved by doing the following:
* <code>ExifInterface exif = new ExifInterface(path);</code>
*
Expand Down Expand Up @@ -263,9 +263,9 @@ public void setImageResource(int resId) {
}

/**
* Sets a bitmap loaded from the given Android URI as the content of the CropImageView.<br/>
* Can be used with URI from gallery or camera source.<br/>
* Will rotate the image by exif data.<br/>
* Sets a bitmap loaded from the given Android URI as the content of the CropImageView.<br>
* Can be used with URI from gallery or camera source.<br>
* Will rotate the image by exif data.<br>
*
* @param uri the URI to load the image from
*/
Expand Down Expand Up @@ -380,7 +380,7 @@ public Bitmap getCroppedImage() {
}

/**
* Gets the cropped image based on the current crop window.<br/>
* Gets the cropped image based on the current crop window.<br>
* If image loaded from URI will use sample size to fir the requested width and height.
*
* @return a new Bitmap representing the cropped image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ public void adjustCoordinate(float aspectRatio) {
* Returns whether or not you can re-scale the image based on whether any edge would be out of bounds.
* Checks all the edges for a possibility of jumping out of bounds.
*
* @param Edge the Edge that is about to be expanded
* @param edge the Edge that is about to be expanded
* @param imageRect the rectangle of the picture
* @param aspectratio the desired aspectRatio of the picture.
* @param aspectRatio the desired aspectRatio of the picture.
* @return whether or not the new image would be out of bounds.
*/
public boolean isNewRectangleOutOfBounds(Edge edge, Rect imageRect, float aspectRatio) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public static Rect getBitmapRect(int bitmapWidth,
}

/**
* Rotate the given image by reading the Exif value of the image (uri).<br/>
* If no rotation is required the image will not be rotated.<br/>
* Rotate the given image by reading the Exif value of the image (uri).<br>
* If no rotation is required the image will not be rotated.<br>
* New bitmap is created and the old one is recycled.
*/
public static RotateBitmapResult rotateBitmapByExif(Context context, Bitmap bitmap, Uri uri) {
Expand All @@ -102,8 +102,8 @@ public static RotateBitmapResult rotateBitmapByExif(Context context, Bitmap bitm
}

/**
* Rotate the given image by given Exif value.<br/>
* If no rotation is required the image will not be rotated.<br/>
* Rotate the given image by given Exif value.<br>
* If no rotation is required the image will not be rotated.<br>
* New bitmap is created and the old one is recycled.
*/
public static RotateBitmapResult rotateBitmapByExif(Bitmap bitmap, ExifInterface exif) {
Expand Down Expand Up @@ -200,7 +200,7 @@ public static int calculateInSampleSize(int width, int height, int reqWidth, int
}

/**
* Get {@link java.io.File} object for the given Android URI.<br/>
* Get {@link java.io.File} object for the given Android URI.<br>
* Use content resolver to get real path if direct path doesn't return valid file.
*/
public static File getFileFromUri(Context context, Uri uri) {
Expand Down Expand Up @@ -229,7 +229,7 @@ public static File getFileFromUri(Context context, Uri uri) {
}

/**
* Rotate the given bitmap by the given degrees.<br/>
* Rotate the given bitmap by the given degrees.<br>
* New bitmap is created and the old one is recycled.
*/
public static Bitmap rotateBitmap(Bitmap bitmap, int degrees) {
Expand Down
3 changes: 3 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ android {
versionCode 1
versionName '1.0'
}
lintOptions {
abortOnError false
}
}

dependencies {
Expand Down

0 comments on commit 35f33a0

Please sign in to comment.