diff --git a/README.md b/README.md new file mode 100644 index 0000000..01f7d1d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +> I guess people are just cropping out all the sadness + +This is an Android library project to provide a simple image cropping `Activity`. \ No newline at end of file diff --git a/android-crop.iml b/android-crop.iml index d9c631d..c87302f 100644 --- a/android-crop.iml +++ b/android-crop.iml @@ -1,6 +1,8 @@ - + + + diff --git a/example/.gitignore b/example/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/example/.gitignore @@ -0,0 +1 @@ +/build diff --git a/example/build.gradle b/example/build.gradle new file mode 100644 index 0000000..1356fd8 --- /dev/null +++ b/example/build.gradle @@ -0,0 +1,24 @@ +apply plugin: 'android' + +android { + compileSdkVersion 18 + buildToolsVersion "19.0.0" + + defaultConfig { + minSdkVersion 8 + targetSdkVersion 16 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + runProguard false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } +} + +dependencies { + compile 'com.android.support:appcompat-v7:+' + compile fileTree(dir: 'libs', include: ['*.jar']) +} diff --git a/example/example.iml b/example/example.iml new file mode 100644 index 0000000..9fbb990 --- /dev/null +++ b/example/example.iml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/proguard-rules.txt b/example/proguard-rules.txt new file mode 100644 index 0000000..f63567e --- /dev/null +++ b/example/proguard-rules.txt @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/James/android-sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# 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 *; +#} \ No newline at end of file diff --git a/example/src/main/AndroidManifest.xml b/example/src/main/AndroidManifest.xml new file mode 100644 index 0000000..2be16f5 --- /dev/null +++ b/example/src/main/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + diff --git a/example/src/main/java/com/soundcloud/android/crop/example/MainActivity.java b/example/src/main/java/com/soundcloud/android/crop/example/MainActivity.java new file mode 100644 index 0000000..659dbba --- /dev/null +++ b/example/src/main/java/com/soundcloud/android/crop/example/MainActivity.java @@ -0,0 +1,16 @@ +package com.soundcloud.android.crop.example; + +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuItem; + +public class MainActivity extends ActionBarActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } + +} diff --git a/example/src/main/res/drawable-hdpi/ic_launcher.png b/example/src/main/res/drawable-hdpi/ic_launcher.png new file mode 100755 index 0000000..906ed0e Binary files /dev/null and b/example/src/main/res/drawable-hdpi/ic_launcher.png differ diff --git a/example/src/main/res/drawable-mdpi/ic_launcher.png b/example/src/main/res/drawable-mdpi/ic_launcher.png new file mode 100755 index 0000000..397b658 Binary files /dev/null and b/example/src/main/res/drawable-mdpi/ic_launcher.png differ diff --git a/example/src/main/res/drawable-xhdpi/ic_launcher.png b/example/src/main/res/drawable-xhdpi/ic_launcher.png new file mode 100755 index 0000000..3927cc6 Binary files /dev/null and b/example/src/main/res/drawable-xhdpi/ic_launcher.png differ diff --git a/example/src/main/res/drawable-xxhdpi/ic_launcher.png b/example/src/main/res/drawable-xxhdpi/ic_launcher.png new file mode 100755 index 0000000..607b119 Binary files /dev/null and b/example/src/main/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/example/src/main/res/drawable-xxxhdpi/ic_launcher.png b/example/src/main/res/drawable-xxxhdpi/ic_launcher.png new file mode 100755 index 0000000..0b7510b Binary files /dev/null and b/example/src/main/res/drawable-xxxhdpi/ic_launcher.png differ diff --git a/example/src/main/res/layout/activity_main.xml b/example/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..591c7f7 --- /dev/null +++ b/example/src/main/res/layout/activity_main.xml @@ -0,0 +1,7 @@ + + + diff --git a/example/src/main/res/values/dimens.xml b/example/src/main/res/values/dimens.xml new file mode 100644 index 0000000..3e12459 --- /dev/null +++ b/example/src/main/res/values/dimens.xml @@ -0,0 +1,5 @@ + + + 16dp + + diff --git a/example/src/main/res/values/strings.xml b/example/src/main/res/values/strings.xml new file mode 100644 index 0000000..e7b792c --- /dev/null +++ b/example/src/main/res/values/strings.xml @@ -0,0 +1,6 @@ + + + + Crop Demo + + diff --git a/example/src/main/res/values/styles.xml b/example/src/main/res/values/styles.xml new file mode 100644 index 0000000..cdc7ff7 --- /dev/null +++ b/example/src/main/res/values/styles.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/settings.gradle b/settings.gradle index 8c2a2e0..7082cff 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':lib' +include ':lib', ':example'