Skip to content

Commit e632d00

Browse files
committed
Rename package
1 parent a4640c1 commit e632d00

54 files changed

Lines changed: 199 additions & 203 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/copyright/profiles_settings.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2016 Fuck Boilerplate
189+
Copyright 2016 Miguel Garcia
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Every feature RxPaparazzo exposes can be accessed from both, an `activity` or a
5959

6060
**Limitation:**: Your fragments need to extend from `android.support.v4.app.Fragment` instead of `android.app.Fragment`, otherwise they won't be notified.
6161

62-
The generic type of the `observable` returned by RxPaparazzo when subscribing to any of its features is always an instance of [Response](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/Response.java) class.
62+
The generic type of the `observable` returned by RxPaparazzo when subscribing to any of its features is always an instance of [Response](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/Response.java) class.
6363

6464
This instance holds a reference to the current Activity/Fragment, accessible calling `targetUI()` method. Because the original one may be recreated it would be unsafe calling it. Instead, you must call any method/variable of your Activity/Fragment from this instance encapsulated in the `response` instance.
6565

@@ -129,14 +129,14 @@ The `response` instance holds a reference to the paths where the images were per
129129
When asking RxPaparazzo for an image -whether it was retrieved using the built-in camera or via gallery, it's possible to apply some configurations to the action.
130130

131131
### Size options
132-
[Size](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/size/Size.java) values can be used to set the size of the image to retrieve. There are 4 options:
132+
[Size](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/size/Size.java) values can be used to set the size of the image to retrieve. There are 4 options:
133133

134-
* [SmallSize](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/size/SmallSize.java): 1/8 aprox. of the screen resolution
135-
* [ScreenSize](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/size/ScreenSize.java): The size image matches aprox. the screen resolution.
136-
* [OriginalSize](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/size/OriginalSize.java): The original size of the image.
137-
* [CustomMaxSize](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/size/CustomMaxSize.java): Yot can specify max size you want and image will be scaled proportionally.
134+
* [SmallSize](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/size/SmallSize.java): 1/8 aprox. of the screen resolution
135+
* [ScreenSize](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/size/ScreenSize.java): The size image matches aprox. the screen resolution.
136+
* [OriginalSize](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/size/OriginalSize.java): The original size of the image.
137+
* [CustomMaxSize](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/size/CustomMaxSize.java): Yot can specify max size you want and image will be scaled proportionally.
138138

139-
[ScreenSize](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/size/ScreenSize.java) value will be set as default.
139+
[ScreenSize](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/size/ScreenSize.java) value will be set as default.
140140

