Skip to content

Commit d001c3d

Browse files
committed
Merge pull request #65 from ParsePlatform/wangmengyan.reorgainze_package
Reorgainze ParseUI
2 parents ec6256f + 73f3d26 commit d001c3d

File tree

59 files changed

+197
-167
lines changed

Some content is hidden

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

59 files changed

+197
-167
lines changed

ParseLoginSampleBasic/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'android'
33
dependencies {
44
// rootProject.ext.* variables are defined in project gradle file, you can also use path here.
55
compile rootProject.ext.facebookSDK
6-
compile project(':ParseLoginUI')
6+
compile project(':ParseUI-Login')
77
compile rootProject.ext.androidSupport
88
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)

ParseLoginSampleCodeCustomization/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'android'
33
dependencies {
44
// rootProject.ext.* variables are defined in project gradle file, you can also use path here.
55
compile rootProject.ext.facebookSDK
6-
compile project(':ParseLoginUI')
6+
compile project(':ParseUI-Login')
77
compile rootProject.ext.androidSupport
88
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)

ParseLoginSampleLayoutOverride/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'android'
33
dependencies {
44
// rootProject.ext.* variables are defined in project gradle file, you can also use path here.
55
compile rootProject.ext.facebookSDK
6-
compile project(':ParseLoginUI')
6+
compile project(':ParseUI-Login')
77
compile rootProject.ext.androidSupport
88
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)

ParseLoginSampleWithDispatchActivity/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'android'
33
dependencies {
44
// rootProject.ext.* variables are defined in project gradle file, you can also use path here.
55
compile rootProject.ext.facebookSDK
6-
compile project(':ParseLoginUI')
6+
compile project(':ParseUI-Login')
77
compile rootProject.ext.androidSupport
88
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)

ParseLoginUI/build.gradle

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

ParseLoginUI/src/androidTest/AndroidManifest.xml

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

ParseLoginUI/src/main/AndroidManifest.xml

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

