-
Notifications
You must be signed in to change notification settings - Fork 272
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
Upgrade to AGP 8.5.2 #524
base: master
Are you sure you want to change the base?
Upgrade to AGP 8.5.2 #524
Conversation
( |
Android/build.gradle
Outdated
@@ -1,7 +1,7 @@ | |||
dependencyLocking { | |||
lockAllConfigurations() |
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.
We still need to lock the dependencies, this might lead to a large amount of changes.
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.
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.
Thanks for the update. I have left some comments.
Android/app/build.gradle
Outdated
implementation 'com.google.firebase:firebase-crashlytics:18.2.6' | ||
implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.6' | ||
implementation 'com.google.firebase:firebase-config:21.0.1' | ||
implementation 'com.google.firebase:firebase-analytics:22.1.2' // Last version for API <19 |
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.
I think this comment is not accurate any more?
implementation 'com.google.firebase:firebase-analytics:22.1.2' // Last version for API <19 | |
implementation 'com.google.firebase:firebase-analytics:22.1.2' |
buildFeatures { | ||
buildConfig = true | ||
} |
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.
Are we using it anywhere in the code? If not, I think we can remove this.
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.
yes, we are actually using it (code:
import app.intra.BuildConfig; |
but, we could change the implementation, instead of using BuildConfig
. like, differentiate LogWrapper
for release and debug (src/debug/
) mode. wdyt?
android.nonTransitiveRClass=false | ||
android.nonFinalResIds=false |
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.
Are these two settings necessary?
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.
well, starting Android Gradle Plugin (AGP) version 8.0 and above, the default value for:
android.nonTransitiveRClass
& android.nonFinalResIds
are true.
android.nonTransitiveRClass
=> each module's R class only includes resources defined within that specific module. It does not include resources from its dependencies.android.nonFinalResIds
=> means that resource IDs are generated as non-final by default, allowing for potential modifications at runtime.
Also, I don't think we need to change how it's done, since I'm worried it might mess up other stuff.
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.
my suggestion is, if we're going to change these, we should do it in a separate PR. wdyt?
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.
Bagus dan terima kasih untuk amati segalanya mungkin tak bisa saya dalami dan saya juga pengguna baru tolong lah beri tunjuk ajar
Compile Success
Changes