Skip to content

Commit

Permalink
Bump AGP from 7.4.2 to 8.1.1
Browse files Browse the repository at this point in the history
Reviewed By: defHLT

Differential Revision: D57974435

fbshipit-source-id: b1e35de411cbbea89ae901c6ec6bc846738c3032
  • Loading branch information
steelrooter authored and facebook-github-bot committed May 31, 2024
1 parent ca18704 commit 8a0e8c7
Show file tree
Hide file tree
Showing 64 changed files with 294 additions and 20 deletions.
6 changes: 6 additions & 0 deletions animated-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import com.facebook.fresco.buildsrc.TestDeps
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(11)
}

dependencies {
compileOnly Deps.inferAnnotation
compileOnly Deps.javaxAnnotation
Expand Down Expand Up @@ -52,6 +56,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipeline.animated"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
6 changes: 6 additions & 0 deletions animated-drawable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ import com.facebook.fresco.buildsrc.TestDeps
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(11)
}

android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.animated.drawable"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions animated-gif-lite/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.animated.giflite"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
8 changes: 8 additions & 0 deletions animated-gif/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import com.facebook.fresco.buildsrc.TestDeps

apply plugin: 'com.android.library'

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

dependencies {
compileOnly Deps.inferAnnotation
compileOnly Deps.jsr305
Expand Down Expand Up @@ -48,6 +54,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.animated.gif"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
8 changes: 8 additions & 0 deletions animated-webp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ import com.facebook.fresco.buildsrc.TestDeps

apply plugin: 'com.android.library'

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

dependencies {
compileOnly Deps.inferAnnotation
compileOnly Deps.jsr305
Expand Down Expand Up @@ -41,6 +47,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.animated.webp"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ buildscript {
classpath GradleDeps.Android.gradlePlugin
classpath GradleDeps.Kotlin.gradlePlugin

classpath GradleDeps.Kotlin.gradlePlugin

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package com.facebook.fresco.buildsrc
object GradleDeps {

object Android {
private const val version = "7.4.2"
private const val version = "8.1.1"

const val gradlePlugin = "com.android.tools.build:gradle:$version"
}
Expand All @@ -21,6 +21,10 @@ object GradleDeps {
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib:$version"
}

object Native {
const val version = "25.2.9519653"
}

object Publishing {
const val gradleMavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.25.3"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object TestDeps {

const val festAssertCore = "org.easytesting:fest-assert-core:2.0M10"

const val robolectric = "org.robolectric:robolectric:4.11"
const val robolectric = "org.robolectric:robolectric:4.12"

const val truth = "com.google.truth:truth:1.0.1"

Expand All @@ -30,7 +30,7 @@ object TestDeps {
}

object Powermock {
private const val version = "2.0.2"
private const val version = "2.0.9"

const val apiMockito = "org.powermock:powermock-api-mockito2:$version"
const val moduleJunit4 = "org.powermock:powermock-module-junit4:$version"
Expand Down
6 changes: 6 additions & 0 deletions drawee-backends/drawee-pipeline/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import com.facebook.fresco.buildsrc.TestDeps
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(11)
}

dependencies {
compileOnly Deps.AndroidX.legacySupportCoreUtils
compileOnly Deps.AndroidX.androidxAnnotation
Expand Down Expand Up @@ -44,6 +48,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.drawee.backends.pipeline"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions drawee-span/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.drawee.span"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions drawee/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.drawee"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
6 changes: 6 additions & 0 deletions fbcore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import com.facebook.fresco.buildsrc.TestDeps
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(11)
}

dependencies {
compileOnly Deps.inferAnnotation
compileOnly Deps.jsr305
Expand Down Expand Up @@ -42,6 +46,8 @@ android {

useLibrary 'org.apache.http.legacy'

namespace "com.facebook.fbcore"

defaultConfig {
consumerProguardFiles 'proguard-fresco.pro'
minSdkVersion FrescoConfig.minSdkVersion
Expand Down
7 changes: 5 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# Default value: -Xmx10248m
# org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx2048m

# When configured, Gradle will run in incubating parallel mode.
Expand Down Expand Up @@ -46,3 +46,6 @@ LIBWEBP_VERSION=1.3.2

SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=true

# AGP 8.0 feature(s)
android.enableBuildConfigAsBytecode=true
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Mar 08 15:10:53 GMT 2023
#Thu May 30 11:49:44 BST 2024
distributionBase=GRADLE_USER_HOME
distributionUrl=https\:https://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions imagepipeline-backends/imagepipeline-okhttp3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import com.facebook.fresco.buildsrc.Deps
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(11)
}

dependencies {
compileOnly Deps.inferAnnotation
compileOnly Deps.jsr305
Expand All @@ -29,6 +33,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipeline.backends.okhttp3"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions imagepipeline-backends/imagepipeline-volley/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipeline.backends.volley"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions imagepipeline-base-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipelinebase.test"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
10 changes: 10 additions & 0 deletions imagepipeline-base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import com.facebook.fresco.buildsrc.TestDeps
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(11)
}

dependencies {
compileOnly Deps.AndroidX.androidxAnnotation
compileOnly Deps.AndroidX.exifInterface
Expand Down Expand Up @@ -46,6 +50,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipelinebase"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand All @@ -58,6 +64,10 @@ android {
}
}
}

buildFeatures {
buildConfig = true
}
}

apply plugin: "com.vanniktech.maven.publish"
11 changes: 11 additions & 0 deletions imagepipeline-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
*/

import com.facebook.fresco.buildsrc.Deps
import com.facebook.fresco.buildsrc.GradleDeps
import com.facebook.fresco.buildsrc.TestDeps

apply plugin: 'com.android.library'

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

dependencies {
compileOnly Deps.inferAnnotation
compileOnly Deps.jsr305
Expand Down Expand Up @@ -39,6 +46,8 @@ dependencies {


android {
ndkVersion GradleDeps.Native.version

def ndkLibs = [
['bitmaps', []],
['imagepipeline', []],
Expand All @@ -47,6 +56,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipeline.nativecode"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions imagepipeline-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipeline.test"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
6 changes: 6 additions & 0 deletions imagepipeline/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import com.facebook.fresco.buildsrc.TestDeps
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

kotlin {
jvmToolchain(11)
}

dependencies {
compileOnly Deps.AndroidX.androidxAnnotation
compileOnly Deps.AndroidX.legacySupportCoreUtils
Expand Down Expand Up @@ -55,6 +59,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.imagepipeline"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions memory-types/ashmem/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.fresco.memorytypes.ashmem"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions memory-types/nativememory/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.fresco.memorytypes.nativememory"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
2 changes: 2 additions & 0 deletions memory-types/simple/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ android {
buildToolsVersion FrescoConfig.buildToolsVersion
compileSdkVersion FrescoConfig.compileSdkVersion

namespace "com.facebook.fresco.memorytypes.simple"

defaultConfig {
minSdkVersion FrescoConfig.minSdkVersion
targetSdkVersion FrescoConfig.targetSdkVersion
Expand Down
Loading

0 comments on commit 8a0e8c7

Please sign in to comment.