Skip to content

Commit

Permalink
Merge branch 'release-2.5.8'
Browse files Browse the repository at this point in the history
* release-2.5.8: (58 commits)
  Update versionCode and versionName
  Sync translations with POEditor
  README: Fix typo
  README: use gitlab CI badge
  Delete circle.yml.
  Add gitlab-ci.yml
  Use SupportFragmentManager for Fragments that are launched from another Fragment.
  Update README
  Update Gradle plugin to 3.1.4
  Update Kotlin version to 1.2.60
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Update strings_translatable.xml (POEditor.com)
  Full and short description in Italian (#129)
  ...
  • Loading branch information
AlvaroBrey committed Aug 24, 2018
2 parents 6f0dcf6 + 7385379 commit 0bca126
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 76 deletions.
28 changes: 28 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
image: circleci/android:api-27-alpha

before_script:
- export GRADLE_USER_HOME="$(pwd)/.gradle"
- export GRADLE_OPTS='-Dorg.gradle.daemon=false'

cache:
paths:
- .gradle

stages:
- build

build:
stage: build
script:
- ./gradlew assembleCiDebug
- ./gradlew testCiDebugUnitTest
- ./gradlew jacocoTestReportCiDebug
- awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, "instructions covered"; print 100*covered/instructions, "% covered" }' Calendula/build/reports/jacoco/ciDebug/jacoco.csv
- if grep -r '* Created by' Calendula/src/; then exit 1; fi
artifacts:
paths:
- Calendula/build/outputs/
- Calendula/build/reports/tests/
- Calendula/build/test-results/
- Calendula/build/reports/jacoco/
expire_in: 1 week
4 changes: 2 additions & 2 deletions Calendula/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 38
versionName "2.5.7"
versionCode 39
versionName "2.5.8"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
applicationId "es.usc.citius.servando.calendula"
multiDexEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void showStockDialog(int ref) {
//.setLabelText(ref == DIALOG_STOCK_ADD ? "Increase stock by" : "Decrease stock by")
.setDecimalVisibility(NumberPicker.VISIBLE)
.setPlusMinusVisibility(NumberPicker.INVISIBLE)
.setFragmentManager(getChildFragmentManager())
.setFragmentManager(getActivity().getSupportFragmentManager())
.setTargetFragment(this).setReference(ref)
.setStyleResId(R.style.BetterPickersDialogFragment_Calendula);
npb.show();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void onClick(View v) {
timePickerFragment.show(getActivity().getSupportFragmentManager(), "TIME_PICKER_FRAGMENT");
} else {
TimePickerBuilder tpb = new TimePickerBuilder()
.setFragmentManager(getChildFragmentManager())
.setFragmentManager(getActivity().getSupportFragmentManager())
.setStyleResId(R.style.BetterPickersDialogFragment_Light);
tpb.addTimePickerDialogHandler(RoutineCreateOrEditFragment.this);
tpb.show();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void onClick(View v) {
new RadialTimePickerDialogFragment()
.setOnTimeSetListener(ScheduleTimetableFragment.this)
.setStartTime(time.getHourOfDay(), time.getMinuteOfHour());
timePickerDialog.show(getChildFragmentManager(), "111");
timePickerDialog.show(getActivity().getSupportFragmentManager(), "111");
}
});

