Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 8ff0039

Browse files
msfjarviszidhuss
authored andcommitted
Update gradle and external dependencies (#429)
* Update gradle and external dependencies - Switch away from deprecated compile directive - Remove explicit buildToolsVersion, is defined by the gradle plugin now - Fix build in SelectFolderActivity Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Upgrade gradle plugin and wrapper to latest alpha Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Don't use alpha gradle plugin Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
1 parent 9c932f1 commit 8ff0039

File tree

4 files changed

+29
-35
lines changed

4 files changed

+29
-35
lines changed

app/build.gradle

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ apply plugin: 'eclipse'
55

66
android {
77
compileSdkVersion 27
8-
buildToolsVersion '27.0.3'
98
defaultConfig {
109
applicationId "com.zeapo.pwdstore"
1110
minSdkVersion 16
@@ -56,36 +55,33 @@ android {
5655
}
5756

5857
dependencies {
59-
compile 'com.android.support:appcompat-v7:27.1.0'
60-
compile 'com.android.support:recyclerview-v7:27.1.0'
61-
compile 'com.android.support:cardview-v7:27.1.0'
62-
compile 'com.android.support:design:27.1.0'
63-
compile 'com.android.support:support-annotations:27.1.0'
64-
compile 'org.sufficientlysecure:openpgp-api:11.0'
65-
compile 'com.nononsenseapps:filepicker:2.4.2'
66-
compile('org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r') {
58+
implementation 'com.android.support:appcompat-v7:27.1.1'
59+
implementation 'com.android.support:recyclerview-v7:27.1.1'
60+
implementation 'com.android.support:cardview-v7:27.1.1'
61+
implementation 'com.android.support:design:27.1.1'
62+
implementation 'com.android.support:support-annotations:27.1.1'
63+
implementation 'org.sufficientlysecure:openpgp-api:11.0'
64+
implementation 'com.nononsenseapps:filepicker:2.4.2'
65+
implementation('org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r') {
6766
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
6867
}
69-
compile 'com.jcraft:jsch:0.1.54'
70-
compile group: 'commons-io', name: 'commons-io', version: '2.4'
71-
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
72-
compile 'com.jayway.android.robotium:robotium-solo:5.3.1'
73-
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
74-
compile 'com.android.support.constraint:constraint-layout:1.0.2'
68+
implementation 'com.jcraft:jsch:0.1.54'
69+
implementation 'commons-io:commons-io:2.5'
70+
implementation 'commons-codec:commons-codec:1.11'
71+
implementation 'com.jayway.android.robotium:robotium-solo:5.3.1'
72+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
73+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
7574

7675
// Testing-only dependencies
77-
androidTestCompile 'junit:junit:4.12'
78-
androidTestCompile 'org.mockito:mockito-core:2.8.47'
79-
androidTestCompile 'com.android.support.test:runner:1.0.1'
80-
androidTestCompile 'com.android.support.test:rules:1.0.1'
81-
androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.1'
82-
androidTestCompile 'com.android.support.test.espresso:espresso-intents:3.0.1'
76+
androidTestImplementation 'junit:junit:4.12'
77+
androidTestImplementation 'org.mockito:mockito-core:2.18.0'
78+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
79+
androidTestImplementation 'com.android.support.test:rules:1.0.2'
80+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
81+
androidTestImplementation 'com.android.support.test.espresso:espresso-intents:3.0.2'
8382

8483

8584
}
8685
repositories {
8786
mavenCentral()
88-
89-
// temp. solution until we use use gradle 4.0
90-
maven { url 'https://maven.google.com' }
9187
}

app/src/main/java/com/zeapo/pwdstore/SelectFolderActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import com.zeapo.pwdstore.utils.PasswordRepository
1111
// TODO more work needed, this is just an extraction from PgpHandler
1212

1313
class SelectFolderActivity : AppCompatActivity() {
14-
internal var passwordList: SelectFolderFragment? = null
14+
private lateinit var passwordList: SelectFolderFragment
1515

1616
override fun onCreate(savedInstanceState: Bundle?) {
1717
super.onCreate(savedInstanceState)
@@ -26,7 +26,7 @@ class SelectFolderActivity : AppCompatActivity() {
2626
val args = Bundle()
2727
args.putString("Path", PasswordRepository.getRepositoryDirectory(applicationContext).absolutePath)
2828

29-
passwordList?.arguments = args
29+
passwordList.arguments = args
3030

3131
supportActionBar?.show()
3232

@@ -55,7 +55,7 @@ class SelectFolderActivity : AppCompatActivity() {
5555
}
5656

5757
private fun selectFolder() {
58-
intent.putExtra("SELECTED_FOLDER_PATH", passwordList?.currentDir?.absolutePath)
58+
intent.putExtra("SELECTED_FOLDER_PATH", passwordList.currentDir?.absolutePath)
5959
setResult(Activity.RESULT_OK, intent)
6060
finish()
6161
}

build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.1.51'
4+
ext.kotlin_version = '1.2.71'
55
repositories {
6+
google()
67
jcenter()
78
mavenCentral()
8-
maven {
9-
url "https://maven.google.com"
10-
}
11-
google()
129
}
1310
dependencies {
14-
classpath 'com.android.tools.build:gradle:3.1.4'
11+
classpath 'com.android.tools.build:gradle:3.2.0'
1512
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1613

1714
// NOTE: Do not place your application dependencies here; they belong
@@ -21,6 +18,7 @@ buildscript {
2118

2219
allprojects {
2320
repositories {
21+
google()
2422
jcenter()
2523
mavenCentral()
2624
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Mar 28 22:40:58 CEST 2018
1+
#Tue Oct 02 13:51:59 IST 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

0 commit comments

Comments
 (0)