Skip to content

Commit

Permalink
Merge branch 'release/1.10.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Jun 29, 2024
2 parents d94b3f4 + 155c86f commit 43d82c8
Show file tree
Hide file tree
Showing 18 changed files with 68 additions and 63 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def getVersionCode = { ->
allprojects {
ext {
androidApplicationId = 'org.cryptomator'
androidVersionCode = 2897 // must be getVersionCode(). only at release tag set the actual value
androidVersionName = '1.10.1'
androidVersionCode = 2904 // must be getVersionCode(). only at release tag set the actual value
androidVersionName = '1.10.2'
}
repositories {
mavenCentral()
Expand Down
6 changes: 6 additions & 0 deletions fastlane/.default.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ S3_REGION=
S3_ACCESS_KEY=
S3_SECRET_ACCESS_KEY=

S3_LENOTRA_AG_BUCKET=
S3_LENOTRA_AG_ENDPOINT=
S3_LENOTRA_AG_REGION=
S3_LENOTRA_AG_ACCESS_KEY=
S3_LENOTRA_AG_SECRET_ACCESS_KEY=

SLACK_URL=

GITHUB_PERSONAL_ACCESS_TOKEN=
32 changes: 32 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ platform :android do |options|
checkVersionCodeSet(alpha:options[:alpha], beta:options[:beta])

deployToPlaystore(alpha:options[:alpha], beta:options[:beta])
deployToLenotraAG(alpha:options[:alpha], beta:options[:beta])
deployToServer(alpha:options[:alpha], beta:options[:beta])
deployToFDroid(alpha:options[:alpha], beta:options[:beta])
deployLite(alpha:options[:alpha], beta:options[:beta])
Expand Down Expand Up @@ -126,6 +127,37 @@ platform :android do |options|
FileUtils.cp(lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH], "release/Cryptomator-#{version}_playstore_signed.apk")
end

desc "Deploy new version to Lenotra AG"
private_lane :deployToLenotraAG do |options|
apk_path = "fastlane/release/Cryptomator-#{version}_playstore_signed.apk"
if File.exists?("../#{apk_path}")
puts "APK found"
else
puts "No APK available at #{apk_path}, please build it first e.g. using the deployToPlaystore lane"
fail
end

if options[:alpha] or options[:beta]
puts "Skipping deployment to LenotraAG there isn't currently a alpha/beta channel"
else
puts "Uploading APK"

aws_s3(
bucket: ENV['S3_LENOTRA_AG_BUCKET'],
endpoint: ENV['S3_LENOTRA_AG_ENDPOINT'],
region: ENV['S3_LENOTRA_AG_REGION'],
access_key: ENV['S3_LENOTRA_AG_ACCESS_KEY'],
secret_access_key: ENV['S3_LENOTRA_AG_SECRET_ACCESS_KEY'],
path: "Cryptomator",
files: [
apk_path,
],
skip_html_upload: true,
apk: ''
)
end
end

desc "Deploy new version to server"
private_lane :deployToServer do |options|
gradle(task: "clean")
Expand Down
8 changes: 8 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ Update Metadata

Check if the version code was set

### android deployToLenotraAG

```sh
[bundle exec] fastlane android deployToLenotraAG
```

Deploy new version to Lenotra AG

### android checkTrackingAddedInDependencyUsingIzzyScript

```sh
Expand Down
6 changes: 1 addition & 5 deletions fastlane/release-notes-de.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Originales Änderungsdatum der Datei beim Hochladen beibehalten (wenn möglich)
- Update auf die neueste Android-Version
- Fehlerbehebung beim Hochladen von Dateien größer als 2GB in WebDAV
- Fehlerbehebung beim Entsperren des Tresors auf Samsung-Geräten
- Dateiüberschreibung unter bestimmten Bedingungen verhindern, wenn zwischen Dateien gewechselt wird, die von keiner App geöffnet werden können
- Fehlerbehebung beim Zurückschreiben geänderter Dateien auf bestimmten Geräten
6 changes: 1 addition & 5 deletions fastlane/release-notes-en.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Preserve original file modification date during upload (if possible)
- Update to latest Android version
- Fix for uploading files larger than 2GB in WebDAV
- Fix vault unlock on Samsung devices
- Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app
- Fix write back edited file on some devices
6 changes: 1 addition & 5 deletions fastlane/release-notes.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<ul>
<li>Preserve original file modification date during upload (if possible)</li>
<li>Update to latest Android version</li>
<li>Fix for uploading files larger than 2GB in WebDAV</li>
<li>Fix vault unlock on Samsung devices</li>
<li>Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app</li>
<li>Fix write back edited file on some devices</li>
</ul>
7 changes: 7 additions & 0 deletions presentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,24 @@ android {
java.srcDirs = ['src/main/java/', 'src/lite/java/', 'src/fdroidAndLite/java/']
}
}

packagingOptions {
resources {
excludes += ['META-INF/jersey-module-version', 'META-INF/NOTICE.md', 'META-INF/DEPENDENCIES', 'META-INF/INDEX.LIST']
}
}

dependenciesInfo {
// Disables dependency metadata when building APKs, see #539
includeInApk = false
}

lint {
abortOnError false
ignoreWarnings true
quiet true
}

namespace 'org.cryptomator.presentation'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ContentResolverUtil @Inject constructor(context: Context) {
contentResolver.query(uri, null, null, null, null).use { cursor ->
if (cursor != null && cursor.moveToFirst()) {
val dateModifiedColumnIndex = cursor.getColumnIndex(DocumentsContract.Document.COLUMN_LAST_MODIFIED)
if (!cursor.isNull(dateModifiedColumnIndex)) {
if (dateModifiedColumnIndex != -1) {
val date = cursor.getLong(dateModifiedColumnIndex)
return Date(date);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Originales Änderungsdatum der Datei beim Hochladen beibehalten (wenn möglich)
- Update auf die neueste Android-Version
- Fehlerbehebung beim Hochladen von Dateien größer als 2GB in WebDAV
- Fehlerbehebung beim Entsperren des Tresors auf Samsung-Geräten
- Dateiüberschreibung unter bestimmten Bedingungen verhindern, wenn zwischen Dateien gewechselt wird, die von keiner App geöffnet werden können
- Fehlerbehebung beim Zurückschreiben geänderter Dateien auf bestimmten Geräten
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Preserve original file modification date during upload (if possible)
- Update to latest Android version
- Fix for uploading files larger than 2GB in WebDAV
- Fix vault unlock on Samsung devices
- Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app
- Fix write back edited file on some devices
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Preserve original file modification date during upload (if possible)
- Update to latest Android version
- Fix for uploading files larger than 2GB in WebDAV
- Fix vault unlock on Samsung devices
- Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app
- Fix write back edited file on some devices
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Originales Änderungsdatum der Datei beim Hochladen beibehalten (wenn möglich)
- Update auf die neueste Android-Version
- Fehlerbehebung beim Hochladen von Dateien größer als 2GB in WebDAV
- Fehlerbehebung beim Entsperren des Tresors auf Samsung-Geräten
- Dateiüberschreibung unter bestimmten Bedingungen verhindern, wenn zwischen Dateien gewechselt wird, die von keiner App geöffnet werden können
- Fehlerbehebung beim Zurückschreiben geänderter Dateien auf bestimmten Geräten
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Preserve original file modification date during upload (if possible)
- Update to latest Android version
- Fix for uploading files larger than 2GB in WebDAV
- Fix vault unlock on Samsung devices
- Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app
- Fix write back edited file on some devices
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Preserve original file modification date during upload (if possible)
- Update to latest Android version
- Fix for uploading files larger than 2GB in WebDAV
- Fix vault unlock on Samsung devices
- Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app
- Fix write back edited file on some devices
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Originales Änderungsdatum der Datei beim Hochladen beibehalten (wenn möglich)
- Update auf die neueste Android-Version
- Fehlerbehebung beim Hochladen von Dateien größer als 2GB in WebDAV
- Fehlerbehebung beim Entsperren des Tresors auf Samsung-Geräten
- Dateiüberschreibung unter bestimmten Bedingungen verhindern, wenn zwischen Dateien gewechselt wird, die von keiner App geöffnet werden können
- Fehlerbehebung beim Zurückschreiben geänderter Dateien auf bestimmten Geräten
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Preserve original file modification date during upload (if possible)
- Update to latest Android version
- Fix for uploading files larger than 2GB in WebDAV
- Fix vault unlock on Samsung devices
- Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app
- Fix write back edited file on some devices
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
- Preserve original file modification date during upload (if possible)
- Update to latest Android version
- Fix for uploading files larger than 2GB in WebDAV
- Fix vault unlock on Samsung devices
- Prevent file overwrite under certain conditions when switching between files that cannot be opened by any app
- Fix write back edited file on some devices

0 comments on commit 43d82c8

Please sign in to comment.