Commit Graph

31 Commits

Author SHA1 Message Date
Pranav Yadav
8b2e1cc8f8 Upgrade to Gradle 8.1.1 (#4907)
Summary:
Upgrade to Gradle `8.1.1`

Done using:

```bash
./gradlew wrapper --gradle-version=8.1.1 --distribution-type=all
```

This is to align with the bump to gradle `8.x` in React Native.

## Changelog

[GENERAL] [SECURITY] - Upgrade to Gradle `8.1.1`

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

Test Plan: - CI checks should pass & builds should be successful without any errors.

Reviewed By: antonk52

Differential Revision: D47553708

Pulled By: passy

fbshipit-source-id: a0ab9ab732a254c563d8cb55b277f73571da8927
2023-07-19 02:47:42 -07:00
Pascal Hartig
0d364dc6b6 Upgrade AGP to 8.0.2 (#4850)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/4850

Quick drive-by change to avoid falling that far behind again as we did before the last Sustainathon.

Reviewed By: antonk52

Differential Revision: D46859127

fbshipit-source-id: 91fe675fc16ea66544920eeea070b344fa66340a
2023-06-23 14:42:14 -07:00
Pascal Hartig
4e0bbb62fe Upgrade gradle plugin (#4751)
Summary:
[android] Upgrade gradle project
Makes us compatible with Android Studio Flamingo and unlocks upgrades to Kotlin
(which we need to be in sync with fbsource).

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

Test Plan:
- ./gradlew :android:assembleDebug
- Android Studio Sync
- CI

 ---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/flipper/pull/4751).
* https://github.com/facebook/flipper/issues/4759
* https://github.com/facebook/flipper/issues/4758
* https://github.com/facebook/flipper/issues/4757
* https://github.com/facebook/flipper/issues/4756
* https://github.com/facebook/flipper/issues/4755
* https://github.com/facebook/flipper/issues/4754
* https://github.com/facebook/flipper/issues/4753
* https://github.com/facebook/flipper/issues/4752
* __->__ https://github.com/facebook/flipper/issues/4751

Reviewed By: aigoncharov

Differential Revision: D46068236

Pulled By: passy

fbshipit-source-id: 707422134b49c0d940b663f6f40937fe6561a038
2023-05-23 08:48:24 -07:00
Pascal Hartig
0afdfdea63 Set up sha256 validation for wrapper (#4704)
Summary:
Just to make sure that nobody injects something in our build chain. Checksum taken from the official website: https://gradle.org/release-checksums/

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

Reviewed By: antonk52

Differential Revision: D45320680

fbshipit-source-id: 2a489264f3c377ef2c6bb4557cb788b4ab19bcc5
2023-04-27 07:42:23 -07:00
dependabot[bot]
784401ae0b Bump gradle from 7.3.0 to 7.4.0 (#4443)
Summary:
Bumps gradle from 7.3.0 to 7.4.0.

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.android.tools.build:gradle&package-manager=gradle&previous-version=7.3.0&new-version=7.4.0)](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/4443

Reviewed By: lblasa

Differential Revision: D42610002

Pulled By: passy

fbshipit-source-id: c6e2408dd3197eb81f91d59bf7160481756cbd42
2023-03-22 08:37:41 -07:00
Lorenzo Blasa
16983deaaf Upgrade gradle plugin (#4166)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/4166

^

Changelog: Upgrade to gradle plugin 7.3.0

Reviewed By: LukeDefeo

Differential Revision: D40019423

fbshipit-source-id: ab05fd73e942c96601e2291049b1c858408e1192
2022-10-03 07:35:43 -07:00
Pascal Hartig
d8530baa25 Upgrade to Gradle 7.4 (#3437)
Summary:
Done using

```
./gradlew wrapper --gradle-version=7.4 --distribution-type=all
```

Waiting for CI result to check if this also addresses the build problem.

Note for reviewers: This is generated. Scanning for Bad Things is appreciated but you don't need to carefully read every line.

Depends on https://github.com/facebook/flipper/issues/3436.

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

Test Plan: The recently added test step for verifying that this doesn't regress our APK creation is passing: https://github.com/facebook/flipper/runs/5188576639?check_suite_focus=true

Reviewed By: lblasa

Differential Revision: D34218046

Pulled By: passy

fbshipit-source-id: 20d3c543db8f1c12f996977d0bb34d62ea5bcd0b
2022-02-16 08:22:09 -08:00
Pascal Hartig
5ab67f09dc Revert "Upgrade Gradle Runner(?) (#3390)" (#3435)
Summary:
Fixes https://github.com/facebook/flipper/issues/3395

This reverts commit ecd7269848.

Will need to follow up with, ideally, a test case that is similar to my bisect script by checking the number of `_core` artefacts bundled while we figure out the root cause.

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

Reviewed By: cekkaewnumchai

Differential Revision: D34202506

Pulled By: passy

fbshipit-source-id: 5b81959c0514cfc8f1aad36bf8c76a2204fa5af2
2022-02-14 04:06:03 -08:00
Chaiwat Ekkaewnumchai
ecd7269848 Upgrade Gradle Runner(?) (#3390)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3390

In [D33892189 V3 Android OSS job](https://www.internalfb.com/intern/sandcastle/job/36028797581234803/artifact/runsandcastle), it failed saying that it needs version 7.2 or later. Hence, upgrading this

Reviewed By: antonk52

Differential Revision: D33917841

fbshipit-source-id: 3ccc912b6aa5aa611840e917646870b8bceb0843
2022-02-02 01:46:24 -08:00
Andres Suarez
79023ee190 Update copyright headers from Facebook to Meta
Reviewed By: bhamodi

Differential Revision: D33331422

fbshipit-source-id: 016e8dcc0c0c7f1fc353a348b54fda0d5e2ddc01
2021-12-27 14:31:45 -08:00
Pascal Hartig
6279cc68b1 Upgrade to Gradle 7 (#2279)
Summary:
Depends on https://github.com/facebook/flipper/issues/2277. Fixes https://github.com/facebook/flipper/issues/2221.

The maven plugin is no longer exposed and implied by https://developer.android.com/studio/build/maven-publish-plugin.

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

Test Plan: ./gradlew uploadArchives -PdryRun=true

Reviewed By: priteshrnandgaonkar

Differential Revision: D28473692

Pulled By: passy

fbshipit-source-id: 3d95122fecebfeac8bfa5173c5c633eee3f13311
2021-05-17 07:29:49 -07:00
Pascal Hartig
3f16da4db0 Upgrade gradle plugin (#1936)
Summary:
Upgraded to the latest Android Studio and this popped up.

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

Test Plan:
Built the sample app.

Repro'd the previous build failure. Weirdly enough, this only occurred on Linux, not on my Mac. Now it's passing.

Reviewed By: mweststrate

Differential Revision: D26483694

Pulled By: passy

fbshipit-source-id: 9c27eb6d28a0f390154899d67469a504d68c2ad4
2021-02-19 03:29:50 -08:00
Pascal Hartig
87d7bcf274 Remove JCenter specifics (#1914)
Summary:
This removes Bintray/JCenter specific code and replaces it with a new plugin recommended by [Chris Banes](https://chris.banes.dev/publishing-to-maven-central/).

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

Test Plan:
Manually uploaded as snapshot and full release, but with this setup still requires all sorts of manual setup, including GPG. Next PR will include automation for this.

CI here should also verify that I didn't split this diff up incorrectly.

Reviewed By: jknoxville

Differential Revision: D26367350

Pulled By: passy

fbshipit-source-id: faa6b488d6c95bc643d2f9328362e29fb4b05ded
2021-02-10 07:16:32 -08:00
Pascal Hartig
93d23e8c0a Upgrade to Gradle 6.8.1 (#1895)
Summary:
Playing around with alternative upload options and having
an up-to-date Gradle installation makes that easier.

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

Test Plan: ./gradlew :sample:assembleDebug + CI

Reviewed By: nikoant

Differential Revision: D26275350

Pulled By: passy

fbshipit-source-id: ce5d11c289e6cf52e2d629a4719cc38665adf8e5
2021-02-05 04:57:47 -08:00
Pascal Hartig
74c9f8ea33 Upgrade gradle and gradle plugin (#1327)
Summary:
Android Studio is on 4.0 now, we need the plugin for proper support.
Pull Request resolved: https://github.com/facebook/flipper/pull/1327

Test Plan: Synced and build with it.

Reviewed By: nikoant

Differential Revision: D22356268

Pulled By: passy

fbshipit-source-id: 63c7b727e9a0eaaea7beed1f9819c1e2d15a0ff4
2020-07-02 11:15:09 -07:00
Pascal Hartig
e84f62d5d5 Upgrade Gradle wrapper (#749)
Summary:
Ran this:
```
./gradlew wrapper --gradle-version=5.6.4 --distribution-type=bin
```

I tried to get us to 6.1, but that causes some type errors within
the Android plugin. I hope it's actually there stuff and not ours
so we can upgrade once they've sorted their stuff.
Pull Request resolved: https://github.com/facebook/flipper/pull/749

Test Plan:
./gradlew tasks
./gradlew :sample:installDebug

Reviewed By: jknoxville

Differential Revision: D19428496

Pulled By: passy

fbshipit-source-id: a910f5a269688f7ec5fc020fe1af99a75fc7b574
2020-01-16 06:18:37 -08:00
Pascal Hartig
90725bb7c9 Bump gradle
Summary: Patch version, no breaking changes.

Reviewed By: jknoxville

Differential Revision: D18371607

fbshipit-source-id: 0d92dc56031a829f967e62d3aefcf558851be5f6
2019-11-07 06:56:19 -08:00
Andres Suarez
0675dd924d Tidy up Flipper license headers [1/2]
Reviewed By: passy

Differential Revision: D17863711

fbshipit-source-id: 259dc77826fb803ff1b88c88529d7f679d3b74d8
2019-10-11 13:46:45 -07:00
Pascal Hartig
962bd03785 Upgrade Gradle
Summary: One of the last releases before 6.0 with more deprecation warnings.

Reviewed By: jknoxville

Differential Revision: D17259063

fbshipit-source-id: c31e9dc46071deae601489cc51d9af0d569d270d
2019-09-09 08:50:52 -07:00
Pascal Hartig
1528e353b8 Upgrade Gradle
Summary: Android Studio suggests this in order to continue working properly.

Reviewed By: danielbuechele

Differential Revision: D17160910

fbshipit-source-id: fac638495d6aa194dca54ef72c1c9dca5ad42b73
2019-09-03 03:31:22 -07:00
Pascal Hartig
268aee897c Remove Litho references
Summary: There were some leftover Litho references.

Reviewed By: danielbuechele

Differential Revision: D17071513

fbshipit-source-id: feec9a5748c359a830746c2f9944e0256b16bc09
2019-08-27 08:49:51 -07:00
Pascal Hartig
f584eb05dd Another round of header updates
Summary: I hope that this takes care of all the android violations.

Reviewed By: danielbuechele

Differential Revision: D15199150

fbshipit-source-id: 0f5b4edc1bc9d38de0885f88bb2c3e43acfa09cd
2019-05-03 09:59:33 -07:00
Pascal Hartig
1831a672b5 More copyright headers for misc stuff
Summary: Scripts and Portforwarding things.

Reviewed By: jknoxville

Differential Revision: D15164852

fbshipit-source-id: a9dcdcb5e6c19dc51d1aa0158fceafe21ab7615f
2019-05-01 08:14:55 -07:00
Pascal Hartig
5c50b16701 Remove deprecated gradle calls
Summary: Mirroring 897fe6123e (diff-aa51f8b3cd4c236a2fa014f530b3b780)

Reviewed By: jknoxville

Differential Revision: D15146913

fbshipit-source-id: 0eca84e9d0c536ac78883b11dccb3243786ab130
2019-04-30 13:13:00 -07:00
Pascal Hartig
8e9643e8a1 Bump Gradle to 5.3.1 (#403)
Summary:
Just going through some of our third-party deps and making sure that
we're not trailing too far behind.
Pull Request resolved: https://github.com/facebook/flipper/pull/403

Reviewed By: danielbuechele

Differential Revision: D14665266

Pulled By: passy

fbshipit-source-id: 61e730c4d850a1c0a9475de287d9791061e85e4b
2019-04-02 04:26:14 -07:00
pavlospt
84a8b1acab Upgrade to Gradle 5.1.1 stable version (#357)
Summary:
_Per title_
Pull Request resolved: https://github.com/facebook/flipper/pull/357

Reviewed By: jknoxville

Differential Revision: D13761808

Pulled By: passy

fbshipit-source-id: 82e39f78e69966ae2d098629b9c4ed1090c43802
2019-01-23 04:12:11 -08:00
Pascal Hartig
9f59497913 Use Gradle 5.0RC1 with HTTP retry (#317)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/317

This could save our collective sanity. There's now
built-in support for HTTP retries: 0904f9d136

Reviewed By: jknoxville

Differential Revision: D12906015

fbshipit-source-id: 6030bfb6b914cfda186d92d20f3b15e693b1710c
2018-11-02 17:21:04 -07:00
Pascal Hartig
9685477ea6 Add support for proxy maven deployment
Summary: This is helpful when uploading snapshots from a devserver.

Reviewed By: priteshrnandgaonkar

Differential Revision: D10008434

fbshipit-source-id: de00acee189e751982f622c0ac317e9c2ea14540
2018-09-24 04:45:56 -07:00
Pascal Hartig
cd6a5f9ff8 Reorganize native dep download and extraction (#154)
Summary:
This moves the native setup to a separate gradle file and unpacks everything outside the build folder. That way we don't throw everything away on every incremental build.

This is an intermediate step to get to a more declarative setup like Fresco has it and get rid of the individual hacks we have for every download.
Pull Request resolved: https://github.com/facebook/Sonar/pull/154

Reviewed By: jknoxville

Differential Revision: D8833812

Pulled By: passy

fbshipit-source-id: 2424c9d6e22e6092c04af344e06939b4a6aba041
2018-07-16 10:26:10 -07:00
Pascal Hartig
46df0b25a0 Set up Maven packaging and Bintray upload (#104)
Summary:
This make use of the the setup we have at Litho, which should make
it easier to keep them in sync.

It creates proper source jars, AARs (without bundling in unwanted
transitive deps) and POMs.
Closes https://github.com/facebook/Sonar/pull/104

Reviewed By: priteshrnandgaonkar

Differential Revision: D8638912

Pulled By: passy

fbshipit-source-id: ff4921c0683e9b6f859085b542ceae840a7e8291
2018-06-26 08:18:23 -07:00
Daniel Büchele
fbbf8cf16b Initial commit 🎉
fbshipit-source-id: b6fc29740c6875d2e78953b8a7123890a67930f2
Co-authored-by: Sebastian McKenzie <sebmck@fb.com>
Co-authored-by: John Knox <jknox@fb.com>
Co-authored-by: Emil Sjölander <emilsj@fb.com>
Co-authored-by: Pritesh Nandgaonkar <prit91@fb.com>
2018-06-01 11:03:58 +01:00