Skip to content

Commit

Permalink
Add SPDX header to lib implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Scherzinger <[email protected]>
  • Loading branch information
AndyScherzinger committed Mar 4, 2024
1 parent 3ab3e58 commit 9a327d8
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 143 deletions.
22 changes: 6 additions & 16 deletions lib/src/main/java/com/nextcloud/android/sso/AccountImporter.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
/*
* Nextcloud SingleSignOn
* Nextcloud Android SingleSignOn Library
*
* @author David Luhmer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2021-2023 Stefan Niedermann <[email protected]>
* SPDX-FileCopyrightText: 2018-2019 Tobias Kaminsky <[email protected]>
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

package com.nextcloud.android.sso;

import static android.app.Activity.RESULT_CANCELED;
Expand Down
21 changes: 4 additions & 17 deletions lib/src/main/java/com/nextcloud/android/sso/Constants.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
/*
* Nextcloud SingleSignOn
* Nextcloud Android SingleSignOn Library
*
* @author David Luhmer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2018 David Luhmer <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

package com.nextcloud.android.sso;

public class Constants {
Expand All @@ -37,5 +25,4 @@ public class Constants {
public static final String EXCEPTION_INVALID_REQUEST_URL = "CE_4";
public static final String EXCEPTION_HTTP_REQUEST_FAILED = "CE_5";
public static final String EXCEPTION_ACCOUNT_ACCESS_DECLINED = "CE_6";

}
8 changes: 7 additions & 1 deletion lib/src/main/java/com/nextcloud/android/sso/QueryParam.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
/*
* Nextcloud Android SingleSignOn Library
*
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2021 Tobias Kaminsky <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso;

import java.io.Serializable;

import androidx.annotation.Nullable;


public class QueryParam implements Serializable {

private static final long serialVersionUID = 21523240203234211L; //assign a long value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
package com.nextcloud.android.sso.aidl;

/**
* Nextcloud SingleSignOn
*
* @author David Luhmer
/*
* Nextcloud Android SingleSignOn Library
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2017-2018 David Luhmer <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso.aidl;

public interface IThreadListener {
void onThreadFinished(final Thread thread);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
/*
* Nextcloud SingleSignOn
* Nextcloud Android SingleSignOn Library
*
* @author David Luhmer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2019-2021 Desperate Coder <[email protected]>
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]>
* SPDX-FileCopyrightText: 2019 Tobias Kaminsky <[email protected]>
* SPDX-FileCopyrightText: 2019 Unpublished <[email protected]>
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

package com.nextcloud.android.sso.aidl;


import androidx.core.util.ObjectsCompat;
import androidx.core.util.Pair;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Nextcloud Android SingleSignOn Library
*
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso.aidl;

import android.os.ParcelFileDescriptor;
Expand All @@ -7,25 +14,6 @@
import java.io.InputStream;
import java.io.OutputStream;

/**
* Nextcloud SingleSignOn
*
* @author David Luhmer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

public class ParcelFileDescriptorUtil {

private ParcelFileDescriptorUtil() { }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
/*
* Nextcloud SingleSignOn
* Nextcloud Android SingleSignOn Library
*
* @author Stefan Niedermann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

package com.nextcloud.android.sso.model;

import androidx.annotation.NonNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Nextcloud Android SingleSignOn Library
*
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]>
* SPDX-FileCopyrightText: 2019 Tobias Kaminsky <[email protected]>
* SPDX-FileCopyrightText: 2017-2019 David Luhmer <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso.model;

import android.util.Base64;
Expand All @@ -9,26 +18,6 @@
import java.io.ObjectOutputStream;
import java.io.Serializable;

/**
* Nextcloud SingleSignOn
*
* @author David Luhmer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

public class SingleSignOnAccount implements Serializable {

private static final long serialVersionUID = 21523240203234240L; //assign a long value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Nextcloud Android SingleSignOn Library
*
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso.model.ocs;

import com.google.gson.annotations.SerializedName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Nextcloud Android SingleSignOn Library
*
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso.model.ocs;

import com.google.gson.annotations.SerializedName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Nextcloud Android SingleSignOn Library
*
* SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2021 Stefan Niedermann <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso.model.ocs;

import com.google.gson.annotations.SerializedName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* Nextcloud Android SingleSignOn Library
*
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2023 Stefan Niedermann <[email protected]>
* SPDX-FileCopyrightText: 2018-2019 David Luhmer <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.nextcloud.android.sso.ui;

import android.app.NotificationChannel;
Expand All @@ -14,25 +22,6 @@
import com.nextcloud.android.sso.R;
import com.nextcloud.android.sso.exceptions.SSOException;

/**
* Nextcloud SingleSignOn
*
* @author David Luhmer
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

public final class UiExceptionManager {

private static final int NOTIFICATION_ID = 0;
Expand Down

0 comments on commit 9a327d8

Please sign in to comment.