-
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
Closed
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
b81dc16
added ooni run v2 in experimental mode
aanorbel 64a54cf
updated app to support OONI Run V2 links
aanorbel 0e1a351
updated app to cache test descriptors
aanorbel b12636a
updated app to cache test descriptors
aanorbel 57c3bba
updated app to use string resources in dashboard and overview instead…
aanorbel ba1076e
added result row
aanorbel 6ec5283
updated result list and ooni run screen
aanorbel cabac91
update with change in cli interface
aanorbel b8dedf6
updated run activity to install link and navigate to overview activity
aanorbel d996736
modified list on ooni run activity to display inputs for nettests
aanorbel 22cf159
Updates recycler view for inputs
aanorbel c19ac4f
Updates OONI Run V2 to install links even when tests are already runn…
aanorbel 1158fb0
Merge branch 'master' of github.com:ooni/probe-android into xoonirun
aanorbel 92950eb
Merge branch 'master' of github.com:ooni/probe-android into xoonirun
aanorbel 44a3d4f
Merge branch 'xoonirun' of github.com:ooni/probe-android into xoonirun
aanorbel f6e3782
Adds support for icons and a default icons when the Ooni Run V2 link …
aanorbel e8f2307
Updated Icon color for OONI Run V2 Icons
aanorbel 09c61e0
Merge branch 'chore/running-activity-upgrade-to-view-binding' of gith…
aanorbel a94376f
Updated `RunningActivity` to show Icon of OONI Run V2 link
aanorbel 4d7c065
Merge branch 'chore/upgdate-ooni-run-activity-to-viewbinding' of gith…
aanorbel 23d541f
Merge branch 'chore/overview-activity-upgrade-to-view-binding' of git…
aanorbel 781c70d
Updated Result to contain reference to the descriptor.
aanorbel 8c13a21
Added support for translation
aanorbel e4989af
Satisfied constructor dependency for testsuites in test package
aanorbel 003a9c5
Add measurement count to run item
aanorbel 221d446
Start implementation of autorun and auto update
aanorbel a981699
add support for item update by swipe to refresh
aanorbel c6d1f43
Updated logic for automatically updating and approved updated
aanorbel b82cc0b
Merge branch 'master' of github.com:ooni/probe-android into xoonirun
aanorbel ca44991
Merge branch 'xoonirun' of github.com:ooni/probe-android into oonirun…
aanorbel ea8c3da
Updated `OoniRunActivity` to fetch v2 descriptor async
aanorbel 0e3dc3c
Merge branch 'xoonirun' of github.com:ooni/probe-android into oonirun…
aanorbel 2d7d8b7
Updated xml to remove duplicate tools
aanorbel ebeca76
Updates UI on refresh complete
aanorbel f41142a
Updated ViewModel
aanorbel 6f85191
Merge pull request #599 from ooni/oonirun/add-autorun-and-auto-update…
aanorbel 7ab812a
- Changed theme for `OverviewActivity`, `ResultDetailActivity`, `Meas…
aanorbel f99de74
Adds default property values for `color` and `animation` if backend d…
aanorbel b9a03b3
removed default animation
aanorbel 75d166b
Modified scheduling of workers.
aanorbel 04eaff1
Updated scheduling of workers
aanorbel 368b509
Merge pull request #601 from ooni/oonirun/add-support-for-color-and-a…
aanorbel c0d34c2
Adds ooni run id to anotations
aanorbel c152544
Merge pull request #620 from ooni/oonirun/add-run-id-to-anotations
aanorbel 21e5ebb
Merge branch 'master' of github.com:ooni/probe-android into xoonirun
aanorbel fa156e8
Merge branches 'xoonirun' and 'master' of github.com:ooni/probe-andro…
aanorbel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/src/main/java/org/openobservatory/ooniprobe/domain/MapConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.openobservatory.ooniprobe.domain; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.reflect.TypeToken; | ||
import com.raizlabs.android.dbflow.converter.TypeConverter; | ||
|
||
import java.lang.reflect.Type; | ||
import java.util.HashMap; | ||
|
||
@com.raizlabs.android.dbflow.annotation.TypeConverter | ||
public class MapConverter extends TypeConverter<String, HashMap> { | ||
@Override | ||
public String getDBValue(HashMap model) { | ||
return new Gson().toJson(model); | ||
} | ||
|
||
@Override | ||
public HashMap getModelValue(String json) { | ||
Gson gson = new Gson(); | ||
Type type = new TypeToken<HashMap<String, String>>() { | ||
}.getType(); | ||
HashMap<String, String> map = gson.fromJson(json, type); | ||
return map; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.