-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RNMobile] Upgrade Gradle to 8.2.1
and AGP to 8.1.0
#52872
Changes from 48 commits
cc1ca68
eb29afb
22ed356
3c2cd6f
dd97556
2a66c7a
0767c4e
d9af77e
7c2c07b
3569054
62ac0b8
f63df55
57acd33
ba72061
c0d9c1a
c106962
ab9d379
60a411f
9ceb140
143c768
e60fa86
fc5ad2a
ab4ba07
61b8972
565f0b8
4592d13
41ba3ac
f80c182
47210b7
fb26a88
1d6ffba
a3ce586
7f6f343
9469e37
4794892
6eba537
693c0fe
bf340a4
66a02f9
f1738ff
86c5dc2
ced1fc9
67ca6bd
0cf7e42
d031dfd
1ba4251
665c586
7fead25
6300536
0f7ee31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
name: Enforce labels on Pull Request | ||
on: | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
pull_request_target: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
jobs: | ||
type-related-labels: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: mheap/github-action-required-labels@v5 | ||
with: | ||
mode: exactly | ||
count: 1 | ||
labels: "[Type] Accessibility (a11y), [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Performance, [Type] Project Management, [Type] Security, [Type] WP Core Ticket" | ||
add_comment: true | ||
message: "## ⚠️ Type of PR label error\n To merge this PR, it requires {{ errorString }} {{ count }} label indicating the type of PR. Other labels are optional and not being checked here. \n- **Type-related labels to choose from**: {{ provided }}.\n- **Labels found**: {{ applied }}." | ||
exit_type: success | ||
type-related-labels: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: mheap/github-action-required-labels@v5 | ||
with: | ||
mode: exactly | ||
count: 1 | ||
labels: '[Type] Accessibility (a11y), [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Performance, [Type] Project Management, [Type] Security, [Type] WP Core Ticket' | ||
add_comment: true | ||
message: "## ⚠️ Type of PR label error\n To merge this PR, it requires {{ errorString }} {{ count }} label indicating the type of PR. Other labels are optional and not being checked here. \n- **Type-related labels to choose from**: {{ provided }}.\n- **Labels found**: {{ applied }}." | ||
exit_type: success |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
17.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
buildscript { | ||
ext { | ||
// node modules | ||
supportLibVersion = '29.0.2' | ||
tagSoupVersion = '1.2.1' | ||
glideVersion = '3.7.0' | ||
picassoVersion = '2.5.2' | ||
robolectricVersion = '3.5.1' | ||
jUnitVersion = '4.12' | ||
jSoupVersion = '1.10.3' | ||
wordpressUtilsVersion = '3.3.0' | ||
espressoVersion = '3.0.1' | ||
|
||
// libs | ||
aztecVersion = 'v1.6.4' | ||
wordpressUtilsVersion = '3.3.0' | ||
|
||
// main | ||
androidxAppcompatVersion = '1.2.0' | ||
androidxCardviewVersion = '1.0.0' | ||
androidxGridlayoutVersion = '1.0.0' | ||
androidxLegacyVersion = '1.0.0' | ||
androidxRecyclerviewVersion = '1.1.0' | ||
|
||
// test | ||
junitAztecVersion = '4.13' // TODO: Align 'junit' versions. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ParaskP7 should be this version aligned with WordPress-Android or AztecEditor-Android? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just checking whether this question was answered in another thread, or is it still outstanding? If it's correct that we should use the WordPress-Android version, should we remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, it hasn't been answered yet. I assume aligning the versions is not critical and only a matter of keeping version consistency across libraries. In any case, I'll let @ParaskP7 and @oguzkocer share insights about this. In the meantime, I'll remove the |
||
} | ||
} | ||
|
||
|
@@ -34,6 +47,8 @@ List<String> dirs = [ | |
'template'] // boilerplate code that is generated by the sample template process | ||
|
||
android { | ||
namespace "org.wordpress.mobile.ReactNativeAztec" | ||
|
||
compileSdkVersion 33 | ||
|
||
defaultConfig { | ||
|
@@ -59,7 +74,7 @@ android { | |
androidTest.java.srcDirs = ['tests/src'] | ||
} | ||
|
||
lintOptions { | ||
lint { | ||
disable 'GradleCompatible' | ||
abortOnError false | ||
} | ||
|
@@ -85,12 +100,13 @@ dependencies { | |
api "org.wordpress.aztec:glide-loader:$aztecVersion" | ||
implementation "org.wordpress:utils:$wordpressUtilsVersion" | ||
|
||
implementation 'androidx.legacy:legacy-support-v4:1.0.0' | ||
implementation 'androidx.gridlayout:gridlayout:1.0.0' | ||
implementation 'androidx.cardview:cardview:1.0.0' | ||
implementation 'androidx.appcompat:appcompat:1.2.0' | ||
implementation 'androidx.recyclerview:recyclerview:1.1.0' | ||
testImplementation 'junit:junit:4.13' | ||
implementation "androidx.legacy:legacy-support-v4:$androidxLegacyVersion" | ||
implementation "androidx.gridlayout:gridlayout:$androidxGridlayoutVersion" | ||
implementation "androidx.cardview:cardview:$androidxCardviewVersion" | ||
implementation "androidx.appcompat:appcompat:$androidxAppcompatVersion" | ||
implementation "androidx.recyclerview:recyclerview:$androidxRecyclerviewVersion" | ||
|
||
testImplementation "junit:junit:$junitAztecVersion" | ||
|
||
def rnVersion = readReactNativeVersion('../../../package.json', 'devDependencies') | ||
println "react-native version for react-native-aztec: $rnVersion" | ||
|
@@ -105,7 +121,6 @@ project.afterEvaluate { | |
|
||
groupId 'org.wordpress-mobile.gutenberg-mobile' | ||
artifactId 'react-native-aztec' | ||
artifact tasks.named("androidSourcesJar") | ||
// version is set by 'publish-to-s3' plugin | ||
|
||
addDependenciesToPom(pom) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# Project-wide Gradle settings. | ||
|
||
org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError | ||
|
||
# React Native Aztec properties. | ||
|
||
android.useAndroidX=true | ||
android.enableJetifier=false | ||
shouldPublishBinary=false | ||
|
||
# React Native Aztec publishing settings. | ||
|
||
shouldPublishBinary=false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
17.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# Project-wide Gradle settings. | ||
|
||
org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError | ||
|
||
# React Native Bridge properties. | ||
|
||
android.useAndroidX=true | ||
android.enableJetifier=false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this file got automatically reformatted when updating with
trunk
and committing 🤔. I checked the format of other workflow files (example) and now it's matching it, so looks like a safe change to apply.cc @priethor as author of #52760
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, the linter didn't throw any errors, but it's true the spacing wasn't matching the other yaml files. Thanks for catching this, and feel free to push the changes! 👍