Expand Down Expand Up @@ -539,7 +539,7 @@ void showIntervalPickerDIalog() {
.setMinNumber(BigDecimal.ONE)
.setMaxNumber(BigDecimal.valueOf(31))
.setPlusMinusVisibility(NumberPicker.INVISIBLE)
.setFragmentManager(getChildFragmentManager())
.setFragmentManager(getActivity().getSupportFragmentManager())
.setTargetFragment(this).setReference(REF_DIALOG_ROUTINE_INTERVAL)
.setStyleResId(R.style.BetterPickersDialogFragment_Calendula);
npb.show();
Expand All @@ -551,7 +551,7 @@ void showHourlyPickerDIalog() {
.setMinNumber(1)
.setMaxNumber(24)
.setPlusMinusVisibility(NumberPicker.INVISIBLE)
.setFragmentManager(getChildFragmentManager())
.setFragmentManager(getActivity().getSupportFragmentManager())
.setTargetFragment(this)
.setReference(REF_DIALOG_HOURLY_INTERVAL)
.setStyleResId(R.style.BetterPickersDialogFragment_Calendula);
Expand Down Expand Up @@ -592,7 +592,7 @@ void showRecurrencePickerDialog() {

dialog.setArguments(b);
dialog.setOnRecurrenceSetListener(this);
dialog.show(getChildFragmentManager(), "REC");
dialog.show(getActivity().getSupportFragmentManager(), "REC");
}

void addTimetableEntries(int timesPerDay, List<Routine> routines) {
Expand Down Expand Up @@ -1018,7 +1018,7 @@ public void onClick(View v) {
.setMinNumber(BigDecimal.ONE)
.setMaxNumber(BigDecimal.valueOf(100D))
.setPlusMinusVisibility(NumberPicker.INVISIBLE)
.setFragmentManager(getChildFragmentManager())
.setFragmentManager(getActivity().getSupportFragmentManager())
.setTargetFragment(ScheduleTimetableFragment.this)
.setReference(REF_DIALOG_CYCLE_DAYS)
.setStyleResId(R.style.BetterPickersDialogFragment_Calendula);
Expand All @@ -1034,7 +1034,7 @@ public void onClick(View v) {
.setMinNumber(BigDecimal.ONE)
.setMaxNumber(BigDecimal.valueOf(100D))
.setPlusMinusVisibility(NumberPicker.INVISIBLE)
.setFragmentManager(getChildFragmentManager())
.setFragmentManager(getActivity().getSupportFragmentManager())
.setTargetFragment(ScheduleTimetableFragment.this)
.setReference(REF_DIALOG_CYCLE_REST)
.setStyleResId(R.style.BetterPickersDialogFragment_Calendula);
Expand Down
4 changes: 4 additions & 0 deletions Calendula/src/main/res/values-de/strings_translatable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -539,4 +539,8 @@ Wollen Sie nun die neue Datenbank installieren?
<string name="months">"Monate"</string>
<string name="year">"Jahr"</string>
<string name="years">"Jahre"</string>
<string name="channel_meds_name">"Medikamente"</string>
<string name="channel_meds_description">"Benachrichtigungen bzgl. Medikamente, etwa Einnahmeerinnerungen."</string>
<string name="channel_default_name">"Standard"</string>
<string name="channel_default_description">"Sonstige Benachrichtigungen."</string>
</resources>
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![](https://tec.citius.usc.es/calendula/github-assets/calendula_promo_google_play.png)
# Calendula [![CircleCI](https://circleci.com/gh/citiususc/calendula/tree/develop.svg?style=shield)](https://circleci.com/gh/citiususc/calendula/tree/develop)
# Calendula [![Gitlab CI](https://gitlab.com/calendula-ci/calendula/badges/develop/build.svg)](https://gitlab.com/calendula-ci/calendula/pipelines)

Calendula is an Android assistant for personal medication management, aimed at those who have trouble following their medication regimen, forget to take their drugs, or have complex schedules that are difficult to remember.

Expand All @@ -23,8 +23,8 @@ These instructions will get you a copy of the project up and running on your loc
We use [Android Studio](https://developer.android.com/studio/index.html) (the official Android IDE) for development, so we recommend it as the IDE to use in your development environment. Once you install Android Studio, you can use the Android SDK Manager to obtain the SDK tools, platforms, and other components you will need to start developing. The most important are:

* Android SDK Tools and Android SDK Platform-tools (upgrade to their last versions is usually a good idea).
* Android SDK Build-Tools 26.0.2.
* Android 7.1 (API Level 25) SDK Platform.
* Android SDK Build-Tools 27.0.3.
* Android 8.1 (API Level 27) SDK Platform.
* Android Support Repository

You can also install other packages like emulators for running the app, if you don't have or don't want to use a real device. The minimum supported Android version is *4.1, Jelly Bean (API level 16).*
Expand Down Expand Up @@ -100,7 +100,7 @@ If you're not a developer but you want to help, don't worry! You can help [with

## License

Copyright 2016 CITIUS - USC
Copyright 2018 CITIUS - USC

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

ext {
kotlin_version = '1.2.51'
kotlin_version = '1.2.60'
libVersions = [
android: [
support: '27.1.1'
Expand All @@ -15,7 +15,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.11.0'
}
Expand Down
60 changes: 0 additions & 60 deletions circle.yml

This file was deleted.

0 comments on commit 0bca126

Please sign in to comment.