ParseUI-Login/build.gradle

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2014, Parse, LLC. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
* copy, modify, and distribute this software in source code or binary form for use
6+
* in connection with the web services and APIs provided by Parse.
7+
*
8+
* As with any software that integrates with the Parse platform, your use of
9+
* this software is subject to the Parse Terms of Service
10+
* [https://www.parse.com/about/terms]. This copyright notice shall be
11+
* included in all copies or substantial portions of the software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
*
20+
*/
21+
22+
apply plugin: 'android-library'
23+
24+
dependencies {
25+
compile 'com.android.support:support-v4:22.0.0'
26+
compile 'com.parse:parse-android:1.10.1'
27+
28+
provided 'com.facebook.android:facebook-android-sdk:4.0.1'
29+
provided files("$rootProject.projectDir/ParseUI-Login/libs/ParseFacebookUtilsV4-1.10.1.jar")
30+
provided files("$rootProject.projectDir/ParseUI-Login/libs/ParseTwitterUtils-1.10.1.jar")
31+
}
32+
33+
android {
34+
compileSdkVersion 21
35+
buildToolsVersion "21.1.1"
36+
37+
defaultConfig {
38+
minSdkVersion 9
39+
targetSdkVersion 21
40+
}
41+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!--
2+
~ Copyright (c) 2014, Parse, LLC. All rights reserved.
3+
~
4+
~ You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
~ copy, modify, and distribute this software in source code or binary form for use
6+
~ in connection with the web services and APIs provided by Parse.
7+
~
8+
~ As with any software that integrates with the Parse platform, your use of
9+
~ this software is subject to the Parse Terms of Service
10+
~ [https://www.parse.com/about/terms]. This copyright notice shall be
11+
~ included in all copies or substantial portions of the software.
12+
~
13+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
~ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
~ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
~ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
~ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
~
20+
-->
21+
22+
<manifest package="com.parse.ui">
23+
<application />
24+
</manifest>

ParseLoginUI/src/main/java/com/parse/ui/ParseLoginFragment.java renamed to ParseUI-Login/src/main/java/com/parse/ui/ParseLoginFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import com.facebook.AccessToken;
3737
import com.facebook.GraphRequest;
3838
import com.facebook.GraphResponse;
39-
4039
import com.parse.LogInCallback;
4140
import com.parse.ParseException;
4241
import com.parse.ParseFacebookUtils;
@@ -162,7 +161,7 @@ private void setUpParseLoginAndSignup() {
162161
parseLoginButton.setText(config.getParseLoginButtonText());
163162
}
164163

165-
parseLoginButton.setOnClickListener(new View.OnClickListener() {
164+
parseLoginButton.setOnClickListener(new OnClickListener() {
166165
@Override
167166
public void onClick(View v) {
168167
String username = usernameField.getText().toString();

ParseUI-Widget/build.gradle

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright (c) 2014, Parse, LLC. All rights reserved.
3+
*
4+
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
* copy, modify, and distribute this software in source code or binary form for use
6+
* in connection with the web services and APIs provided by Parse.
7+
*
8+
* As with any software that integrates with the Parse platform, your use of
9+
* this software is subject to the Parse Terms of Service
10+
* [https://www.parse.com/about/terms]. This copyright notice shall be
11+
* included in all copies or substantial portions of the software.
12+
*
13+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
*/
20+
21+
apply plugin: 'com.android.library'
22+
23+
dependencies {
24+
compile 'com.parse:parse-android:1.10.1'
25+
26+
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
27+
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
28+
androidTestCompile 'org.mockito:mockito-core:1.10.19'
29+
androidTestCompile 'org.skyscreamer:jsonassert:1.2.3'
30+
}
31+
32+
android {
33+
compileSdkVersion 21
34+
buildToolsVersion "21.1.1"
35+
36+
defaultConfig {
37+
minSdkVersion 9
38+
targetSdkVersion 21
39+
}
40+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ Copyright (c) 2014, Parse, LLC. All rights reserved.
4+
~
5+
~ You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
6+
~ copy, modify, and distribute this software in source code or binary form for use
7+
~ in connection with the web services and APIs provided by Parse.
8+
~
9+
~ As with any software that integrates with the Parse platform, your use of
10+
~ this software is subject to the Parse Terms of Service
11+
~ [https://www.parse.com/about/terms]. This copyright notice shall be
12+
~ included in all copies or substantial portions of the software.
13+
~
14+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16+
~ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17+
~ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18+
~ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19+
~ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20+
~
21+
-->
22+
23+
<manifest
24+
package="com.parse"
25+
xmlns:android="http://schemas.android.com/apk/res/android">
26+
<application>
27+
<activity
28+
android:name=".TestActivity"
29+
android:screenOrientation="portrait" />
30+
</application>
31+
</manifest>

ParseLoginUI/src/androidTest/java/com/parse/BaseActivityInstrumentationTestCase2.java renamed to ParseUI-Widget/src/androidTest/java/com/parse/BaseActivityInstrumentationTestCase2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import android.content.Context;
2727
import android.test.ActivityInstrumentationTestCase2;
2828

29-
public abstract class BaseActivityInstrumentationTestCase2<T extends android.app.Activity>
29+
public abstract class BaseActivityInstrumentationTestCase2<T extends Activity>
3030
extends ActivityInstrumentationTestCase2<T> {
3131

3232
protected Activity activity = null;

ParseLoginUI/src/androidTest/java/com/parse/ParseImageViewTest.java renamed to ParseUI-Widget/src/androidTest/java/com/parse/ParseImageViewTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import android.graphics.drawable.Drawable;
2929
import android.test.InstrumentationTestCase;
3030

31-
import com.parse.ui.test.R;
31+
import com.parse.widget.test.R;
3232

3333
import java.io.ByteArrayOutputStream;
3434
import java.util.Arrays;

ParseLoginUI/src/androidTest/java/com/parse/ParseQueryAdapterTest.java renamed to ParseUI-Widget/src/androidTest/java/com/parse/ParseQueryAdapterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import com.parse.ParseQuery.CachePolicy;
3030
import com.parse.ParseQueryAdapter.OnQueryLoadListener;
3131
import com.parse.ParseQueryAdapter.QueryFactory;
32-
import com.parse.ui.TestActivity;
33-
import com.parse.ui.test.R;
3432

3533
import org.mockito.invocation.InvocationOnMock;
3634
import org.mockito.stubbing.Answer;
@@ -43,6 +41,8 @@
4341
import bolts.Capture;
4442
import bolts.Task;
4543

44+
import com.parse.widget.test.R;
45+
4646
import static org.mockito.Matchers.any;
4747
import static org.mockito.Mockito.mock;
4848
import static org.mockito.Mockito.when;

ParseLoginUI/src/androidTest/java/com/parse/ui/TestActivity.java renamed to ParseUI-Widget/src/androidTest/java/com/parse/TestActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
*
2020
*/
2121

22-
package com.parse.ui;
22+
package com.parse;
2323

2424
import android.app.Activity;
25-
import android.os.Bundle;
2625

2726
/**
2827
* This is a blank Activity placeholder class for test, used to get the ParseQueryAdapterTest
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!--
2+
~ Copyright (c) 2014, Parse, LLC. All rights reserved.
3+
~
4+
~ You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
5+
~ copy, modify, and distribute this software in source code or binary form for use
6+
~ in connection with the web services and APIs provided by Parse.
7+
~
8+
~ As with any software that integrates with the Parse platform, your use of
9+
~ this software is subject to the Parse Terms of Service
10+
~ [https://www.parse.com/about/terms]. This copyright notice shall be
11+
~ included in all copies or substantial portions of the software.
12+
~
13+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
~ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
~ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
~ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
~ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
20+
-->
21+
22+
<manifest package="com.parse.widget">
23+
<application />
24+
</manifest>

0 commit comments

Comments
 (0)