Skip to content

Commit

Permalink
Force Locale.US when formatting GPS coordinates to avoid using commas…
Browse files Browse the repository at this point in the history
… instead of periods in the decimal places. Updated fDroid full description.
  • Loading branch information
pla1 committed Jun 5, 2020
1 parent 62bc3f3 commit cdd5491
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 17 deletions.
11 changes: 8 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.fediphoto"
minSdkVersion 26
targetSdkVersion 28
versionCode 12
versionName "2.1"
versionCode 13
versionName "2.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -23,11 +23,11 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
implementation 'androidx.exifinterface:exifinterface:1.1.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.exifinterface:exifinterface:1.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'androidx.work:work-runtime:2.2.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'androidx.work:work-runtime:2.3.4'
}
2 changes: 1 addition & 1 deletion app/src/main/java/com/fediphoto/WorkerPostStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public Result doWork() {
if (latitude != 0) {
String gpsCoordinatesFormat = Utils.getProperty(statusConfig, MainActivity.Literals.gpsCoordinatesFormat.name());
if (gpsCoordinatesFormat.split("%").length == 3) {
sb.append("\n").append(String.format(gpsCoordinatesFormat, latitude, longitude));
sb.append("\n").append(String.format(Locale.US, gpsCoordinatesFormat, latitude, longitude));
} else {
sb.append("\n").append(latitude).append(",").append(longitude);
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.android.tools.build:gradle:4.0.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
26 changes: 24 additions & 2 deletions fastlane/metadata/android/en-US/full_description.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
Fedi Photo - quickly post photos to the Fediverse.
Anrdoid app to quickly post photos to the Fediverse.

https://fediphoto.com
I wrote this app to scratch an itch which was to post photos to the Fediverse frictionlessly while riding my bike.

You configure the text and hashtags for the status ahead of time. Then with 3 clicks post a photo.

* Click for camera.
* Frame subject and click to take photo.
* Click to accept photo and you are done.

The posting of the photo and status text is performed in the background. If connectivity is bad it will upload when connectivity allows.

Other features
* Multiple accounts.
* Multiple status configurations.
* Optional customizable date format using Java Simple Date Format.
The default format string is "EEEE MMMM dd, yyyy hh:mm:ss a z".
* Optional customizable latitude and longitude URL or text. Using two format arguments %.5f.
The default format string is: "https://openstreetmap.org?zoom=17&layers=m&mlat=%.5f&mlon=%.5f"
If you prefer Google Maps: "https://www.google.com/maps/search/?api=1&query=%.5f,%.5f".
* After the photo is posted the app can
- Leave photo in the Fedi Photo folder
- Copy the photo to the Android Pictures folder
- Move the photo to the Android Pictures folder
- Delete the photo

https://fediphoto.com
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Sep 01 05:53:56 EDT 2019
#Fri Jun 05 18:38:01 EDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

0 comments on commit cdd5491

Please sign in to comment.