Skip to content

Commit 76886c0

Browse files
committed
Merge pull request #57 from ParsePlatform/wangmengyan.update_Parse_to_use_maven_public
Update Parse to use public maven
2 parents 1916d06 + e84e398 commit 76886c0

File tree

8 files changed

+10
-23
lines changed

8 files changed

+10
-23
lines changed

ParseLoginSampleBasic/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies {
55
compile rootProject.ext.facebookSDK
66
compile project(':ParseLoginUI')
77
compile rootProject.ext.androidSupport
8-
compile files(rootProject.ext.parsePath)
8+
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)
1010
compile files(rootProject.ext.parseTwitterUtilsPath)
1111
}

ParseLoginSampleCodeCustomization/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies {
55
compile rootProject.ext.facebookSDK
66
compile project(':ParseLoginUI')
77
compile rootProject.ext.androidSupport
8-
compile files(rootProject.ext.parsePath)
8+
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)
1010
compile files(rootProject.ext.parseTwitterUtilsPath)
1111
}

ParseLoginSampleLayoutOverride/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies {
55
compile rootProject.ext.facebookSDK
66
compile project(':ParseLoginUI')
77
compile rootProject.ext.androidSupport
8-
compile files(rootProject.ext.parsePath)
8+
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)
1010
compile files(rootProject.ext.parseTwitterUtilsPath)
1111
}

ParseLoginSampleWithDispatchActivity/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies {
55
compile rootProject.ext.facebookSDK
66
compile project(':ParseLoginUI')
77
compile rootProject.ext.androidSupport
8-
compile files(rootProject.ext.parsePath)
8+
compile rootProject.ext.parse
99
compile files(rootProject.ext.parseFacebookUtilsPath)
1010
compile files(rootProject.ext.parseTwitterUtilsPath)
1111
}

ParseLoginUI/build.gradle

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
apply plugin: 'android-library'
22

33
dependencies {
4-
compile 'com.parse.bolts:bolts-android:1.2.0'
5-
compile 'com.android.support:support-v4:22.0.0'
4+
compile rootProject.ext.bolts
5+
compile rootProject.ext.androidSupport
6+
compile rootProject.ext.parse
67

7-
provided 'com.facebook.android:facebook-android-sdk:4.0.1'
8-
// This assumes that your app's project has a compile dependency on the Parse SDK JAR files.
9-
// Your project's build.gradle should say:
10-
//
11-
// compile files('YOUR_PROJECT_LIBS_PATH/Parse-1.9.4.jar')
12-
// compile files('YOUR_PROJECT_LIBS_PATH/ParseFacebookUtilsV4-1.9.4.jar')
13-
//
14-
// Since the dependency below is "provided" instead of "compile", your project's build.gradle
15-
// does not have to refer to the same Parse SDK instance that's in the ParseLoginUI/libs folder.
16-
provided files("$rootProject.projectDir/ParseLoginUI/libs/Parse-1.10.0.jar")
8+
provided rootProject.ext.facebookSDK
179
provided files("$rootProject.projectDir/ParseLoginUI/libs/ParseFacebookUtilsV4-1.10.0.jar")
1810
provided files("$rootProject.projectDir/ParseLoginUI/libs/ParseTwitterUtils-1.10.0.jar")
1911
}

ParseLoginUI/libs/Parse-1.10.0.jar

-746 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,14 @@ To run our sample apps, you need to import this repo as a standalone Gradle proj
3131
* File > Import Module in Android Studio
3232
* In the New Module pop-up, set the source directory to the `ParseUI-Android/ParseLoginUI` folder within the cloned repo.
3333

34-
If you are using gradle 1.1.0 or above, you may encounter "Warning:Project ParseLoginUI: provided dependencies can only be jars. com.facebook.android:facebook-android-sdk:aar:4.0.1 is an Android Library". It is an open issue of android gradle build tool. Currently the workround is using gradle 1.0.0.
3534
4. Add the following to the `dependencies` section of your app's build.gradle.
3635

3736
// Module dependency on ParseLoginUI library sources
3837
compile project(':ParseLoginUI')
3938

40-
// If your app's project does not have the Parse Android SDK already, copy it into your
41-
// project at YOUR_PROJECT_LIBS_PATH.
42-
compile files('YOUR_PROJECT_LIBS_PATH/Parse-1.9.4.jar')
43-
compile files('YOUR_PROJECT_LIBS_PATH/ParseFacebookUtilsV4-1.9.4.jar')
44-
4539
// Uncomment if using Facebook Login (optional Maven dependency)
4640
// compile 'com.facebook.android:facebook-android-sdk:4.0.1'
41+
// compile files('YOUR_PROJECT_LIBS_PATH/ParseFacebookUtilsV4-1.10.0.jar')
4742

4843
5. Add the following to your `AndroidManifest.xml` within the `<application></application>` section. You can see a complete example in our [sample app](https://github.com/ParsePlatform/ParseUI-Android/blob/master/ParseLoginSampleBasic/AndroidManifest.xml).
4944

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ext {
2424
facebookSDK = 'com.facebook.android:facebook-android-sdk:4.0.1'
2525
androidSupport = 'com.android.support:support-v4:22.0.0'
2626
bolts = 'com.parse.bolts:bolts-android:1.2.0'
27-
parsePath = "$rootProject.projectDir/ParseLoginUI/libs/Parse-1.10.0.jar"
27+
parse = 'com.parse:parse-android:1.10.0'
2828
parseFacebookUtilsPath = "$rootProject.projectDir/ParseLoginUI/libs/ParseFacebookUtilsV4-1.10.0.jar"
2929
parseTwitterUtilsPath = "$rootProject.projectDir/ParseLoginUI/libs/ParseTwitterUtils-1.10.0.jar"
3030
}

0 commit comments

Comments
 (0)