From 6727b36b9895e294735d64e228de9af7fc8a22b8 Mon Sep 17 00:00:00 2001 From: "Hector A. Narvaez" Date: Mon, 17 Jul 2023 12:26:34 -0500 Subject: [PATCH] Add license header to non gms api classes --- .../drive/nongms/OmhNonGmsStorageClientImpl.kt | 16 ++++++++++++++++ .../drive/nongms/OmhNonGmsStorageFactoryImpl.kt | 16 ++++++++++++++++ .../drive/nongms/data/GoogleStorageApiService.kt | 16 ++++++++++++++++ .../data/repository/NonGmsFileRepositoryImpl.kt | 16 ++++++++++++++++ .../nongms/data/retrofit/GoogleRetrofitImpl.kt | 16 ++++++++++++++++ .../nongms/data/retrofit/StorageAuthenticator.kt | 16 ++++++++++++++++ .../source/NonGmsFileRemoteDataSourceImpl.kt | 16 ++++++++++++++++ .../data/source/body/CreateFileRequestBody.kt | 16 ++++++++++++++++ .../nongms/data/source/mapper/DataMappers.kt | 16 ++++++++++++++++ .../source/response/FileListRemoteResponse.kt | 16 ++++++++++++++++ .../data/source/response/FileRemoteResponse.kt | 16 ++++++++++++++++ .../api/drive/nongms/data/utils/Extensions.kt | 16 ++++++++++++++++ 12 files changed, 192 insertions(+) diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageClientImpl.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageClientImpl.kt index 7bb1c47d..ab4bb453 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageClientImpl.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageClientImpl.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms import com.omh.android.auth.api.OmhAuthClient diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageFactoryImpl.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageFactoryImpl.kt index 555ee4f8..0bfa74ba 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageFactoryImpl.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhNonGmsStorageFactoryImpl.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms import androidx.annotation.Keep diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/GoogleStorageApiService.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/GoogleStorageApiService.kt index 1713c20d..b6ef6422 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/GoogleStorageApiService.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/GoogleStorageApiService.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data import com.omh.android.storage.api.drive.nongms.data.source.body.CreateFileRequestBody diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/repository/NonGmsFileRepositoryImpl.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/repository/NonGmsFileRepositoryImpl.kt index a3f74935..5a7d21f7 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/repository/NonGmsFileRepositoryImpl.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/repository/NonGmsFileRepositoryImpl.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.repository import com.omh.android.storage.api.data.source.OmhFileRemoteDataSource diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/GoogleRetrofitImpl.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/GoogleRetrofitImpl.kt index 914ad154..592b2d3c 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/GoogleRetrofitImpl.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/GoogleRetrofitImpl.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.retrofit import com.omh.android.auth.api.OmhCredentials diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/StorageAuthenticator.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/StorageAuthenticator.kt index 4fbc3537..beaa467a 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/StorageAuthenticator.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/retrofit/StorageAuthenticator.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.retrofit import com.omh.android.auth.api.OmhCredentials diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/NonGmsFileRemoteDataSourceImpl.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/NonGmsFileRemoteDataSourceImpl.kt index dd2f5ca4..c3b711e4 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/NonGmsFileRemoteDataSourceImpl.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/NonGmsFileRemoteDataSourceImpl.kt @@ -1,5 +1,21 @@ package com.omh.android.storage.api.drive.nongms.data.source +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import android.webkit.MimeTypeMap import com.omh.android.storage.api.data.source.OmhFileRemoteDataSource import com.omh.android.storage.api.domain.model.OmhFile diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/body/CreateFileRequestBody.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/body/CreateFileRequestBody.kt index 5575e632..6d65fc99 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/body/CreateFileRequestBody.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/body/CreateFileRequestBody.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.source.body internal data class CreateFileRequestBody( diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/mapper/DataMappers.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/mapper/DataMappers.kt index 4f3e35e6..05ebf051 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/mapper/DataMappers.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/mapper/DataMappers.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.source.mapper import com.omh.android.storage.api.domain.model.OmhFile diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileListRemoteResponse.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileListRemoteResponse.kt index c075322e..24568437 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileListRemoteResponse.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileListRemoteResponse.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.source.response import androidx.annotation.Keep diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileRemoteResponse.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileRemoteResponse.kt index 59b54c23..c97df01f 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileRemoteResponse.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/source/response/FileRemoteResponse.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.source.response import androidx.annotation.Keep diff --git a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/utils/Extensions.kt b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/utils/Extensions.kt index 61a8ae53..3b562183 100644 --- a/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/utils/Extensions.kt +++ b/storage-api-drive-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/data/utils/Extensions.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 Open Mobile Hub + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.omh.android.storage.api.drive.nongms.data.utils import okhttp3.ResponseBody