-
Notifications
You must be signed in to change notification settings - Fork 46
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
Feat: OONI Run v2 API Bootstrap #582
Conversation
…doesnt provide one
…ub.com:ooni/probe-android into xoonirun
…ub.com:ooni/probe-android into xoonirun
…hub.com:ooni/probe-android into xoonirun
viewHolder.name.setText(extra.getTestSuite().getTitle()); | ||
viewHolder.icon.setImageDrawable(viewHolder.itemView.getContext().getDrawable(extra.getTestSuite().getIconGradient())); | ||
viewHolder.icon.setColorFilter(viewHolder.itemView.getResources().getColor(R.color.color_gray7)); |
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.
Updates the result row to display Icon provided by the descriptor.
return (icon > 0) ? icon : R.drawable.ooni_empty_state; | ||
} | ||
|
||
public int getIconGradient() { | ||
if(Build.VERSION.SDK_INT <= Build.VERSION_CODES.M){ | ||
return icon; | ||
return (icon > 0) ? icon : R.drawable.ooni_empty_state; | ||
}else{ | ||
return icon_24; | ||
return (icon_24 > 0) ? icon_24 : R.drawable.ooni_empty_state; |
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.
Set default drawable for descriptors that dont provide one.
## Importing Icons | ||
|
||
```shell | ||
./scripts/import_icons.sh ~/Downloads/react-icons-xmls | ||
``` |
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.
Import xmls from https://github.com/ooni/react-icons/ Build assets https://github.com/ooni/react-icons/actions/runs/5749585726
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.
Related to #598
…/add-autorun-and-auto-update-options
…/add-autorun-and-auto-update-options
…-options Feat Run V2: Implement auto run and auto update
…urementDetailActivity` - Customize xml with new attributes for color and animation
…oesnt provide any
…nimation Feat OONI Run V2: Add support for `color` and `animation`
Adds `ooni_run_link_id` to annotations
Fixes: ooni/probe#2471
CLI : ooni/probe-cli#1176
Testing Guide
Ensure OONI Run v1 is working properly.
OONI Run v2 tests
WebConnectivity
testAutomatic Updates
for the descriptorAutomated testing
for the descriptorInstall
Test overview screen
Test overview screen
Dashboard screen
Test result screen
shows a row with the test name.