Skip to content

Commit 3791726

Browse files
Update to v1.2.3
2 parents 8e63f10 + 4b511f5 commit 3791726

File tree

15 files changed

+31
-27
lines changed

15 files changed

+31
-27
lines changed

apk/Clinometer-1.2.3.apk

5.7 MB
Binary file not shown.

apk/Clinometer-latest.apk

48.6 KB
Binary file not shown.

app/build.gradle

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 32
5-
buildToolsVersion "32.0.0"
6-
4+
compileSdk 33
75

86
defaultConfig {
97
applicationId "eu.basicairdata.clinometer"
108
minSdkVersion 19
11-
targetSdkVersion 32
9+
targetSdkVersion 33
1210

1311
// -----------------------------------------------------------------------------------------
1412
// We use the Semantic Versioning (https://semver.org/):
15-
versionName '1.2.2'
16-
versionCode 8
13+
versionName '1.2.3'
14+
versionCode 9
1715
// -----------------------------------------------------------------------------------------
1816

1917
vectorDrawables.useSupportLibrary = true
@@ -41,17 +39,18 @@ android {
4139
lint {
4240
abortOnError false
4341
}
42+
namespace 'eu.basicairdata.clinometer'
4443

4544
}
4645

4746
dependencies {
4847
implementation fileTree(dir: 'libs', include: ['*.jar'])
4948

50-
implementation 'androidx.appcompat:appcompat:1.4.1'
49+
implementation 'androidx.appcompat:appcompat:1.4.2'
5150
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
52-
implementation 'androidx.preference:preference:1.2.0'
53-
implementation 'androidx.navigation:navigation-fragment:2.4.1'
54-
implementation 'androidx.navigation:navigation-ui:2.4.1'
51+
implementation 'androidx.preference:preference:1.2.1'
52+
implementation 'androidx.navigation:navigation-fragment:2.4.2'
53+
implementation 'androidx.navigation:navigation-ui:2.4.2'
5554

5655
implementation 'com.google.android.material:material:1.5.0'
5756

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
-->
2323

24-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
25-
package="eu.basicairdata.clinometer">
24+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2625

2726
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />
2827
<uses-feature android:name="android.hardware.camera" android:required="false" />
@@ -60,6 +59,7 @@
6059
android:name=".SettingsActivity"
6160
android:label="@string/Settings"
6261
android:screenOrientation="nosensor"
62+
android:resizeableActivity="false"
6363
android:theme="@style/MyTheme">
6464
<meta-data
6565
android:name="android.support.PARENT_ACTIVITY"
@@ -71,6 +71,7 @@
7171
android:configChanges="orientation|keyboardHidden|screenSize"
7272
android:label="@string/title_activity_calibration"
7373
android:screenOrientation="nosensor"
74+
android:resizeableActivity="false"
7475
android:theme="@style/MyTheme">
7576
<meta-data
7677
android:name="android.support.PARENT_ACTIVITY"

app/src/main/java/eu/basicairdata/clinometer/ClinometerActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ protected void onPause() {
476476
super.onPause();
477477
mSensorManager.unregisterListener(this);
478478
if (isInCameraMode) releaseCamera(true);
479+
stopCamera();
479480
}
480481

481482

@@ -717,11 +718,11 @@ public void onSensorChanged(SensorEvent event) {
717718

718719
// Show hint in camera mode
719720
if (isCameraLivePreviewActive) {
720-
if (Math.abs(angle[2]) > 7.5f) {
721+
if ((Math.abs(angle[2]) > 7.5f) && (Math.abs(angle[1] % 180.0f) > 7.5f) && (Math.abs(angle[0] % 180.0f) > 7.5f)) {
721722
// The Screen is in vertical
722723
mTextViewKeepScreenVertical.setVisibility(View.VISIBLE);
723724
}
724-
if (Math.abs(angle[2]) < 7f) {
725+
if (!((Math.abs(angle[2]) > 7f) && (Math.abs(angle[1] % 180.0f) > 7f) && (Math.abs(angle[0] % 180.0f) > 7f))) {
725726
mTextViewKeepScreenVertical.setVisibility(View.GONE);
726727
}
727728
}

app/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
-->
2222
<resources>
2323
<string name="toast_please_grant_camera_permission">Bitte erteilen Sie die Berechtigung für den Zugriff auf die Kamera, um diese Funktion zu aktivieren</string>
24-
<string name="toast_lay_vertical">Bildschirm vertikal halten und das Gerät neigen</string>
24+
<string name="toast_lay_vertical">Bildschirm vertikal halten und das Gerät rollen oder neigen</string>
2525
<string name="toast_calibrate_before_use">Bitte gehen Sie zu den Einstellungen \nund kalibrieren Sie die App vor der Verwendung</string>
2626
<string name="toast_no_browser_installed">Kein Internet-Browser installiert</string>
2727
<string name="toast_click_back_again_to_exit">Zum Beenden nochmals auf ZURÜCK tippen</string>

app/src/main/res/values-es/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
-->
2222
<resources>
2323
<string name="toast_please_grant_camera_permission">Habilite el permiso de la cámara para utilizar esta función</string>
24-
<string name="toast_lay_vertical">Mantener la pantalla vertical e inclinar el dispositivo</string>
24+
<string name="toast_lay_vertical">Mantener la pantalla vertical e enrollar o inclinar el dispositivo</string>
2525
<string name="toast_calibrate_before_use">Ve a Ajustes\ny calibrar la aplicación antes de usarla</string>
2626
<string name="toast_no_browser_installed">Ningún navegador web instalado</string>
2727
<string name="toast_click_back_again_to_exit">Haga clic de nuevo para salir</string>

app/src/main/res/values-fr/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
-->
2222
<resources>
2323
<string name="toast_please_grant_camera_permission">Veuillez autoriser la caméra à activer cette fonctionnalité</string>
24-
<string name="toast_lay_vertical">Gardez l\'écran vertical et inclinez l\'appareil</string>
24+
<string name="toast_lay_vertical">Gardez l\'écran vertical et roulez ou inclinez l\'appareil</string>
2525
<string name="toast_calibrate_before_use">Veuillez accéder aux paramètres\net calibrer l\'application avant utilisation</string>
2626
<string name="toast_no_browser_installed">Aucun navigateur Internet installé</string>
2727
<string name="toast_click_back_again_to_exit">Cliquez à nouveau sur RETOUR pour quitter</string>

app/src/main/res/values-it/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
-->
2222
<resources>
2323
<string name="toast_please_grant_camera_permission">Per usare questa funzionalità è necessaria l\'autorizzazione all\'utilizzo della fotocamera</string>
24-
<string name="toast_lay_vertical">Mantieni lo schermo verticale e inclina il dispositivo</string>
24+
<string name="toast_lay_vertical">Mantieni lo schermo verticale e ruota o inclina il dispositivo</string>
2525
<string name="toast_calibrate_before_use">Vai nelle impostazioni\ne calibra l\'app prima dell\'utilizzo</string>
2626
<string name="toast_no_browser_installed">Nessun browser web installato</string>
2727
<string name="toast_click_back_again_to_exit">Premi di nuovo INDIETRO per uscire</string>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<string name="app_name" translatable="false">Clinometer</string>
2626

2727
<string name="toast_please_grant_camera_permission">Please grant the camera permission to enable this feature</string>
28-
<string name="toast_lay_vertical">Keep the screen vertical and tilt the device</string>
28+
<string name="toast_lay_vertical">Keep the screen vertical and roll or tilt the device</string>
2929
<string name="toast_calibrate_before_use">Please go to settings\nand calibrate the app before use</string>
3030
<string name="toast_no_browser_installed">No Internet browser installed</string>
3131
<string name="toast_click_back_again_to_exit">Click BACK again to exit</string>

build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ buildscript {
44

55
repositories {
66
google()
7-
jcenter()
8-
7+
gradlePluginPortal()
98
}
109
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.1.2'
12-
10+
classpath 'com.android.tools.build:gradle:8.5.0'
1311

1412
// NOTE: Do not place your application dependencies here; they belong
1513
// in the individual module build.gradle files
@@ -19,8 +17,8 @@ buildscript {
1917
allprojects {
2018
repositories {
2119
google()
22-
jcenter()
23-
20+
mavenCentral()
21+
gradlePluginPortal()
2422
}
2523
}
2624

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Improved support to Android 13
2+
- A couple of bugs fixed

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77
# Specifies the JVM arguments used for the daemon process.
88
# The setting is particularly useful for tweaking memory settings.
9+
android.defaults.buildfeatures.buildconfig=true
910
android.enableJetifier=true
11+
android.nonFinalResIds=false
12+
android.nonTransitiveRClass=false
1013
android.useAndroidX=true
1114
org.gradle.jvmargs=-Xmx1536m
1215
# When configured, Gradle will run in incubating parallel mode.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=f581709a9c35e9cb92e16f585d2c4bc99b2b1a5f85d2badbd3dc6bff59e1e6dd
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists
1.26 MB
Binary file not shown.

0 commit comments

Comments
 (0)