-
Notifications
You must be signed in to change notification settings - Fork 303
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
Conversation
@@ -0,0 +1,48 @@ | |||
plugins { |
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.
Is there a reason the file format is not .kts
like the rest of the files?
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.
done
val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
assertEquals("com.example.foodallergy", appContext.packageName) | ||
} | ||
} |
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.
nit: add empty new line below
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.
deleted this file.
codelabs/datacapture/app/src/main/java/com/example/foodallergy/MainActivity.kt
Outdated
Show resolved
Hide resolved
Codecov Report
@@ 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.
|
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.
@omarismail94 this is done - ptal! thanks
val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
assertEquals("com.example.foodallergy", appContext.packageName) | ||
} | ||
} |
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.
deleted this file.
codelabs/datacapture/app/src/main/java/com/example/foodallergy/MainActivity.kt
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,48 @@ | |||
plugins { |
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.
done
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.
LGTM with just a couple of nits! Nice changes btw
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 |
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.
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?
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 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.
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
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.