Skip to content

Commit

Permalink
Merge branch 'master' of github.com:google/android-fhir into 2639-asy…
Browse files Browse the repository at this point in the history
…nc-process-for-get-questionnaire-pages
  • Loading branch information
FikriMilano committed Nov 5, 2024
2 parents 4af8cc9 + 6977691 commit 68445e0
Show file tree
Hide file tree
Showing 150 changed files with 6,869 additions and 1,705 deletions.
9 changes: 1 addition & 8 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
# This file lists people who get automatically added as Reviewers for Pull Requests.
#
# Note that we intentionally do NOT just include all committers here by using @google/android-fhir,
# nor were we able to get it working using a group such as @google/android-fhir-reviewers;
# details about why are described on https://github.com/google/android-fhir/issues/2320
# and https://github.com/google/android-fhir/pull/2536.
#
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

# These people for *ALL* Pull Requests:
* @aditya-07 @jingtang10 @MJ1998 @santosh-pingle
* @google/android-fhir-reviewers

# These for anything documentation related:
docs/* @vorburger
11 changes: 0 additions & 11 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ object Dependencies {
const val playServicesLocation =
"com.google.android.gms:play-services-location:${Versions.playServicesLocation}"

const val androidFhirGroup = "com.google.android.fhir"
const val androidFhirEngineModule = "engine"
const val androidFhirKnowledgeModule = "knowledge"
const val androidFhirCommon = "$androidFhirGroup:common:${Versions.androidFhirCommon}"
const val androidFhirEngine =
"$androidFhirGroup:$androidFhirEngineModule:${Versions.androidFhirEngine}"
const val androidFhirKnowledge = "$androidFhirGroup:knowledge:${Versions.androidFhirKnowledge}"

const val apacheCommonsCompress =
"org.apache.commons:commons-compress:${Versions.apacheCommonsCompress}"

Expand Down Expand Up @@ -131,9 +123,6 @@ object Dependencies {
const val xmlUnit = "org.xmlunit:xmlunit-core:${Versions.xmlUnit}"

object Versions {
const val androidFhirCommon = "0.1.0-alpha05"
const val androidFhirEngine = "0.1.0-beta05"
const val androidFhirKnowledge = "0.1.0-alpha03"
const val apacheCommonsCompress = "1.21"
const val desugarJdkLibs = "2.0.3"
const val caffeine = "2.9.1"
Expand Down
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/Releases.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ object Releases {

object DataCapture : LibraryArtifact {
override val artifactId = "data-capture"
override val version = "1.1.0"
override val version = "1.2.0"
override val name = "Android FHIR Structured Data Capture Library"
}

object Workflow : LibraryArtifact {
override val artifactId = "workflow"
override val version = "0.1.0-alpha04"
override val version = "0.1.0-beta01"
override val name = "Android FHIR Workflow Library"
}

Expand All @@ -81,7 +81,7 @@ object Releases {

object Knowledge : LibraryArtifact {
override val artifactId = "knowledge"
override val version = "0.1.0-alpha03"
override val version = "0.1.0-beta01"
override val name = "Android FHIR Knowledge Manager Library"
}

Expand Down
149 changes: 149 additions & 0 deletions catalog/src/main/assets/component_per_question_custom_style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"resourceType": "Questionnaire",
"item": [
{
"linkId": "1",
"text": "Custom style 1",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_1"
}
]
}
]
},
{
"linkId": "2",
"text": "Custom style 2",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_2"
}
]
}
]
},
{
"linkId": "3",
"text": "Custom style 3",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_3"
}
]
}
]
},
{
"linkId": "4",
"text": "Custom style 4",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_4"
}
]
}
]
},
{
"linkId": "5",
"text": "Custom style 5",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_5"
}
]
}
]
},
{
"linkId": "6",
"text": "Custom style 6",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_6"
}
]
}
]
},
{
"linkId": "7",
"text": "Custom style 7",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_7"
}
]
}
]
},
{
"linkId": "8",
"text": "Custom style 8",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_8"
}
]
}
]
},
{
"linkId": "9",
"text": "Custom style 9",
"type": "display",
"extension": [
{
"url": "https://github.com/google/android-fhir/tree/master/datacapture/android-style",
"extension": [
{
"url": "question_text_view",
"valueString": "CustomStyle_9"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ class ComponentListViewModel(application: Application, private val state: SavedS
R.string.component_name_location_widget,
"component_location_widget.json",
),
QUESTION_ITEM_CUSTOM_STYLE(
R.drawable.text_format_48dp,
R.string.component_name_per_question_custom_style,
"component_per_question_custom_style.json",
),
}

val viewItemList =
Expand All @@ -177,6 +182,7 @@ class ComponentListViewModel(application: Application, private val state: SavedS
ViewItem.ComponentItem(Component.ITEM_ANSWER_MEDIA),
ViewItem.ComponentItem(Component.INITIAL_VALUE),
ViewItem.ComponentItem(Component.LOCATION_WIDGET),
ViewItem.ComponentItem(Component.QUESTION_ITEM_CUSTOM_STYLE),
)

fun isComponent(context: Context, title: String) =
Expand Down
4 changes: 2 additions & 2 deletions catalog/src/main/res/drawable/ic_location_on.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="128dp"
android:height="128dp"
android:width="64dp"
android:height="64dp"
android:tint="#1A73E8"
android:viewportWidth="24"
android:viewportHeight="24"
Expand Down
15 changes: 15 additions & 0 deletions catalog/src/main/res/drawable/text_format_48dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:height="64dp"
android:viewportHeight="960"
android:viewportWidth="960"
android:width="64dp"
>

<path
android:fillColor="#1A73E8"
android:pathData="M200,760v-60h560v60L200,760ZM276,600 L451,160h58l175,440h-55l-45,-119L376,481l-45,119h-55ZM393,436h174l-85,-222h-4l-85,222Z"
/>

</vector>
36 changes: 36 additions & 0 deletions catalog/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<color name="custom_style_primary_100">#000000</color>
<color name="custom_style_primary_200">#0C0A20</color>
<color name="custom_style_primary_300">#201441</color>
<color name="custom_style_primary_400">#341F63</color>
<color name="custom_style_primary_500">#482A85</color>
<color name="custom_style_primary_600">#5C35A6</color>
<color name="custom_style_primary_700">#7F5FBA</color>
<color name="custom_style_primary_800">#A289CF</color>
<color name="custom_style_primary_900">#C5B3E3</color>
<color name="custom_style_on_primary_100">#FFFFFF</color>
<color name="custom_style_on_primary_200">#FFFFFF</color>
<color name="custom_style_on_primary_300">#FFFFFF</color>
<color name="custom_style_on_primary_400">#FFFFFF</color>
<color name="custom_style_on_primary_500">#FFFFFF</color>
<color name="custom_style_on_primary_600">#FFFFFF</color>
<color name="custom_style_on_primary_700">#FFFFFF</color>
<color name="custom_style_on_primary_800">#000000</color>
<color name="custom_style_on_primary_900">#000000</color>
</resources>
22 changes: 22 additions & 0 deletions catalog/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,26 @@
<color name="onSurfaceVariant_neutral_variant_80">#C4C7C5</color>

<color name="outline_neutral_variant_60">#8E918F</color>

<!-- colors for custom style example -->
<color name="custom_style_primary_900">#7A9FFF</color>
<color name="custom_style_primary_800">#668FFF</color>
<color name="custom_style_primary_700">#5581FF</color>
<color name="custom_style_primary_600">#476FFF</color>
<color name="custom_style_primary_500">#3B5CFF</color>
<color name="custom_style_primary_400">#3249FF</color>
<color name="custom_style_primary_300">#2936FF</color>
<color name="custom_style_primary_200">#2024FF</color>
<color name="custom_style_primary_100">#1816FF</color>
<color name="custom_style_on_primary">#FFFFFF</color>
<color name="custom_style_on_primary_900">#FFFFFF</color>
<color name="custom_style_on_primary_800">#FFFFFF</color>
<color name="custom_style_on_primary_700">#FFFFFF</color>
<color name="custom_style_on_primary_600">#FFFFFF</color>
<color name="custom_style_on_primary_500">#FFFFFF</color>
<color name="custom_style_on_primary_400">#FFFFFF</color>
<color name="custom_style_on_primary_300">#FFFFFF</color>
<color name="custom_style_on_primary_200">#FFFFFF</color>
<color name="custom_style_on_primary_100">#FFFFFF</color>

</resources>
3 changes: 3 additions & 0 deletions catalog/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
<string name="component_name_repeated_group">Repeated Group</string>
<string name="component_name_attachment">Attachment</string>
<string name="component_name_location_widget">Location Widget</string>
<string
name="component_name_per_question_custom_style"
>Per question custom style</string>
<string name="layout_name_default_text">Default</string>
<string name="layout_name_paginated">Paginated</string>
<string name="layout_name_review">Review</string>
Expand Down
Loading

0 comments on commit 68445e0

Please sign in to comment.