1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-25 13:51:16 +00:00
syncthing-android/app/build.gradle

102 lines
3.3 KiB
Groovy
Raw Permalink Normal View History

Bump dependencies (AndroidX, com.github.triplet.play 2.7.5, gradle 3.6.3) (#1491) * Bump com.github.triplet.play from 2.5.0 to 2.7.5 Bumps com.github.triplet.play from 2.5.0 to 2.7.5. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix com.github.triplet.play dependency setup * gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2 from: https://github.com/Catfriend1/syncthing-android/commit/5ad55348b8fff12ca3b47d87b68869d1e153f7f5 * build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3 * gradle.properties: + android.useAndroidX=true * Migrate to AndroidX: import androidx.databinding.DataBindingUtil * Create setenv.cmd * Fix lint error: RtlCompat Right-to-left text compatibility issues ../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 43 android:paddingLeft="@dimen/desc_padding" 44 android:paddingRight="@dimen/desc_padding" 45 android:text="@string/welcome_text" 46 android:textAlignment="center" 47 android:textColor="@android:color/white" 48 android:textSize="@dimen/slide_desc" /> 49 ../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/storage_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/location_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 8 android:layout_height="wrap_content" 9 android:layout_margin="10dp" 10 android:text="@string/command" 11 android:textAlignment="center" 12 android:textColor="@android:color/black" 13 android:textSize="18sp" 14 android:textStyle="bold" /> ../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 20 android:layout_height="wrap_content" 21 android:layout_margin="10dp" 22 android:text="@string/keep_versions" 23 android:textAlignment="center" 24 android:textColor="@android:color/black" 25 android:textSize="18sp" 26 android:textStyle="bold" /> ../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:text="@string/maximum_age" 17 android:textAlignment="center" 18 android:textColor="@android:color/black" 19 android:textSize="18sp" 20 android:textStyle="bold" ../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 41 android:layout_height="wrap_content" 42 android:layout_margin="10dp" 43 android:text="@string/versions_path" 44 android:textAlignment="center" 45 android:textColor="@android:color/black" 46 android:textSize="18sp" 47 android:textStyle="bold" ../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" * AndroidManifest: Add permission ACCESS_FINE_LOCATION Ref.: https://github.com/Catfriend1/syncthing-android/commit/5755ed45ad5de4f9d4ac1ddf3a2851e62a4545d9 * Migrate to AndroidX, solves lint error "IncompatibleGradle" according to: - https://github.com/Catfriend1/syncthing-android/commit/b04489e062feb525a3168fc09104c45ec61419fb * Fix lint error: MissingPermission, catch SecurityException * Revert "Create setenv.cmd" This reverts commit e39c460837ad3766887de3f7cf3378ddddcd1228. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
2020-05-17 14:04:32 +00:00
plugins {
id 'com.android.application'
id 'com.github.ben-manes.versions'
id 'com.github.triplet.play' version '3.7.0'
Bump dependencies (AndroidX, com.github.triplet.play 2.7.5, gradle 3.6.3) (#1491) * Bump com.github.triplet.play from 2.5.0 to 2.7.5 Bumps com.github.triplet.play from 2.5.0 to 2.7.5. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix com.github.triplet.play dependency setup * gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2 from: https://github.com/Catfriend1/syncthing-android/commit/5ad55348b8fff12ca3b47d87b68869d1e153f7f5 * build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3 * gradle.properties: + android.useAndroidX=true * Migrate to AndroidX: import androidx.databinding.DataBindingUtil * Create setenv.cmd * Fix lint error: RtlCompat Right-to-left text compatibility issues ../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 43 android:paddingLeft="@dimen/desc_padding" 44 android:paddingRight="@dimen/desc_padding" 45 android:text="@string/welcome_text" 46 android:textAlignment="center" 47 android:textColor="@android:color/white" 48 android:textSize="@dimen/slide_desc" /> 49 ../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/storage_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/location_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 8 android:layout_height="wrap_content" 9 android:layout_margin="10dp" 10 android:text="@string/command" 11 android:textAlignment="center" 12 android:textColor="@android:color/black" 13 android:textSize="18sp" 14 android:textStyle="bold" /> ../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 20 android:layout_height="wrap_content" 21 android:layout_margin="10dp" 22 android:text="@string/keep_versions" 23 android:textAlignment="center" 24 android:textColor="@android:color/black" 25 android:textSize="18sp" 26 android:textStyle="bold" /> ../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:text="@string/maximum_age" 17 android:textAlignment="center" 18 android:textColor="@android:color/black" 19 android:textSize="18sp" 20 android:textStyle="bold" ../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 41 android:layout_height="wrap_content" 42 android:layout_margin="10dp" 43 android:text="@string/versions_path" 44 android:textAlignment="center" 45 android:textColor="@android:color/black" 46 android:textSize="18sp" 47 android:textStyle="bold" ../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" * AndroidManifest: Add permission ACCESS_FINE_LOCATION Ref.: https://github.com/Catfriend1/syncthing-android/commit/5755ed45ad5de4f9d4ac1ddf3a2851e62a4545d9 * Migrate to AndroidX, solves lint error "IncompatibleGradle" according to: - https://github.com/Catfriend1/syncthing-android/commit/b04489e062feb525a3168fc09104c45ec61419fb * Fix lint error: MissingPermission, catch SecurityException * Revert "Create setenv.cmd" This reverts commit e39c460837ad3766887de3f7cf3378ddddcd1228. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
2020-05-17 14:04:32 +00:00
}
dependencies {
implementation 'eu.chainfire:libsuperuser:1.1.0.202004101746'
implementation 'com.google.android.material:material:1.8.0'
implementation 'com.google.code.gson:gson:2.10.1'
2017-12-05 11:53:33 +00:00
implementation 'org.mindrot:jbcrypt:0.4'
Bump com.google.guava:guava from 31.1-android to 32.1.2-android (#1954) Bumps [com.google.guava:guava](https://github.com/google/guava) from 31.1-android to 32.1.2-android. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/google/guava/releases">com.google.guava:guava's releases</a>.</em></p> <blockquote> <h2>32.1.2</h2> <h3>Maven</h3> <pre lang="xml"><code>&lt;dependency&gt; &lt;groupId&gt;com.google.guava&lt;/groupId&gt; &lt;artifactId&gt;guava&lt;/artifactId&gt; &lt;version&gt;32.1.2-jre&lt;/version&gt; &lt;!-- or, for Android: --&gt; &lt;version&gt;32.1.2-android&lt;/version&gt; &lt;/dependency&gt; </code></pre> <h3>Jar files</h3> <ul> <li><a href="https://repo1.maven.org/maven2/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar">32.1.2-jre.jar</a></li> <li><a href="https://repo1.maven.org/maven2/com/google/guava/guava/32.1.2-android/guava-32.1.2-android.jar">32.1.2-android.jar</a></li> </ul> <p>Guava requires <a href="https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies">one runtime dependency</a>, which you can download here:</p> <ul> <li><a href="https://repo1.maven.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar">failureaccess-1.0.1.jar</a></li> </ul> <h3>Javadoc</h3> <ul> <li><a href="http://guava.dev/releases/32.1.2-jre/api/docs/">32.1.2-jre</a></li> <li><a href="http://guava.dev/releases/32.1.2-android/api/docs/">32.1.2-android</a></li> </ul> <h3>JDiff</h3> <ul> <li><a href="http://guava.dev/releases/32.1.2-jre/api/diffs/">32.1.2-jre vs. 32.1.1-jre</a></li> <li><a href="http://guava.dev/releases/32.1.2-android/api/diffs/">32.1.2-android vs. 32.1.1-android</a></li> <li><a href="http://guava.dev/releases/32.1.2-android/api/androiddiffs/">32.1.2-android vs. 32.1.2-jre</a></li> </ul> <h3>Changelog</h3> <ul> <li><a href="https://redirect.github.com/google/guava/issues/6642#issuecomment-1656201382">Removed</a> the section of our Gradle metadata that caused Gradle to report conflicts with <code>listenablefuture</code>. (9ed0fa65ab)</li> <li>Changed our Maven project to avoid <a href="https://redirect.github.com/google/guava/issues/6654">affecting which version of Mockito our Gradle users see</a>. (71a16d5a74)</li> <li><code>collect</code>: Under J2CL, exposed <code>ImmutableList</code> and <code>ImmutableSet</code> methods <code>copyOf</code> and <code>of</code> for JavaScript usage. (b41968f5f2)</li> <li><code>net</code>: Optimized <code>InternetDomainName</code> construction. (3a1d18fbefa10218988a0fbbb6e1fada012397bf, eaa62eb09548a6f1b7a757e21d8852724b631cab)</li> </ul> <h2>32.1.1</h2> <h3>Maven</h3> <pre lang="xml"><code>&lt;dependency&gt; &lt;groupId&gt;com.google.guava&lt;/groupId&gt; &lt;artifactId&gt;guava&lt;/artifactId&gt; &lt;version&gt;32.1.1-jre&lt;/version&gt; &lt;!-- or, for Android: --&gt; &lt;version&gt;32.1.1-android&lt;/version&gt; &lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/google/guava/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.google.guava:guava&package-manager=gradle&previous-version=31.1-android&new-version=32.1.2-android)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-03 12:26:39 +00:00
implementation 'com.google.guava:guava:32.1.2-android'
implementation 'com.annimon:stream:1.2.2'
implementation 'com.android.volley:volley:1.2.1'
implementation 'commons-io:commons-io:2.11.0'
implementation ('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
2021-07-07 09:29:22 +00:00
implementation 'com.google.zxing:core:3.4.1'
2021-07-07 09:29:22 +00:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
2023-06-17 12:00:36 +00:00
implementation 'com.google.dagger:dagger:2.46.1'
annotationProcessor 'com.google.dagger:dagger-compiler:2.46.1'
2021-07-07 09:29:22 +00:00
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.annotation:annotation:1.2.0'
}
android {
// Changes to these values need to be reflected in `../docker/Dockerfile`
compileSdkVersion 33
buildToolsVersion '33.0.2'
ndkVersion = "${ndkVersionShared}"
2017-12-26 18:47:23 +00:00
buildTypes.debug.applicationIdSuffix ".debug"
buildFeatures.dataBinding = true
defaultConfig {
applicationId "com.nutomic.syncthingandroid"
minSdkVersion 21
targetSdkVersion 33
2023-11-07 11:38:44 +00:00
versionCode 4368
versionName "1.26.0"
testApplicationId 'com.nutomic.syncthingandroid.test'
Bump dependencies (AndroidX, com.github.triplet.play 2.7.5, gradle 3.6.3) (#1491) * Bump com.github.triplet.play from 2.5.0 to 2.7.5 Bumps com.github.triplet.play from 2.5.0 to 2.7.5. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix com.github.triplet.play dependency setup * gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2 from: https://github.com/Catfriend1/syncthing-android/commit/5ad55348b8fff12ca3b47d87b68869d1e153f7f5 * build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3 * gradle.properties: + android.useAndroidX=true * Migrate to AndroidX: import androidx.databinding.DataBindingUtil * Create setenv.cmd * Fix lint error: RtlCompat Right-to-left text compatibility issues ../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 43 android:paddingLeft="@dimen/desc_padding" 44 android:paddingRight="@dimen/desc_padding" 45 android:text="@string/welcome_text" 46 android:textAlignment="center" 47 android:textColor="@android:color/white" 48 android:textSize="@dimen/slide_desc" /> 49 ../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/storage_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/location_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 8 android:layout_height="wrap_content" 9 android:layout_margin="10dp" 10 android:text="@string/command" 11 android:textAlignment="center" 12 android:textColor="@android:color/black" 13 android:textSize="18sp" 14 android:textStyle="bold" /> ../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 20 android:layout_height="wrap_content" 21 android:layout_margin="10dp" 22 android:text="@string/keep_versions" 23 android:textAlignment="center" 24 android:textColor="@android:color/black" 25 android:textSize="18sp" 26 android:textStyle="bold" /> ../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:text="@string/maximum_age" 17 android:textAlignment="center" 18 android:textColor="@android:color/black" 19 android:textSize="18sp" 20 android:textStyle="bold" ../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 41 android:layout_height="wrap_content" 42 android:layout_margin="10dp" 43 android:text="@string/versions_path" 44 android:textAlignment="center" 45 android:textColor="@android:color/black" 46 android:textSize="18sp" 47 android:textStyle="bold" ../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" * AndroidManifest: Add permission ACCESS_FINE_LOCATION Ref.: https://github.com/Catfriend1/syncthing-android/commit/5755ed45ad5de4f9d4ac1ddf3a2851e62a4545d9 * Migrate to AndroidX, solves lint error "IncompatibleGradle" according to: - https://github.com/Catfriend1/syncthing-android/commit/b04489e062feb525a3168fc09104c45ec61419fb * Fix lint error: MissingPermission, catch SecurityException * Revert "Create setenv.cmd" This reverts commit e39c460837ad3766887de3f7cf3378ddddcd1228. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
2020-05-17 14:04:32 +00:00
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
signingConfigs {
release {
storeFile = {
def path = System.getenv("SYNCTHING_RELEASE_STORE_FILE")
return (path) ? file(path) : null
}()
storePassword System.getenv("SIGNING_PASSWORD") ?: ""
keyAlias System.getenv("SYNCTHING_RELEASE_KEY_ALIAS") ?: ""
keyPassword System.getenv("SIGNING_PASSWORD") ?: ""
}
}
buildTypes {
release {
signingConfig = signingConfigs.release.storeFile ? signingConfigs.release : null
}
debug {
debuggable true
jniDebuggable true
renderscriptDebuggable true
minifyEnabled false
}
}
compileOptions {
2022-11-27 15:31:05 +00:00
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
// Otherwise libsyncthing.so doesn't appear where it should in installs
// based on app bundles, and thus nothing works.
packagingOptions {
jniLibs {
useLegacyPackaging = true
}
}
}
play {
serviceAccountCredentials = file(System.getenv("SYNCTHING_RELEASE_PLAY_ACCOUNT_CONFIG_FILE") ?: 'keys.json')
2018-04-18 22:46:20 +00:00
track = 'beta'
}
/**
* Some languages are not supported by Google Play, so we ignore them.
*/
task deleteUnsupportedPlayTranslations(type: Delete) {
delete 'src/main/play/listings/de_DE/'
delete 'src/main/play/listings/el-EL/'
delete 'src/main/play/listings/en/'
delete 'src/main/play/listings/eo/'
delete 'src/main/play/listings/eu/'
delete 'src/main/play/listings/nb/'
delete 'src/main/play/listings/nl_BE/'
delete 'src/main/play/listings/nn/'
delete 'src/main/play/listings/ta/'
}