-
Notifications
You must be signed in to change notification settings - Fork 243
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
Add safer intents sample #162
base: main
Are you sure you want to change the base?
Conversation
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.
@sabs231 You should add more inline comments to explain the code
@@ -34,7 +34,7 @@ android { | |||
|
|||
defaultConfig { | |||
applicationId = "com.example.platform.app" | |||
minSdk = 21 |
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're not looking to upgrade our minSdk to 24. You should use RequiresApi
annotation around your sample instead
} | ||
@Composable | ||
fun HelloAndroidScreen() { | ||
Text(text = "Hello Android!") |
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.
Inline this function directly inside the Surface
composable
<activity android:name=".SaferIntentsActivity" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="com.example.platform.security.intents.MY_ACTION" /> |
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.
Without this intent action filter, will this activity be launched with the NULL
intent? If yes, explain it in comments
Update the timeout to check if the test can be run
Update some github action version to latest (older are being deprecated) Update min api level to 27
Changing emulator host because x86_64 does not run on arm64
Update api level to 31
Move the base api level to 31
No description provided.