Skip to content

Commit

Permalink
use jitpack instead of submodules
Browse files Browse the repository at this point in the history
hide password field if SSO is used: todo currently set to dummy value
multidex now needed
  • Loading branch information
tobiasKaminsky committed Jun 12, 2018
1 parent a3a179c commit 227bb7c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
@@ -1,6 +1,3 @@
[submodule "ownCloud-Account-Importer"]
path = ownCloud-Account-Importer
url = https://github.com/David-Development/ownCloud-Account-Importer.git
[submodule "MaterialShowcaseView"]
path = MaterialShowcaseView
url = https://github.com/David-Development/MaterialShowcaseView.git
5 changes: 4 additions & 1 deletion News-Android-App/build.gradle
Expand Up @@ -13,6 +13,7 @@ android {
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION

defaultConfig {
multiDexEnabled true
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)

Expand Down Expand Up @@ -89,6 +90,7 @@ repositories {
jcenter()
maven { url 'http://guardian.github.com/maven/repo-releases' } //needed for com.gu:option:1.3 in Android-DirectoryChooser
maven { url "http://dl.bintray.com/lukaville/maven" } //Needed for com.nbsp:library:1.02 in Material File Picker
maven { url "https://jitpack.io" }

}

Expand All @@ -100,7 +102,7 @@ dependencies {
// You must install or update the Google Repository through the SDK manager to use this dependency.
// The Google Repository (separate from the corresponding library) can be found in the Extras category.
// implementation 'com.google.android.gms:play-services:4.2.42'
api project(path: ':ownCloud-Account-Importer')
implementation "com.github.nextcloud:android-SingleSignOn:sso-SNAPSHOT"
implementation "com.android.support:support-v4:${SUPPORT_VERSION}"
implementation "com.android.support:support-compat:${SUPPORT_VERSION}"
implementation "com.android.support:appcompat-v7:${SUPPORT_VERSION}"
Expand All @@ -113,6 +115,7 @@ dependencies {
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.android.support:multidex:1.0.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

compileOnly 'com.google.auto.value:auto-value:1.5.2'
Expand Down
Expand Up @@ -33,6 +33,7 @@
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.design.widget.TextInputLayout;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AlertDialog;
Expand Down Expand Up @@ -117,6 +118,8 @@ public static LoginDialogFragment getInstance() {
// UI references.
@BindView(R.id.username) EditText mUsernameView;
@BindView(R.id.password) EditText mPasswordView;
@BindView(R.id.password_container)
TextInputLayout mPasswordContainerView;
@BindView(R.id.edt_owncloudRootPath) EditText mOc_root_path_View;
@BindView(R.id.cb_AllowAllSSLCertificates) CheckBox mCbDisableHostnameVerificationView;
@BindView(R.id.imgView_ShowPassword) ImageView mImageViewShowPwd;
Expand All @@ -131,9 +134,10 @@ public void accountAccessGranted(final Account account) {
try {
SingleSignOnAccount singleAccount = AccountImporter.BlockingGetAuthToken(getActivity(), account);
mUsernameView.setText(singleAccount.username);
mPasswordView.setText(singleAccount.password);
mPasswordContainerView.setVisibility(View.GONE);
mPasswordView.setText("Dummy");
mOc_root_path_View.setText(singleAccount.url);
mCbDisableHostnameVerificationView.setChecked(singleAccount.disableHostnameVerification);
mCbDisableHostnameVerificationView.setVisibility(View.GONE);
this.importedAccount = account;
} catch (Exception e) {
e.printStackTrace();
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
@@ -1,4 +1,4 @@
include ':News-Android-App', ':ownCloud-Account-Importer'
include ':News-Android-App'
include ':Changeloglib:ChangeLogLibrary'
include ':MaterialShowcaseView:library'

0 comments on commit 227bb7c

Please sign in to comment.