Skip to content

Commit

Permalink
Update to v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
GrazianoCapelli committed Sep 1, 2021
2 parents 8fcd218 + ba1d7ff commit 2cc1332
Show file tree
Hide file tree
Showing 35 changed files with 343 additions and 108 deletions.
Binary file added apk/Clinometer-1.0.3.apk
Binary file not shown.
Binary file modified apk/Clinometer-latest.apk
Binary file not shown.
16 changes: 8 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {

// -----------------------------------------------------------------------------------------
// We use the Semantic Versioning (https://semver.org/):
versionName '1.0.2'
versionCode 3
versionName '1.0.3'
versionCode 4
// -----------------------------------------------------------------------------------------

vectorDrawables.useSupportLibrary = true
Expand Down Expand Up @@ -48,15 +48,15 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.navigation:navigation-fragment:2.3.3'
implementation 'androidx.navigation:navigation-ui:2.3.3'
implementation 'androidx.navigation:navigation-fragment:2.3.5'
implementation 'androidx.navigation:navigation-ui:2.3.5'

implementation 'com.google.android.material:material:1.3.0'
implementation 'com.google.android.material:material:1.4.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
22 changes: 22 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
~ AndroidManifest.xml
~ Created by G.Capelli on 21/5/2020
~ This file is part of BasicAirData Clinometer
~
~ Copyright (C) 2020 BasicAirData
~
~ 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
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="eu.basicairdata.clinometer">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* BackgroundView - Java Class for Android
* Created by G.Capelli (BasicAirData) on 7/1/2021
* Created by G.Capelli on 7/1/2021
* This file is part of BasicAirData Clinometer
*
* This file is part of BasicAirData Clinometer for Android.
* Copyright (C) 2020 BasicAirData
*
* 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
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* CalibrationActivity - Java Class for Android
* Created by G.Capelli (BasicAirData) on 3/6/2020
* Created by G.Capelli on 3/6/2020
* This file is part of BasicAirData Clinometer
*
* This file is part of BasicAirData Clinometer for Android.
* Copyright (C) 2020 BasicAirData
*
* 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
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* CameraInformation - Java Class for Android
* Created by G.Capelli (BasicAirData) on 8/1/2021
* Created by G.Capelli on 8/1/2021
* This file is part of BasicAirData Clinometer
*
* This file is part of BasicAirData Clinometer for Android.
* Copyright (C) 2020 BasicAirData
*
* 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
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/*
* CameraPreview - Java Class for Android
* Created by G.Capelli (BasicAirData) on 4/1/2021
* Created by G.Capelli on 4/1/2021
* This file is part of BasicAirData Clinometer
*
* The class is based on the developer.android.com CameraPreview Class:
* https://developer.android.com/guide/topics/media/camera#custom-camera
*
* This file is part of BasicAirData Clinometer for Android.
* Copyright (C) 2020 BasicAirData
*
* 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
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* ClinometerActivity - Singleton Java Class for Android
* Created by G.Capelli (BasicAirData) on 21/5/2020
* Created by G.Capelli on 21/5/2020
* This file is part of BasicAirData Clinometer
*
* This file is part of BasicAirData Clinometer for Android.
* Copyright (C) 2020 BasicAirData
*
* 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 Expand Up @@ -342,7 +343,7 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == CAMERA_REQUEST_CODE) {
Log.w("ClinometerActivity", "onRequestPermissionsResult()");
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
if ((grantResults.length > 0) && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {
isInCameraMode = switchToCameraMode(!isInCameraMode);
} else {
showToast(getString(R.string.toast_please_grant_camera_permission));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* ClinometerApplication - Singleton Java Class for Android
* Created by G.Capelli (BasicAirData) on 10/1/2021
* Created by G.Capelli on 10/1/2021
* This file is part of BasicAirData Clinometer
*
* This file is part of BasicAirData Clinometer for Android.
* Copyright (C) 2020 BasicAirData
*
* 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 Expand Up @@ -48,6 +49,7 @@ public class ClinometerApplication extends Application {
public static final String KEY_PREF_CAMERA = "prefCamera";
public static final String KEY_PREF_CAMERA_EXPOSURE_COMPENSATION = "prefExposureCompensation";
public static final String KEY_PREF_ABOUT = "prefAbout";
public static final String KEY_PREF_ONLINE_HELP = "prefOnlineHelp";
public static final String KEY_PREF_KEEP_SCREEN_ON = "prefKeepScreenOn";
public static final String KEY_PREF_CALIBRATION_ANGLE_0 = "prefCalibrationAngle0";
public static final String KEY_PREF_CALIBRATION_ANGLE_1 = "prefCalibrationAngle1";
Expand Down
Loading

0 comments on commit 2cc1332

Please sign in to comment.