1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 00:01:19 +00:00
syncthing-android/app/build.gradle

92 lines
3 KiB
Groovy
Raw 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 '2.8.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'
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
implementation 'com.google.android.material:material:1.0.0'
2017-12-05 11:53:33 +00:00
implementation 'com.google.zxing:android-integration:3.3.0'
implementation 'com.google.code.gson:gson:2.8.6'
2017-12-05 11:53:33 +00:00
implementation 'org.mindrot:jbcrypt:0.4'
implementation 'com.google.guava:guava:29.0-android'
implementation 'com.annimon:stream:1.2.1'
implementation 'com.android.volley:volley:1.1.1'
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
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.dagger:dagger:2.28.1'
annotationProcessor "com.google.dagger:dagger-compiler:2.28.1"
androidTestImplementation 'androidx.test:rules:1.2.0'
androidTestImplementation 'androidx.annotation:annotation:1.1.0'
}
android {
2017-12-26 18:47:23 +00:00
// Changes to these values need to be reflected in `.travis.yml`
compileSdkVersion 28
buildToolsVersion '28.0.3'
2017-12-26 18:47:23 +00:00
buildTypes.debug.applicationIdSuffix ".debug"
dataBinding.enabled = true
playConfigs {
defaultAccountConfig {
serviceAccountCredentials = file(System.getenv("SYNCTHING_RELEASE_PLAY_ACCOUNT_CONFIG_FILE") ?: 'keys.json')
}
}
defaultConfig {
applicationId "com.nutomic.syncthingandroid"
2018-04-27 22:29:25 +00:00
minSdkVersion 16
2019-09-03 07:40:19 +00:00
targetSdkVersion 28
2020-07-21 11:32:55 +00:00
versionCode 4238
versionName "1.7.1"
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 {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
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/el-EL/'
delete 'src/main/play/listings/en/'
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/'
}