Skip to content

Commit 6a2da43

Browse files
committed
Merge branch 'master' into 1061-fix-concurrent-modification-exception
2 parents a6909e7 + fd20702 commit 6a2da43

File tree

285 files changed

+12415
-10975
lines changed

Some content is hidden

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

285 files changed

+12415
-10975
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*.{java, kt, kts, xml}]
4+
indent_style = space
5+
indent_size = 4
6+
charset = utf-8
7+
end_of_line = lf
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.{java, kt, kts}]
12+
max_line_length = 165
13+
disabled_rules = no-wildcard-imports

.github/workflows/ci.yml

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,64 @@ on:
99
branches:
1010
- '**'
1111
jobs:
12+
check-lint:
13+
name: Lint
14+
timeout-minutes: 5
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Fetch Sources
18+
uses: actions/checkout@v2
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
- name: Setup Gradle Dependencies Cache
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.gradle/caches
28+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
29+
- name: Setup Gradle Wrapper Cache
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.gradle/wrapper
33+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
34+
- name: Spotless check
35+
run: ./gradlew spotlessCheck --no-daemon
36+
check-gradlewrapper:
37+
name: Gradle Wrapper
38+
timeout-minutes: 5
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Fetch Sources
42+
uses: actions/checkout@v2
43+
- name: Gradle Wrapper Validation
44+
uses: gradle/wrapper-validation-action@v1
1245
check-build:
1346
name: Gradle Build
14-
timeout-minutes: 5
47+
timeout-minutes: 15
1548
runs-on: ubuntu-latest
1649
steps:
17-
- uses: actions/checkout@v2
50+
- name: Fetch Sources
51+
uses: actions/checkout@v2
1852
- name: Set up JDK 11
1953
uses: actions/setup-java@v2
2054
with:
2155
java-version: '11'
2256
distribution: 'adopt'
23-
- name: Validate Gradle wrapper
24-
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
25-
- run: pip install --user codecov
26-
- run: mkdir "$ANDROID_HOME/licenses" || true
27-
- run: echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" >> "$ANDROID_HOME/licenses/android-sdk-license"
28-
- run: ./gradlew clean jacocoTestReport
29-
- run: codecov
57+
- name: Setup Gradle Dependencies Cache
58+
uses: actions/cache@v2
59+
with:
60+
path: ~/.gradle/caches
61+
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
62+
- name: Setup Gradle Wrapper Cache
63+
uses: actions/cache@v2
64+
with:
65+
path: ~/.gradle/wrapper
66+
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
67+
- name: Run tests
68+
run: ./gradlew --no-daemon clean jacocoTestReport
69+
- name: Report test coverage
70+
run: |
71+
pip install --user codecov
72+
codecov

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [2.0.1](https://github.com/parse-community/Parse-SDK-Android/compare/2.0.0...2.0.1) (2021-10-14)
2+
3+
4+
### Bug Fixes
5+
6+
* add maven publications to configure the Jitpack releases ([#1128](https://github.com/parse-community/Parse-SDK-Android/issues/1128)) ([67c4fb6](https://github.com/parse-community/Parse-SDK-Android/commit/67c4fb6209e1a3b3db9663156b356b8888ef0d87))
7+
* Parse Android SDK 2.0.0 not building on jitpack ([#1129](https://github.com/parse-community/Parse-SDK-Android/issues/1129)) ([5d40917](https://github.com/parse-community/Parse-SDK-Android/commit/5d409174358ec4f2f04b9e0ea3000743c4a066ff))
8+
19
# [2.0.0](https://github.com/mtrezza/Parse-SDK-Android/compare/1.22.0...2.0.0) (2021-10-10)
210

311

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ We actively welcome your pull requests. When we get one, we'll run some Parse-sp
1414
4. Add unit tests for any new code you add.
1515
3. If you've changed APIs, update the documentation.
1616
4. Ensure the test suite passes.
17-
5. Make sure your code lints.
17+
5. Make sure your code lints by running `./gradlew spotlessApply`.
1818

1919
## Bugs
2020
Although we try to keep developing on Parse easy, you still may run into some issues. Technical questions should be asked on [Stack Overflow][stack-overflow], and for everything else we'll be using GitHub issues.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Add this in your root `build.gradle` file (**not** your module `build.gradle` fi
1717

1818
```gradle
1919
allprojects {
20-
repositories {
21-
...
22-
maven { url "https://jitpack.io" }
23-
}
20+
repositories {
21+
...
22+
maven { url "https://jitpack.io" }
23+
}
2424
}
2525
```
2626

bolts-tasks/build.gradle

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// This source code is licensed under the MIT license found in the/
44
// LICENSE file in the root directory of this source tree.
55

6-
apply plugin: 'java'
7-
apply plugin: 'maven'
6+
apply plugin: 'java-library'
7+
apply plugin: 'maven-publish'
88

99
dependencies {
1010
compileOnly 'com.google.android:android:4.1.1.4'
@@ -14,12 +14,12 @@ dependencies {
1414
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
1515

1616
task sourcesJar(type: Jar) {
17-
classifier = 'sources'
17+
archiveClassifier.set('sources')
1818
from sourceSets.main.allJava
1919
}
2020

2121
task javadocJar(type: Jar, dependsOn: javadoc) {
22-
classifier = 'javadoc'
22+
archiveClassifier.set('javadoc')
2323
from javadoc.destinationDir
2424
}
2525

@@ -48,4 +48,14 @@ jacocoTestReport {
4848
java {
4949
sourceCompatibility = JavaVersion.VERSION_1_8
5050
targetCompatibility = JavaVersion.VERSION_1_8
51-
}
51+
}
52+
53+
afterEvaluate {
54+
publishing {
55+
publications {
56+
boltsPublication(MavenPublication) {
57+
from components.java
58+
}
59+
}
60+
}
61+
}

bolts-tasks/src/main/java/com/parse/boltsinternal/AggregateException.java

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,37 @@ public class AggregateException extends Exception {
2626
private final List<Throwable> innerThrowables;
2727

2828
/**
29-
* Constructs a new {@code AggregateException} with the current stack trace, the specified detail
30-
* message and with references to the inner throwables that are the cause of this exception.
29+
* Constructs a new {@code AggregateException} with the current stack trace, the specified
30+
* detail message and with references to the inner throwables that are the cause of this
31+
* exception.
3132
*
32-
* @param detailMessage The detail message for this exception.
33+
* @param detailMessage The detail message for this exception.
3334
* @param innerThrowables The exceptions that are the cause of the current exception.
3435
*/
3536
public AggregateException(String detailMessage, Throwable[] innerThrowables) {
3637
this(detailMessage, Arrays.asList(innerThrowables));
3738
}
3839

39-
4040
/**
41-
* Constructs a new {@code AggregateException} with the current stack trace, the specified detail
42-
* message and with references to the inner throwables that are the cause of this exception.
41+
* Constructs a new {@code AggregateException} with the current stack trace, the specified
42+
* detail message and with references to the inner throwables that are the cause of this
43+
* exception.
4344
*
44-
* @param detailMessage The detail message for this exception.
45+
* @param detailMessage The detail message for this exception.
4546
* @param innerThrowables The exceptions that are the cause of the current exception.
4647
*/
4748
public AggregateException(String detailMessage, List<? extends Throwable> innerThrowables) {
48-
super(detailMessage,
49-
innerThrowables != null && innerThrowables.size() > 0 ? innerThrowables.get(0) : null);
49+
super(
50+
detailMessage,
51+
innerThrowables != null && innerThrowables.size() > 0
52+
? innerThrowables.get(0)
53+
: null);
5054
this.innerThrowables = Collections.unmodifiableList(innerThrowables);
5155
}
5256

5357
/**
54-
* Constructs a new {@code AggregateException} with the current stack trace and with references to
55-
* the inner throwables that are the cause of this exception.
58+
* Constructs a new {@code AggregateException} with the current stack trace and with references
59+
* to the inner throwables that are the cause of this exception.
5660
*
5761
* @param innerThrowables The exceptions that are the cause of the current exception.
5862
*/
@@ -98,9 +102,7 @@ public void printStackTrace(PrintWriter err) {
98102
}
99103
}
100104

101-
/**
102-
* @deprecated Please use {@link #getInnerThrowables()} instead.
103-
*/
105+
/** @deprecated Please use {@link #getInnerThrowables()} instead. */
104106
@Deprecated
105107
public List<Exception> getErrors() {
106108
List<Exception> errors = new ArrayList<>();
@@ -118,12 +120,9 @@ public List<Exception> getErrors() {
118120
return errors;
119121
}
120122

121-
/**
122-
* @deprecated Please use {@link #getInnerThrowables()} instead.
123-
*/
123+
/** @deprecated Please use {@link #getInnerThrowables()} instead. */
124124
@Deprecated
125125
public Throwable[] getCauses() {
126126
return innerThrowables.toArray(new Throwable[0]);
127127
}
128-
129128
}

0 commit comments

Comments
 (0)