Skip to content
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

Initial version of the SDC lib codelab #1429

Merged
merged 9 commits into from
Jun 4, 2022
Merged

Conversation

jingtang10
Copy link
Collaborator

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Description
This is initially developed as part of the digital square webinar: https://github.com/openhie/FoodAllergy-webinar/tree/master/android

Alternative(s) considered
NA

Type
Documentation

Screenshots (if applicable)

Checklist

  • I have read and acknowledged the Code of conduct.
  • I have read the Contributing page.
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
  • I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

codelabs/datacapture/.gitignore Outdated Show resolved Hide resolved
@@ -0,0 +1,48 @@
plugins {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason the file format is not .kts like the rest of the files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

codelabs/datacapture/app/build.gradle Outdated Show resolved Hide resolved
codelabs/datacapture/app/.gitignore Outdated Show resolved Hide resolved
codelabs/datacapture/app/proguard-rules.pro Outdated Show resolved Hide resolved
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.foodallergy", appContext.packageName)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add empty new line below

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted this file.

codelabs/datacapture/app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #1429 (302f983) into master (4bc0da0) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1429   +/-   ##
=========================================
  Coverage     85.68%   85.68%           
  Complexity      716      716           
=========================================
  Files           149      149           
  Lines         10765    10765           
  Branches        858      858           
=========================================
  Hits           9224     9224           
  Misses         1100     1100           
  Partials        441      441           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4bc0da0...302f983. Read the comment docs.

Copy link
Collaborator Author

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omarismail94 this is done - ptal! thanks

codelabs/datacapture/.gitignore Outdated Show resolved Hide resolved
codelabs/datacapture/app/.gitignore Outdated Show resolved Hide resolved
codelabs/datacapture/app/build.gradle Outdated Show resolved Hide resolved
codelabs/datacapture/app/proguard-rules.pro Outdated Show resolved Hide resolved
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.foodallergy", appContext.packageName)
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted this file.

codelabs/datacapture/app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
@@ -0,0 +1,48 @@
plugins {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@omarismail94 omarismail94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with just a couple of nits! Nice changes btw

}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason we dont use Java 11 as the base? I am assume it has to do with old Android versions - is that the case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have been using java8 for the main project. There just isn't a need to upgrade to java11 yet. I think java8 support was only introduced in Android studio recently. See "Use Java 8 language features and APIs  |  Android Developers" https://developer.android.com/studio/write/java8-support

I suggest we address this issue separately.

@jingtang10 jingtang10 enabled auto-merge (squash) June 4, 2022 17:44
@jingtang10 jingtang10 merged commit ec18bba into google:master Jun 4, 2022
@jingtang10 jingtang10 deleted the codelabs branch June 6, 2022 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants