Skip to content

Commit

Permalink
Refactor/crop window move handler kotlin (#82)
Browse files Browse the repository at this point in the history
* remove class comments

* Refactor .java to .kt

* Fix null case on new kotlin class

* update Changelog

* update ktlint lib

* deprecate synthetics to parcelize
  • Loading branch information
Canato authored Mar 19, 2021
1 parent 4edee9c commit 17ef60a
Show file tree
Hide file tree
Showing 17 changed files with 904 additions and 846 deletions.
11 changes: 1 addition & 10 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- `Security` in case of vulnerabilities.

## [unreleased x.x.x] -
### Changed
- CropWindowMoveHandler to kotlin [#36](https://github.com/CanHub/Android-Image-Cropper/issues/36)

## [2.2.1] - 04/03/21
### Added
Expand Down
1 change: 1 addition & 0 deletions cropper/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'kotlin-parcelize'

group='com.github.Canato'

Expand Down
12 changes: 0 additions & 12 deletions cropper/src/main/java/com/canhub/cropper/BitmapUtils.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"

package com.canhub.cropper;

import android.content.ContentResolver;
Expand Down
12 changes: 0 additions & 12 deletions cropper/src/main/java/com/canhub/cropper/CropImage.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"

package com.canhub.cropper;

import android.Manifest;
Expand Down
12 changes: 0 additions & 12 deletions cropper/src/main/java/com/canhub/cropper/CropImageView.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"

package com.canhub.cropper;

import android.app.Activity;
Expand Down
12 changes: 0 additions & 12 deletions cropper/src/main/java/com/canhub/cropper/CropOverlayView.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"

package com.canhub.cropper;

import android.annotation.TargetApi;
Expand Down
12 changes: 0 additions & 12 deletions cropper/src/main/java/com/canhub/cropper/CropWindowHandler.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"

package com.canhub.cropper

import android.graphics.RectF
Expand Down
Loading

0 comments on commit 17ef60a

Please sign in to comment.