Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Feb 16, 2020
1 parent 20430a5 commit e9dd5c7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 23 deletions.
8 changes: 6 additions & 2 deletions sample_client/build.gradle
Expand Up @@ -5,11 +5,15 @@ dependencies {
}

android {
compileSdkVersion 28
compileSdkVersion 29

defaultConfig {
minSdkVersion 21
targetSdkVersion 28
targetSdkVersion 29

// This is pretty ugly but manifest placeholders don't seem to work very well when using different modules
// See https://github.com/openid/AppAuth-Android/issues/325
manifestPlaceholders = [appAuthRedirectScheme: '']
}

lintOptions {
Expand Down
Expand Up @@ -40,7 +40,7 @@

import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.OwnCloudClientFactory;
import com.owncloud.android.lib.common.OwnCloudClientManagerFactory;
import com.owncloud.android.lib.common.SingleSessionManager;
import com.owncloud.android.lib.common.authentication.OwnCloudCredentialsFactory;
import com.owncloud.android.lib.common.network.OnDatatransferProgressListener;
import com.owncloud.android.lib.common.operations.OnRemoteOperationListener;
Expand Down Expand Up @@ -82,7 +82,7 @@ public void onCreate(Bundle savedInstanceState) {

final Uri serverUri = Uri.parse(getString(R.string.server_base_url));

OwnCloudClientManagerFactory.setUserAgent(getUserAgent());
SingleSessionManager.setUserAgent(getUserAgent());
mClient = OwnCloudClientFactory.createOwnCloudClient(serverUri, this, true);

mClient.setCredentials(
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
@@ -1,2 +1,4 @@
rootProject.name = 'ownCloud library'

include ':owncloudComLibrary'
include ':sample_client'
19 changes: 0 additions & 19 deletions wait_for_emulator.sh

This file was deleted.

0 comments on commit e9dd5c7

Please sign in to comment.