-
Notifications
You must be signed in to change notification settings - Fork 206
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
[feature] Implement License Screen #883
[feature] Implement License Screen #883
Conversation
e7dda6e
to
4a0b1c0
Compare
@@ -1,7 +1,7 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<resources> | |||
|
|||
<style name="Theme.KaigiApp" parent="android:Theme.Material.Light.NoActionBar"> | |||
<style name="Theme.KaigiApp" parent="Theme.AppCompat.Light.NoActionBar"> |
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 thought it is ok to have this theme 👀 )
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.
let me check with revert ver 🙇
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 don't have to change the theme for entire the app.
I can just update the theme for the Activities
which generate by the plugin.
gradle/libs.versions.toml
Outdated
|
||
# etc | ||
|
||
ossLicenses = { module = "com.google.android.gms:play-services-oss-licenses", version.ref = "ossLicenses" } | ||
ossLicensesPlugin = { module = "com.google.android.gms:oss-licenses-plugin", version.ref = "ossLicensesPlugin" } |
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.
How about placing these dependencies below the dependencies for tests?
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.
That's make sense. thank you for suggestion!
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 moved to below of tests
build.gradle.kts
Outdated
dependencies { | ||
classpath(libs.ossLicensesPlugin) | ||
} |
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.
Please refer here to add this plugin.
https://github.com/DroidKaigi/conference-app-2023/blob/main/build-logic/build.gradle.kts
Or there is a blog reading this. You can refer to it 👍
https://sys1yagi.hatenablog.com/entry/2023/08/17/151450
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.
Thank you for recommendations!
I'm not family with this, so much helpful 🙇
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 created the Plugin for OSS license plugin.
also It applied.
Hi @fumiya-kume! Codes seem to be unformatted. To resolve this issue, please run |
@@ -28,6 +28,14 @@ | |||
</intent-filter> | |||
</activity> | |||
|
|||
<activity |
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.
📝 Specify the AppCompat theme for the OSS license plugin
's screen
@@ -98,6 +98,10 @@ gradlePlugin { | |||
id = "droidkaigi.primitive.detekt" | |||
implementationClass = "io.github.droidkaigi.confsched2023.primitive.DetektPlugin" | |||
} | |||
register("oss-licenses") { | |||
id = "droidkaigi.primitive.osslicenses" |
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! We might have to use droidkaigi.primitive.*android*.osslicenses
because the license list plugin is based on AGP plugin.
Almost LGTM! Thanks |
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.
After verifying, the license displayed correctly in the release environment, but it did not function properly in the debug environment.
If this is the intended behavior, then I believe it's fine.
Thank you for contributing!!👍
I don't have much experience with the plug-in, then I'd hear other person's opinion if there. I other hand, I confirmed that the behavior already. |
@momomomo111 oss-licenses-plugin-v0.10.5 and later are only visible in release builds. |
Issue
Overview (Required)
Title of the screen
I created the issue #938
TODO
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
Movie of License screen behavior
license-qa.webm