5 Commits
Author SHA1 Message Date
handte f2c98815ff Release 1.0.23
LocationBasedServices/mowesta/pipeline/head This commit looks good
2021-12-14 11:21:13 +01:00
handte 99abe5e86e Change library for Sepehr, change widget for Bijan.
LocationBasedServices/mowesta/pipeline/head This commit looks good
2021-12-10 16:31:52 +01:00
handte 55a8c55aba Upgrade Android plugin. 2021-12-10 12:25:37 +01:00
handte 16c31df0bf Add workaround for design issue. 2021-12-10 12:01:52 +01:00
handte 10feb5d6aa Update to 1.0.23-SNAPSHOT.
LocationBasedServices/mowesta/pipeline/head This commit looks good
2021-12-01 15:14:11 +01:00
7 changed files with 21 additions and 22 deletions
Vendored
+1 -1
View File
@@ -49,7 +49,7 @@ node {
if (env.BRANCH_NAME == "master" && release) {
echo "Deploying to production server ..."
withCredentials([sshUserPrivateKey(credentialsId: "mowesta-server-key", keyFileVariable: "KEYFILE")]) {
sh 'scp -i $KEYFILE site-ear/build/libs/site-ear-' + version + '.ear wildfly@apps-pro.nes.uni-due.de:/opt/wildfly-21-mowesta/standalone/deployments/mowesta.ear'
// sh 'scp -i $KEYFILE site-ear/build/libs/site-ear-' + version + '.ear wildfly@apps-pro.nes.uni-due.de:/opt/wildfly-21-mowesta/standalone/deployments/mowesta.ear'
sh 'scp -i $KEYFILE android-app/build/outputs/apk/prod/release/*.apk wildfly@apps-pro.nes.uni-due.de:/opt/android/mowesta/'
sh 'scp -i $KEYFILE android-app/build/outputs/bundle/prodRelease/*.aab wildfly@apps-pro.nes.uni-due.de:/opt/android/mowesta/'
}
+6 -6
View File
@@ -14,15 +14,15 @@ ext {
versionAndroidXPaging = '2.1.2'
versionAndroidXCard = '1.0.0'
versionAndroidXCoordinator = '1.1.0'
versionAndroidXConstraint = '2.1.0'
versionAndroidXConstraint = '2.1.2'
versionAndroidXNavigation = '2.3.5'
versionAndroidXLifecycle = '2.3.1'
versionAndroidXSecurity = '1.1.0-alpha03'
versionAndroidXLifecycle = '2.4.0'
versionAndroidXSecurity = '1.0.0'
versionAndroidXViewpager = '1.0.0'
versionGoogleMaterial = '1.4.0'
versionAndroidXSwipeRefresh = '1.1.0'
versionAndroidXWebkit = '1.4.0'
versionExoPlayer = '2.14.2'
versionExoPlayer = '2.16.1'
versionApp = project.version
}
@@ -95,12 +95,12 @@ configurations {
android {
compileSdkVersion 30
compileSdkVersion 31
defaultConfig {
applicationId "com.mowesta.android.app"
minSdkVersion 19
targetSdkVersion 30
versionCode 22
versionCode 23
versionName "${versionApp}"
buildConfigField "long", "BUILD_TIME", System.currentTimeMillis() + "L"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -8,7 +8,7 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.Observer;
import androidx.security.crypto.EncryptedFile;
import androidx.security.crypto.MasterKey;
import androidx.security.crypto.MasterKeys;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -281,9 +281,8 @@ public class FileStoreObserver<T> implements Observer<T> {
* be setup.
*/
@NonNull EncryptedFile getEncryptedFile() throws IOException, GeneralSecurityException {
MasterKey.Builder b = new MasterKey.Builder(context);
b.setKeyScheme(MasterKey.KeyScheme.AES256_GCM);
return new EncryptedFile.Builder(context, getFile(), b.build(),
String keySpec = MasterKeys.getOrCreate(MasterKeys.AES256_GCM_SPEC);
return new EncryptedFile.Builder(getFile(), context, keySpec,
EncryptedFile.FileEncryptionScheme.AES256_GCM_HKDF_4KB).build();
}
@@ -92,11 +92,6 @@ public class MeasureWidgetProvider extends AbstractWidgetProvider {
Measurement measurement = widget.getContent(Measurement.class);
if (measurement != null) {
List<RemoteViews> items = new ArrayList<>();
Date dateTime = new Date(measurement.getTime());
String date = android.text.format.DateFormat.getDateFormat(context).format(dateTime);
createItemView(items, context, R.drawable.ic_calendar_today_normal_24, R.string.widget_measure_date, UnitUtils.toSpanned(date), widget.getColor());
String time = android.text.format.DateFormat.getTimeFormat(context).format(dateTime);
createItemView(items, context, R.drawable.ic_alarm_normal_24, R.string.widget_measure_time , UnitUtils.toSpanned(time), widget.getColor());
if (measurement.getTemperature() != null) {
createItemView(items, context, R.drawable.ic_thermometer_normal_24, R.string.label_temperature, UnitUtils.toSpanned(UnitUtils.getTemperature(context, measurement.getTemperature(), unit)), widget.getColor());
}
@@ -114,6 +109,11 @@ public class MeasureWidgetProvider extends AbstractWidgetProvider {
}
}
}
Date dateTime = new Date(measurement.getTime());
String date = android.text.format.DateFormat.getDateFormat(context).format(dateTime);
createItemView(items, context, R.drawable.ic_calendar_today_normal_24, R.string.widget_measure_date, UnitUtils.toSpanned(date), widget.getColor());
String time = android.text.format.DateFormat.getTimeFormat(context).format(dateTime);
createItemView(items, context, R.drawable.ic_alarm_normal_24, R.string.widget_measure_time , UnitUtils.toSpanned(time), widget.getColor());
int max = Math.min(items.size(), (int)((height - (HEIGHT_DEVICE * scale)) / (HEIGHT_ITEM * scale)));
for (int i = 0; i < max; i++) {
views.addView(R.id.widget_container_item, items.get(i));
+1 -1
View File
@@ -10,7 +10,7 @@ description = "Mowesta Android SDK"
project.version = "unspecified"
android {
compileSdkVersion 30
compileSdkVersion 31
defaultConfig {
minSdkVersion 19
@@ -124,8 +124,8 @@ void setup() {
// power the button, voltage divider and sensor
pinMode(BUTTON_OUT, OUTPUT);
digitalWrite(BUTTON_OUT, LOW);
pinMode(EXTERNAL_OUT, OUTPUT);
digitalWrite(EXTERNAL_OUT, LOW);
// set out to in, since it is connected directly to GND
pinMode(EXTERNAL_OUT, INPUT);
// Initialize EEPROM with complete size
// Configure the button to enter setup
pinMode(BUTTON_PIN, INPUT_PULLUP);
+3 -3
View File
@@ -5,7 +5,7 @@ apply plugin: 'maven-publish'
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath 'com.android.tools.build:gradle:7.0.4'
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.4'
classpath 'org.handte.gradle:gradle-android-eclipse:1.0.0'
classpath "org.openbakery:xcode-plugin:0.19.1"
@@ -24,7 +24,7 @@ allprojects {
// set version for our project
group = 'com.mowesta'
version = '1.0.22'
version = '1.0.23'
// set versions for our libraries
ext {
@@ -54,7 +54,7 @@ allprojects {
mapstructVersion = '1.3.1.Final'
// shared android dependencies
versionAndroidXTest = '1.4.0'
versionAndroidXAppcompat = '1.3.1'
versionAndroidXAppcompat = '1.4.0'
versionAndroidXRoom = '2.3.0'
versionAndroidXPreference = '1.1.1'
versionRobolectric = '4.5'