diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000000..795c6415f1f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,73 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. +orbs: + android: circleci/android@1.0.3 + codecov: codecov/codecov@1.2.0 + +jobs: + # Below is the definition of your job to build and test your app, you can rename and customize it as you want. + build-and-test: + # These next lines define the Android machine image executor: https://circleci.com/docs/2.0/executor-types/ + executor: + name: android/android-machine + + steps: + # Checkout the code as the first step. + - checkout + + # The next step will run the unit tests + - android/run-tests: + test-command: ./gradlew -Pcoverage -PfirebaseDisable testFullDebugUnitTest jacocoTestFullDebugUnitTestReport + + # Then start the emulator and run the Instrumentation tests! + # - android/start-emulator-and-run-tests: + # test-command: ./gradlew connectedDebugAndroidTest + # system-image: system-images;android-25;google_apis;x86 + + # And finally run the release build + # - run: + # name: Assemble release build + # command: | + # ./gradlew assembleRelease + - codecov/upload: + file: './app/build/jacoco/jacoco.xml' + - codecov/upload: + file: './automation/build/jacoco/jacoco.xml' + - codecov/upload: + file: './combo/build/jacoco/jacoco.xml' + - codecov/upload: + file: './core/build/jacoco/jacoco.xml' + - codecov/upload: + file: './dana/build/jacoco/jacoco.xml' + - codecov/upload: + file: './danar/build/jacoco/jacoco.xml' + - codecov/upload: + file: './danars/build/jacoco/jacoco.xml' + - codecov/upload: + file: './database/build/jacoco/jacoco.xml' + - codecov/upload: + file: './insight/build/jacoco/jacoco.xml' + - codecov/upload: + file: './medtronic/build/jacoco/jacoco.xml' + - codecov/upload: + file: './omnipod-common/build/jacoco/jacoco.xml' + - codecov/upload: + file: './omnipod-dash/build/jacoco/jacoco.xml' + - codecov/upload: + file: './omnipod-eros/build/jacoco/jacoco.xml' + - codecov/upload: + file: './rileylink/build/jacoco/jacoco.xml' + - codecov/upload: + file: './wear/build/jacoco/jacoco.xml' + +workflows: + # Below is the definition of your workflow. + # Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above. + # CircleCI will run this workflow on every commit. + # For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows + dotests: + jobs: + - build-and-test \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..4ce4a9be355 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +root = true + + +[*{kt,kts}] +disabled_rules=no-wildcard-imports \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 00000000000..665cb66fba2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,19 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + +Reporting bugs +-------------- +- **Note the precise time the problem occurred** and describe the circumstances and steps that caused + the problem +- Note the Build version (found in the About dialog in the app, when pressing the three dots in the + upper-right corner). +- Obtain the app's log files, which can be found on the phone in + _/storage/emulated/0/Android/data/info.nightscout.androidaps/_ + See https://androidaps.readthedocs.io/en/latest/Usage/Accessing-logfiles.html +- Open an issue at https://github.com/nightscout/AndroidAPS/issues/new diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000000..23ab6f030d0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: +- package-ecosystem: gradle + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 + target-branch: dev diff --git a/.gitignore b/.gitignore index 961dd40194c..4b311a11235 100644 --- a/.gitignore +++ b/.gitignore @@ -2,15 +2,15 @@ .gradle /local.properties .DS_Store +*/jacoco.exec /build /captures *.apk build/ +!.idea/dictionaries/project-dictionary.xml .idea/* !.idea/codeStyles/ full/ -debug/ -release/ app/com.crashlytics.settings.json app/session_analytics.tap .project diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 3542887facb..03c1a4dff82 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,27 +1,13 @@