diff options
author | Jeff Gaston <jeffrygaston@google.com> | 2019-01-23 17:36:42 -0500 |
---|---|---|
committer | Jeff Gaston <jeffrygaston@google.com> | 2019-01-28 18:18:48 -0500 |
commit | 0b43d17989fd7272287de00e8e0f43e3dfa19e61 (patch) | |
tree | 83e33d0166f080547c514e114b9910f3b658b138 /collection | |
parent | 5d65a6a77b8fd846a20fa35c246f377fdfda0e3b (diff) | |
download | support-0b43d17989fd7272287de00e8e0f43e3dfa19e61.tar.gz |
Support to ignore api violations by adding baseline error files
Run `./gradlew ignoreApiChanges` to update the .ignore files
In case we want to tell `./gradlew checkApi` to ignore certain api removals that we know to be safe
Also updating the *.ignore files with the new version of Metalava
Also making checkApiRelease specify "--warnings-as-errors" so that introducing
a new warning is disallowed, instead of causing the next invocation of
`./gradlew ignoreApiChanges` to cause changes to the .ignore files
Bug: 121127282
Test: ./gradlew checkApi
Test: echo "package androidx.core.sample { public class Sample { } }" >> core/api/1.0.0.txt && ./gradlew :core:ignoreApiChanges && ./gradlew :core:checkApi
Test: echo "package androidx.core.sample { public class Sample { } }" >> core/api/1.0.0.txt && ./gradlew :core:checkApi || echo succeeded
Change-Id: Ie1a11b636b539e2e0a12cd1d5c595387742c4897
Diffstat (limited to 'collection')
-rw-r--r-- | collection/api/1.0.0.txt | 2 | ||||
-rw-r--r-- | collection/api/1.1.0-alpha01.txt | 2 | ||||
-rw-r--r-- | collection/ktx/api/1.0.0.txt | 2 | ||||
-rw-r--r-- | collection/ktx/api/1.1.0-alpha01.txt | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/collection/api/1.0.0.txt b/collection/api/1.0.0.txt index 36e7843bc86..e849a298ae5 100644 --- a/collection/api/1.0.0.txt +++ b/collection/api/1.0.0.txt @@ -1,4 +1,4 @@ -// Signature format: 2.0 +// Signature format: 3.0 package androidx.collection { public class ArrayMap<K, V> extends androidx.collection.SimpleArrayMap<K,V> implements java.util.Map<K,V> { diff --git a/collection/api/1.1.0-alpha01.txt b/collection/api/1.1.0-alpha01.txt index 81bb5ceb8af..5724c878722 100644 --- a/collection/api/1.1.0-alpha01.txt +++ b/collection/api/1.1.0-alpha01.txt @@ -1,4 +1,4 @@ -// Signature format: 2.0 +// Signature format: 3.0 package androidx.collection { public class ArrayMap<K, V> extends androidx.collection.SimpleArrayMap<K,V> implements java.util.Map<K,V> { diff --git a/collection/ktx/api/1.0.0.txt b/collection/ktx/api/1.0.0.txt index e7606ec25aa..c941554708e 100644 --- a/collection/ktx/api/1.0.0.txt +++ b/collection/ktx/api/1.0.0.txt @@ -1,4 +1,4 @@ -// Signature format: 2.0 +// Signature format: 3.0 package androidx.collection { public final class ArrayMapKt { diff --git a/collection/ktx/api/1.1.0-alpha01.txt b/collection/ktx/api/1.1.0-alpha01.txt index 36ae63f4eba..3d7e046f0b8 100644 --- a/collection/ktx/api/1.1.0-alpha01.txt +++ b/collection/ktx/api/1.1.0-alpha01.txt @@ -1,4 +1,4 @@ -// Signature format: 2.0 +// Signature format: 3.0 package androidx.collection { public final class ArrayMapKt { |