Files
flipper/build.gradle
dependabot[bot] e909f8c8e7 Bump org.robolectric:robolectric from 4.9.2 to 4.10 (#4687)
Summary:
Bumps [org.robolectric:robolectric](https://github.com/robolectric/robolectric) from 4.9.2 to 4.10.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/robolectric/robolectric/releases">org.robolectric:robolectric's releases</a>.</em></p>
<blockquote>
<p>Robolectric 4.10 adds support for native Android graphics. It is currently disabled by default and can be enabled using <code>GraphicsMode(NATIVE)</code>. When native graphics is enabled, interactions with Android graphics classes use real native Android graphics code and are much higher fidelity.</p>
<h2>Behavior changes</h2>
<p>In Robolectric 4.10, <code>ReflectionHelpers.setStaticField</code> no longer removes the <code>final</code> keyword from static fields. This is because removing <code>final</code> using reflection stops working in JDK 18 due to <a href="https://openjdk.java.net/jeps/416">https://openjdk.java.net/jeps/416</a>. To remove <code>final</code> from static fields, consider using some instrumentation-based approach, such as mockito-inline.</p>
<h2>What's Changed</h2>
<ul>
<li>Remove dead code that uses Plan based instrumentation (ClassHandler.Plan) <a href="https://redirect.github.com/robolectric/robolectric/pull/7610">robolectric/robolectric#7610</a></li>
<li>Run SDK 33 tests on CI by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7613">robolectric/robolectric#7613</a></li>
<li>Bump maximum API for GMD to SDK 33 by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7614">robolectric/robolectric#7614</a></li>
<li>Remove use-sdk from androidx_test/sharedTest/AndroidManifest.xml by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7615">robolectric/robolectric#7615</a></li>
<li>[Warning] Eliminated AnnotateFormatMethod warnings by <a href="https://github.com/hellosagar"><code>@​hellosagar</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7353">robolectric/robolectric#7353</a></li>
<li>Remove 0x prefix for string format log by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7617">robolectric/robolectric#7617</a></li>
<li>Bump compile/targetSdk to 33 by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7616">robolectric/robolectric#7616</a></li>
<li>Remove unused Exception for ShadowActivityTest by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7618">robolectric/robolectric#7618</a></li>
<li>Support Activity setShowWhenLocked() and setTurnScreenOn() by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7438">robolectric/robolectric#7438</a></li>
<li>Exclude kotlin-stdlib dependency from utils generated .pom by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7607">robolectric/robolectric#7607</a></li>
<li>Move dependencies of shadows/framework to gradle.properties by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7627">robolectric/robolectric#7627</a></li>
<li>Bump ASM to 9.3 by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7626">robolectric/robolectric#7626</a></li>
<li>Add the ability to deploy specific preinstrumented jars to maven by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7602">robolectric/robolectric#7602</a></li>
<li>Combine exceptions for ReflectionHelpers#getDeclaredField by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7634">robolectric/robolectric#7634</a></li>
<li>Clean up ShadowAccountManager by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7636">robolectric/robolectric#7636</a></li>
<li>Migrate Gradle dependencies to dependencies.gradle by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7635">robolectric/robolectric#7635</a></li>
<li>Add alternative to Unsafe.defineAnonymousClass by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7633">robolectric/robolectric#7633</a></li>
<li>Support all authentication results for BiometricManager by <a href="https://github.com/charlesng"><code>@​charlesng</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7427">robolectric/robolectric#7427</a></li>
<li>Bump bcprov-jdk15on from 1.68 to 1.70 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7638">robolectric/robolectric#7638</a></li>
<li>Bump constraintlayout from 2.1.3 to 2.1.4 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7640">robolectric/robolectric#7640</a></li>
<li>Reuse bytecode of ClassWriter for ProxyMaker by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7643">robolectric/robolectric#7643</a></li>
<li>Migrate instance calling in ReflectionHelpers to lambda by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7644">robolectric/robolectric#7644</a></li>
<li>Bump compile-testing from 0.18 to 0.19 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7645">robolectric/robolectric#7645</a></li>
<li>Bump apiCompatVersion from 4.7 to 4.8.2 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7647">robolectric/robolectric#7647</a></li>
<li>Bump gson from 2.8.6 to 2.9.1 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7646">robolectric/robolectric#7646</a></li>
<li>Bump core from 1.5.0 to 1.9.0 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7649">robolectric/robolectric#7649</a></li>
<li>Clean up unused code for ShadowDisplayManagerTest by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7662">robolectric/robolectric#7662</a></li>
<li>Remove unused shadows ShadowCornerPathEffect and ShadowLinearGradient <a href="https://redirect.github.com/robolectric/robolectric/pull/7668">robolectric/robolectric#7668</a></li>
<li>Bump apiCompatVersion from 4.8.2 to 4.9 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7672">robolectric/robolectric#7672</a></li>
<li>Add call to $$robo$init for Jacoco-instrumented constructors <a href="https://redirect.github.com/robolectric/robolectric/pull/7677">robolectric/robolectric#7677</a></li>
<li>Respect ShadowProvider priority when populating the ShadowPicker map <a href="https://redirect.github.com/robolectric/robolectric/pull/7686">robolectric/robolectric#7686</a></li>
<li>Properly parse &amp; populate process information from the manifest. ServiceInfo.processName and ActivityInfo.processName will now correctly reflect the value of the process attribute from their respective manifest entry. <a href="https://redirect.github.com/robolectric/robolectric/pull/7690">robolectric/robolectric#7690</a></li>
<li>Bump autoServiceVersion from 1.0-rc6 to 1.0.1 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7674">robolectric/robolectric#7674</a></li>
<li>Create an activity context for activities. <a href="https://redirect.github.com/robolectric/robolectric/pull/6481">robolectric/robolectric#6481</a></li>
<li>Remove deprecated Utils#intArrayToList by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7687">robolectric/robolectric#7687</a></li>
<li>Fix configuration/resource handling in activity contexts <a href="https://redirect.github.com/robolectric/robolectric/pull/7692">robolectric/robolectric#7692</a></li>
<li>Add Java source &amp; target compatibility config for preinstrumented by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7664">robolectric/robolectric#7664</a></li>
<li>Update the <code>ResourcesManager</code> configuration when applying qualifiers <a href="https://redirect.github.com/robolectric/robolectric/pull/7697">robolectric/robolectric#7697</a></li>
<li>Replace Config with Implementation <a href="https://redirect.github.com/robolectric/robolectric/pull/7710">robolectric/robolectric#7710</a></li>
<li>Switch to ubuntu-20.04 for GitHub Actions by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7716">robolectric/robolectric#7716</a></li>
<li>Bump errorproneVersion from 2.9.0 to 2.16 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7715">robolectric/robolectric#7715</a></li>
<li>Bump Kotlin to 1.7.10 by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7497">robolectric/robolectric#7497</a></li>
<li>Upgrade androidx.test and androidx.fragment versions to latest. by <a href="https://github.com/brettchabot"><code>@​brettchabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7683">robolectric/robolectric#7683</a></li>
<li>Bump kotlinVersion from 1.5.20 to 1.7.20 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/robolectric/robolectric/pull/7694">robolectric/robolectric#7694</a></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="245c8f6405"><code>245c8f6</code></a> Bump version to 4.10.</li>
<li><a href="732290ae0a"><code>732290a</code></a> Merge branch 'google' into 'master'</li>
<li><a href="301c15872c"><code>301c158</code></a> Fix doc typo for ShadowWebview</li>
<li><a href="f8cfc865ab"><code>f8cfc86</code></a> Remove executable flag for some Java files</li>
<li><a href="d2340ee846"><code>d2340ee</code></a> Support partial AppComponentFactory in Robolectric</li>
<li><a href="1d3cdabd68"><code>1d3cdab</code></a> Adjust to future platform changes.</li>
<li><a href="877eb6af09"><code>877eb6a</code></a> Migrate task definations to task.register</li>
<li><a href="45cb893459"><code>45cb893</code></a> Add basic implementation for LocationManager.requestFlush().</li>
<li><a href="40c16eaac4"><code>40c16ea</code></a> Remove unnecessary logic to transform broadcast receiver class names</li>
<li><a href="adb2d07ea0"><code>adb2d07</code></a> Fix AssetManagerTest on android U</li>
<li>Additional commits viewable in <a href="https://github.com/robolectric/robolectric/compare/robolectric-4.9.2...robolectric-4.10">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.robolectric:robolectric&package-manager=gradle&previous-version=4.9.2&new-version=4.10)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/4687

Reviewed By: lblasa

Differential Revision: D45350804

Pulled By: passy

fbshipit-source-id: c3de6d41ec56a52ca76964f0744388d4b84c346d
2023-04-28 03:35:40 -07:00

116 lines
5.4 KiB
Groovy

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.25.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10"
classpath "org.jetbrains.kotlin:kotlin-serialization:$KOTLIN_VERSION"
}
}
plugins {
id 'de.undercouch.download' version '5.3.1'
id 'com.github.ben-manes.versions' version '0.46.0'
}
ext.isSnapshot = { VERSION_NAME.endsWith('-SNAPSHOT') }
ext.isRelease = { ['publish', 'publishToMavenLocal'].any { gradle.startParameter.taskNames.contains(it) } }
subprojects {
repositories {
google()
mavenLocal()
mavenCentral()
if (isSnapshot()) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
// We don't build Javadoc at this time.
tasks.withType(Javadoc).all {
enabled = false
}
}
ext {
minSdkVersion = 15
targetSdkVersion = 31
compileSdkVersion = 31
buildToolsVersion = "30.0.3"
ndkVersion = "$NDK_VERSION"
}
ext.deps = [
// Kotlin support
kotlinStdLibrary : "org.jetbrains.kotlin:kotlin-stdlib:$KOTLIN_VERSION",
kotlinCoroutinesAndroid : "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4",
// Android support
supportAnnotations : "androidx.annotation:annotation:$ANDROIDX_VERSION",
supportAppCompat : "androidx.appcompat:appcompat:$ANDROIDX_VERSION",
supportCoreUi : "androidx.legacy:legacy-support-core-ui:$ANDROIDX_VERSION",
supportRecyclerView: "androidx.recyclerview:recyclerview:$ANDROIDX_VERSION",
supportConstraintLayout: "androidx.constraintlayout:constraintlayout:2.1.4",
supportSqlite : "androidx.sqlite:sqlite-framework:2.2.0",
supportEspresso : 'androidx.test.espresso:espresso-core:3.5.1',
supportEspressoIntents : 'androidx.test.espresso:espresso-intents:3.5.1',
supportTestRunner : 'androidx.test:runner:1.5.2',
// Arch
archPaging : 'android.arch.paging:runtime:1.0.1',
// First-party
soloader : "com.facebook.soloader:soloader:$SOLOADER_VERSION",
fbjni : "com.facebook.fbjni:fbjni:$FBJNI_VERSION",
screenshot : 'com.facebook.testing.screenshot:core:0.15.0',
boltsTasks : 'com.parse.bolts:bolts-tasks:1.4.0',
// Third-party
websocket : 'org.java-websocket:Java-WebSocket:1.5.3',
openssl : 'com.android.ndk.thirdparty:openssl:1.1.1l-beta-1',
// Annotations
kotlinxSerializationJson : "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1",
jsr305 : 'com.google.code.findbugs:jsr305:3.0.2',
inferAnnotations : 'com.facebook.infer.annotation:infer-annotation:0.18.0',
proguardAnnotations: 'com.facebook.yoga:proguard-annotations:1.19.0',
// Litho
lithoAnnotations : "com.facebook.litho:litho-annotations:$LITHO_VERSION",
lithoCore : "com.facebook.litho:litho-core:$LITHO_VERSION",
lithoEditorCore : "com.facebook.litho:litho-editor-core:$LITHO_VERSION",
lithoEditorFlipper : "com.facebook.litho:litho-editor-flipper:$LITHO_VERSION",
lithoSectionsAnnotations: "com.facebook.litho:litho-sections-annotations:$LITHO_VERSION",
lithoSectionsDebug : "com.facebook.litho:litho-sections-debug:$LITHO_VERSION",
lithoSectionsCore : "com.facebook.litho:litho-sections-core:$LITHO_VERSION",
lithoSectionsWidget : "com.facebook.litho:litho-sections-widget:$LITHO_VERSION",
lithoWidget : "com.facebook.litho:litho-widget:$LITHO_VERSION",
lithoProcessor : "com.facebook.litho:litho-processor:$LITHO_VERSION",
lithoSectionsProcessor: "com.facebook.litho:litho-sections-processor:$LITHO_VERSION",
lithoFresco : "com.facebook.litho:litho-fresco:$LITHO_VERSION",
lithoTesting : "com.facebook.litho:litho-testing:$LITHO_VERSION",
// Debugging and testing
guava : 'com.google.guava:guava:23.0',
robolectric : 'org.robolectric:robolectric:4.10',
junit : 'junit:junit:4.13.2',
hamcrest : 'org.hamcrest:hamcrest-library:2.2',
mockito : 'org.mockito:mockito-core:5.2.0',
okhttp3 : 'com.squareup.okhttp3:okhttp:4.9.3',
leakcanary : 'com.squareup.leakcanary:leakcanary-android:1.6.3',
leakcanary2 : 'com.squareup.leakcanary:leakcanary-android:2.8.1',
protobuf : 'com.google.protobuf:protobuf-java:3.22.3',
testCore : 'androidx.test:core:1.4.0',
testRules : 'androidx.test:rules:1.5.0',
// Plugin dependencies
flipperFrescoPlugin: 'com.facebook.flipper:flipper-fresco-plugin:0.182.0',
frescoFlipper : 'com.facebook.fresco:flipper:3.0.0',
frescoStetho : 'com.facebook.fresco:stetho:2.6.0',
fresco : 'com.facebook.fresco:fresco:2.6.0',
]