141141
```java
142142
RxPaparazzo.takeImages(activityOrFragment)
@@ -154,7 +154,7 @@ RxPaparazzo.takeImages(activityOrFragment)
154154

155155
By calling `crop()` method when building the observable instance, all they images retrieved will be able to be cropped, regardless if the images were retrieved using the built-in camera or gallery, even if multiple images were requested in a single call using `takeImages()` approach.
156156
Because uCrop Yalantis library exposes some configuration in order to customize the crop screen, RxPaparazzo exposes an overloaded method of `crop(UCrop.Options)` which allow to pass an instance of [UCrop.Options](https://github.com/Yalantis/uCrop/blob/master/ucrop/src/main/java/com/yalantis/ucrop/UCrop.java#L211).
157-
If you need to configure the aspect ratio, the max result size or using the source image aspect ratio, you must pass an instance of [Options](https://github.com/FuckBoilerplate/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/fuck_boilerplate/rx_paparazzo/entities/Options.java) class, which extends from `UCrop.Options` and adds the three missing properties.
157+
If you need to configure the aspect ratio, the max result size or using the source image aspect ratio, you must pass an instance of [Options](https://github.com/miguelbcr/RxPaparazzo/blob/master/rx_paparazzo/src/main/java/com/miguelbcr/ui/rx_paparazzo2/entities/Options.java) class, which extends from `UCrop.Options` and adds the three missing properties.
158158

159159
```java
160160
UCrop.Options options = new UCrop.Options();

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ android {
1717
buildToolsVersion "24.0.1"
1818

1919
defaultConfig {
20-
applicationId "com.fuck_boilerplate.rx_paparazzo.sample"
20+
applicationId "com.miguelbcr.ui.rx_paparazzo2.sample"
2121
minSdkVersion 16
2222
targetSdkVersion 24
2323
versionCode 1

app/src/androidTest/java/com/fuck_boilerplate/rx_paparazzo/sample/ApplicationTest.java renamed to app/src/androidTest/java/com/miguelbcr/ui/rx_paparazzo2/sample/ApplicationTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fuck_boilerplate.rx_paparazzo.sample;
1+
package com.miguelbcr.ui.rx_paparazzo2.sample;
22

33
import android.app.Activity;
44
import android.content.Context;
@@ -17,15 +17,15 @@
1717
import android.view.View;
1818
import android.view.WindowManager;
1919
import android.widget.ImageView;
20-
import com.fuck_boilerplate.rx_paparazzo.entities.Config;
21-
import com.fuck_boilerplate.rx_paparazzo.entities.TargetUi;
22-
import com.fuck_boilerplate.rx_paparazzo.entities.size.Size;
23-
import com.fuck_boilerplate.rx_paparazzo.interactors.DownloadImage;
24-
import com.fuck_boilerplate.rx_paparazzo.interactors.GetDimens;
25-
import com.fuck_boilerplate.rx_paparazzo.interactors.GetPath;
26-
import com.fuck_boilerplate.rx_paparazzo.interactors.ImageUtils;
27-
import com.fuck_boilerplate.rx_paparazzo.sample.activities.StartActivity;
28-
import com.fuck_boilerplate.rx_paparazzo.sample.activities.Testable;
20+
import com.miguelbcr.ui.rx_paparazzo2.entities.Config;
21+
import com.miguelbcr.ui.rx_paparazzo2.entities.TargetUi;
22+
import com.miguelbcr.ui.rx_paparazzo2.entities.size.Size;
23+
import com.miguelbcr.ui.rx_paparazzo2.interactors.DownloadImage;
24+
import com.miguelbcr.ui.rx_paparazzo2.interactors.GetDimens;
25+
import com.miguelbcr.ui.rx_paparazzo2.interactors.GetPath;
26+
import com.miguelbcr.ui.rx_paparazzo2.interactors.ImageUtils;
27+
import com.miguelbcr.ui.rx_paparazzo2.sample.activities.StartActivity;
28+
import com.miguelbcr.ui.rx_paparazzo2.sample.activities.Testable;
2929
import java.io.File;
3030
import java.util.List;
3131
import org.hamcrest.Description;
@@ -41,7 +41,7 @@
4141
import static android.support.test.espresso.action.ViewActions.click;
4242
import static android.support.test.espresso.assertion.ViewAssertions.matches;
4343
import static android.support.test.espresso.matcher.ViewMatchers.withId;
44-
import static com.fuck_boilerplate.rx_paparazzo.sample.recyclerview.RecyclerViewUtils.withRecyclerView;
44+
import static com.miguelbcr.ui.rx_paparazzo2.sample.recyclerview.RecyclerViewUtils.withRecyclerView;
4545
import static org.hamcrest.Matchers.greaterThan;
4646
import static org.hamcrest.Matchers.lessThan;
4747
import static org.hamcrest.core.CombinableMatcher.both;

app/src/androidTest/java/com/fuck_boilerplate/rx_paparazzo/sample/recyclerview/RecyclerViewMatcher.java renamed to app/src/androidTest/java/com/miguelbcr/ui/rx_paparazzo2/sample/recyclerview/RecyclerViewMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fuck_boilerplate.rx_paparazzo.sample.recyclerview;
1+
package com.miguelbcr.ui.rx_paparazzo2.sample.recyclerview;
22

33
import android.content.res.Resources;
44
import android.support.v7.widget.RecyclerView;

app/src/androidTest/java/com/fuck_boilerplate/rx_paparazzo/sample/recyclerview/RecyclerViewUtils.java renamed to app/src/androidTest/java/com/miguelbcr/ui/rx_paparazzo2/sample/recyclerview/RecyclerViewUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fuck_boilerplate.rx_paparazzo.sample.recyclerview;
1+
package com.miguelbcr.ui.rx_paparazzo2.sample.recyclerview;
22

33
public class RecyclerViewUtils {
44

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.fuck_boilerplate.rx_paparazzo.sample">
3+
package="com.miguelbcr.ui.rx_paparazzo2.sample">
44

55
<uses-permission android:name="android.permission.CAMERA"/>
66

77
<application
88
android:allowBackup="true"
99
android:icon="@mipmap/ic_launcher"
10-
android:name="com.fuck_boilerplate.rx_paparazzo.sample.SampleApplication"
10+
android:name="com.miguelbcr.ui.rx_paparazzo2.sample.SampleApplication"
1111
android:label="@string/app_name"
1212
android:supportsRtl="true"
1313
android:theme="@style/AppTheme.NoActionBar">
1414

15-
<activity android:name="com.fuck_boilerplate.rx_paparazzo.sample.activities.StartActivity"
15+
<activity android:name="com.miguelbcr.ui.rx_paparazzo2.sample.activities.StartActivity"
1616
android:configChanges="orientation|screenSize">
1717
<intent-filter>
1818
<action android:name="android.intent.action.MAIN" />
1919
<category android:name="android.intent.category.LAUNCHER" />
2020
</intent-filter>
2121
</activity>
2222

23-
<activity android:name="com.fuck_boilerplate.rx_paparazzo.sample.activities.SampleActivity"/>
23+
<activity android:name="com.miguelbcr.ui.rx_paparazzo2.sample.activities.SampleActivity"/>
2424

25-
<activity android:name="com.fuck_boilerplate.rx_paparazzo.sample.activities.HostActivitySampleFragment"/>
25+
<activity android:name="com.miguelbcr.ui.rx_paparazzo2.sample.activities.HostActivitySampleFragment"/>
2626

2727
</application>
2828

app/src/main/java/com/fuck_boilerplate/rx_paparazzo/sample/activities/Testable.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/src/main/java/com/fuck_boilerplate/rx_paparazzo/sample/AppCare.java renamed to app/src/main/java/com/miguelbcr/ui/rx_paparazzo2/sample/AppCare.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 FuckBoilerplate
2+
* Copyright 2016 Miguel Garcia
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.fuck_boilerplate.rx_paparazzo.sample;
17+
package com.miguelbcr.ui.rx_paparazzo2.sample;
1818

1919
import android.app.Activity;
2020
import android.app.Application;

0 commit comments

Comments
 (0)