Downgradge jgit version

This way we can target older android devices. I got the exact version
from - https://github.com/zeapo/Android-Password-Store
This commit is contained in:
Vishesh Handa
2019-02-02 12:38:26 +01:00
parent 1c368afdc8
commit 7f31b17012
2 changed files with 6 additions and 4 deletions

View File

@ -39,7 +39,7 @@ android {
defaultConfig {
applicationId "io.gitjournal.gitjournal"
minSdkVersion 26
minSdkVersion 21
targetSdkVersion 27
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
@ -70,8 +70,10 @@ dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
// https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '4.4.1.201607150455-r'
implementation('org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r')
{
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// For reading a file to string
implementation 'commons-io:commons-io:2.5'

View File

@ -69,7 +69,7 @@ public class GitCommitTask extends AsyncTask<String, Void, Void> {
CommitCommand commitCommand = git.commit();
commitCommand.setAuthor(identity);
commitCommand.setMessage(message);
commitCommand.setAllowEmpty(false);
//commitCommand.setAllowEmpty(false);
commitCommand.call();
} catch (TransportException e) {