File tree Expand file tree Collapse file tree 15 files changed +31
-27
lines changed
java/eu/basicairdata/clinometer
fastlane/metadata/android/en-US/changelogs Expand file tree Collapse file tree 15 files changed +31
-27
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 32
5
- buildToolsVersion " 32.0.0"
6
-
4
+ compileSdk 33
7
5
8
6
defaultConfig {
9
7
applicationId " eu.basicairdata.clinometer"
10
8
minSdkVersion 19
11
- targetSdkVersion 32
9
+ targetSdkVersion 33
12
10
13
11
// -----------------------------------------------------------------------------------------
14
12
// We use the Semantic Versioning (https://semver.org/):
15
- versionName ' 1.2.2 '
16
- versionCode 8
13
+ versionName ' 1.2.3 '
14
+ versionCode 9
17
15
// -----------------------------------------------------------------------------------------
18
16
19
17
vectorDrawables. useSupportLibrary = true
@@ -41,17 +39,18 @@ android {
41
39
lint {
42
40
abortOnError false
43
41
}
42
+ namespace ' eu.basicairdata.clinometer'
44
43
45
44
}
46
45
47
46
dependencies {
48
47
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
49
48
50
- implementation ' androidx.appcompat:appcompat:1.4.1 '
49
+ implementation ' androidx.appcompat:appcompat:1.4.2 '
51
50
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 '
55
54
56
55
implementation ' com.google.android.material:material:1.5.0'
57
56
Original file line number Diff line number Diff line change 21
21
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
22
22
-->
23
23
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" >
26
25
27
26
<uses-feature android : name =" android.hardware.sensor.accelerometer" android : required =" true" />
28
27
<uses-feature android : name =" android.hardware.camera" android : required =" false" />
60
59
android : name =" .SettingsActivity"
61
60
android : label =" @string/Settings"
62
61
android : screenOrientation =" nosensor"
62
+ android : resizeableActivity =" false"
63
63
android : theme =" @style/MyTheme" >
64
64
<meta-data
65
65
android : name =" android.support.PARENT_ACTIVITY"
71
71
android : configChanges =" orientation|keyboardHidden|screenSize"
72
72
android : label =" @string/title_activity_calibration"
73
73
android : screenOrientation =" nosensor"
74
+ android : resizeableActivity =" false"
74
75
android : theme =" @style/MyTheme" >
75
76
<meta-data
76
77
android : name =" android.support.PARENT_ACTIVITY"
Original file line number Diff line number Diff line change @@ -476,6 +476,7 @@ protected void onPause() {
476
476
super .onPause ();
477
477
mSensorManager .unregisterListener (this );
478
478
if (isInCameraMode ) releaseCamera (true );
479
+ stopCamera ();
479
480
}
480
481
481
482
@@ -717,11 +718,11 @@ public void onSensorChanged(SensorEvent event) {
717
718
718
719
// Show hint in camera mode
719
720
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 ) ) {
721
722
// The Screen is in vertical
722
723
mTextViewKeepScreenVertical .setVisibility (View .VISIBLE );
723
724
}
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 )) ) {
725
726
mTextViewKeepScreenVertical .setVisibility (View .GONE );
726
727
}
727
728
}
Original file line number Diff line number Diff line change 21
21
-->
22
22
<resources >
23
23
<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 >
25
25
<string name =" toast_calibrate_before_use" >Bitte gehen Sie zu den Einstellungen \nund kalibrieren Sie die App vor der Verwendung</string >
26
26
<string name =" toast_no_browser_installed" >Kein Internet-Browser installiert</string >
27
27
<string name =" toast_click_back_again_to_exit" >Zum Beenden nochmals auf ZURÜCK tippen</string >
Original file line number Diff line number Diff line change 21
21
-->
22
22
<resources >
23
23
<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 >
25
25
<string name =" toast_calibrate_before_use" >Ve a Ajustes\ny calibrar la aplicación antes de usarla</string >
26
26
<string name =" toast_no_browser_installed" >Ningún navegador web instalado</string >
27
27
<string name =" toast_click_back_again_to_exit" >Haga clic de nuevo para salir</string >
Original file line number Diff line number Diff line change 21
21
-->
22
22
<resources >
23
23
<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 >
25
25
<string name =" toast_calibrate_before_use" >Veuillez accéder aux paramètres\net calibrer l\'application avant utilisation</string >
26
26
<string name =" toast_no_browser_installed" >Aucun navigateur Internet installé</string >
27
27
<string name =" toast_click_back_again_to_exit" >Cliquez à nouveau sur RETOUR pour quitter</string >
Original file line number Diff line number Diff line change 21
21
-->
22
22
<resources >
23
23
<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 >
25
25
<string name =" toast_calibrate_before_use" >Vai nelle impostazioni\ne calibra l\'app prima dell\'utilizzo</string >
26
26
<string name =" toast_no_browser_installed" >Nessun browser web installato</string >
27
27
<string name =" toast_click_back_again_to_exit" >Premi di nuovo INDIETRO per uscire</string >
Original file line number Diff line number Diff line change 25
25
<string name =" app_name" translatable =" false" >Clinometer</string >
26
26
27
27
<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 >
29
29
<string name =" toast_calibrate_before_use" >Please go to settings\nand calibrate the app before use</string >
30
30
<string name =" toast_no_browser_installed" >No Internet browser installed</string >
31
31
<string name =" toast_click_back_again_to_exit" >Click BACK again to exit</string >
Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ buildscript {
4
4
5
5
repositories {
6
6
google()
7
- jcenter()
8
-
7
+ gradlePluginPortal()
9
8
}
10
9
dependencies {
11
- classpath ' com.android.tools.build:gradle:7.1.2'
12
-
10
+ classpath ' com.android.tools.build:gradle:8.5.0'
13
11
14
12
// NOTE: Do not place your application dependencies here; they belong
15
13
// in the individual module build.gradle files
@@ -19,8 +17,8 @@ buildscript {
19
17
allprojects {
20
18
repositories {
21
19
google()
22
- jcenter ()
23
-
20
+ mavenCentral ()
21
+ gradlePluginPortal()
24
22
}
25
23
}
26
24
Original file line number Diff line number Diff line change
1
+ - Improved support to Android 13
2
+ - A couple of bugs fixed
Original file line number Diff line number Diff line change 6
6
# http://www.gradle.org/docs/current/userguide/build_environment.html
7
7
# Specifies the JVM arguments used for the daemon process.
8
8
# The setting is particularly useful for tweaking memory settings.
9
+ android.defaults.buildfeatures.buildconfig =true
9
10
android.enableJetifier =true
11
+ android.nonFinalResIds =false
12
+ android.nonTransitiveRClass =false
10
13
android.useAndroidX =true
11
14
org.gradle.jvmargs =-Xmx1536m
12
15
# When configured, Gradle will run in incubating parallel mode.
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
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
5
5
zipStoreBase =GRADLE_USER_HOME
6
6
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments