From e9e6006ab7457e2f97d5a135e13210b8e81d8372 Mon Sep 17 00:00:00 2001 From: pld Date: Fri, 15 Dec 2023 11:52:05 -0500 Subject: [PATCH 1/2] change to bls license --- LICENSE | 68 ++++++++++++++++++++++++++++++++++-------- license-header.txt | 74 ++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 117 insertions(+), 25 deletions(-) diff --git a/LICENSE b/LICENSE index febcf501..3f8d2086 100644 --- a/LICENSE +++ b/LICENSE @@ -1,17 +1,61 @@ -Open Smart Register Platform (OpenSRP), formerly Dristhi software +License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. +“Business Source License” is a trademark of MariaDB Corporation Ab. -Copyright 2012-present +Parameters -Foundation for Research in Health Systems; Sustainable Engineering Lab; Columbia University; and The Special Programme of Research, -Development and Research Training in Human Reproduction (HRP) of the World Health Organization; Ona; mPower Social Enterprise Bangladesh; -Interactive Health Solutions; Summit Institute of Development; Interactive Research and Development; Johns Hopkins University Global -mHealth Institute; Harvard University School of Public Health +Licensor: Ona Systems, Inc. +Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. +Additional Use Grant: You may make production use of the Licensed Work, + provided such use does not include offering the Licensed Work + to third parties on a hosted or embedded basis which is + competitive with Ona Systems' products. +Change Date: Four years from the date the Licensed Work is published. +Change License: MPL 2.0 -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: +For information about alternative licensing arrangements for the Licensed Work, +please contact licensing@ona.io. -http://www.apache.org/licenses/LICENSE-2.0 +Notice -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. +Business Source License 1.1 + +Terms + +The Licensor hereby grants you the right to copy, modify, create derivative +works, redistribute, and make non-production use of the Licensed Work. The +Licensor may make an Additional Use Grant, above, permitting limited production use. + +Effective on the Change Date, or the fourth anniversary of the first publicly +available distribution of a specific version of the Licensed Work under this +License, whichever comes first, the Licensor hereby grants you rights under +the terms of the Change License, and the rights granted in the paragraph +above terminate. + +If your use of the Licensed Work does not comply with the requirements +currently in effect as described in this License, you must purchase a +commercial license from the Licensor, its affiliated entities, or authorized +resellers, or you must refrain from using the Licensed Work. + +All copies of the original and modified Licensed Work, and derivative works +of the Licensed Work, are subject to this License. This License applies +separately for each version of the Licensed Work and the Change Date may vary +for each version of the Licensed Work released by Licensor. + +You must conspicuously display this License on each original or modified copy +of the Licensed Work. If you receive the Licensed Work in original or +modified form from a third party, the terms and conditions set forth in this +License apply to your use of that work. + +Any use of the Licensed Work in violation of this License will automatically +terminate your rights under this License for the current and all other +versions of the Licensed Work. + +This License does not grant you any right in any trademark or logo of +Licensor or its affiliates (provided that you may use a trademark or logo of +Licensor as expressly required by this License). + +TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +TITLE. \ No newline at end of file diff --git a/license-header.txt b/license-header.txt index bd2fcd7c..88ddbed6 100644 --- a/license-header.txt +++ b/license-header.txt @@ -1,15 +1,63 @@ /* - * Copyright 2022-2023 Ona Systems, Inc - * - * 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 - * - * http://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. + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. + * + * Parameters + * + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 2.0 + * + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ From 3c80130db82c70475729b08c3c6e210420db9a30 Mon Sep 17 00:00:00 2001 From: pld Date: Mon, 18 Dec 2023 10:45:40 -0500 Subject: [PATCH 2/2] update license header --- license-header.txt | 28 ++++---- .../p2p/ExampleInstrumentedTest.kt | 68 ++++++++++++++++--- .../search/ui/p2p/BottomSheetScreenTest.kt | 68 ++++++++++++++++--- .../p2p/search/ui/p2p/P2PScreenTest.kt | 68 ++++++++++++++++--- .../ui/p2p/components/ActionableButtonTest.kt | 68 ++++++++++++++++--- .../ui/p2p/components/DeviceListTest.kt | 68 ++++++++++++++++--- .../ui/p2p/components/DialogViewTest.kt | 68 ++++++++++++++++--- .../ui/p2p/components/ProgressStatusTest.kt | 68 ++++++++++++++++--- .../java/org/smartregister/p2p/P2PLibrary.kt | 68 ++++++++++++++++--- .../smartregister/p2p/P2pStatusFragment.kt | 68 ++++++++++++++++--- .../p2p/WifiP2pBroadcastReceiver.kt | 68 ++++++++++++++++--- .../smartregister/p2p/WifiP2pDeviceAdapter.kt | 68 ++++++++++++++++--- .../p2p/authentication/model/DeviceRole.kt | 68 ++++++++++++++++--- .../p2p/dao/P2pReceivedHistoryDao.kt | 68 ++++++++++++++++--- .../p2p/dao/ReceiverTransferDao.kt | 68 ++++++++++++++++--- .../p2p/dao/SenderTransferDao.kt | 68 ++++++++++++++++--- .../p2p/data_sharing/DataSharingStrategy.kt | 68 ++++++++++++++++--- .../p2p/data_sharing/DeviceInfo.kt | 68 ++++++++++++++++--- .../p2p/data_sharing/Manifest.kt | 68 ++++++++++++++++--- .../p2p/data_sharing/OnDeviceFound.kt | 68 ++++++++++++++++--- .../p2p/data_sharing/SyncReceiverHandler.kt | 68 ++++++++++++++++--- .../p2p/data_sharing/SyncSenderHandler.kt | 68 ++++++++++++++++--- .../WifiDirectDataSharingStrategy.kt | 68 ++++++++++++++++--- .../p2p/model/ActionableButtonData.kt | 68 ++++++++++++++++--- .../p2p/model/P2PReceivedHistory.kt | 68 ++++++++++++++++--- .../org/smartregister/p2p/model/P2PState.kt | 68 ++++++++++++++++--- .../p2p/model/ProgressIndicator.kt | 68 ++++++++++++++++--- .../p2p/model/ProgressIndicatorState.kt | 68 ++++++++++++++++--- .../smartregister/p2p/model/RecordCount.kt | 68 ++++++++++++++++--- .../p2p/model/TransferProgress.kt | 68 ++++++++++++++++--- .../smartregister/p2p/payload/BytePayload.kt | 68 ++++++++++++++++--- .../p2p/payload/PayloadContract.kt | 68 ++++++++++++++++--- .../p2p/payload/StringPayload.kt | 68 ++++++++++++++++--- .../p2p/payload/SyncPayloadType.kt | 68 ++++++++++++++++--- .../p2p/search/adapter/DeviceListAdapter.kt | 68 ++++++++++++++++--- .../p2p/search/contract/P2PManagerListener.kt | 68 ++++++++++++++++--- .../search/contract/P2pModeSelectContract.kt | 68 ++++++++++++++++--- .../smartregister/p2p/search/data/JsonData.kt | 68 ++++++++++++++++--- .../p2p/search/ui/BaseViewModel.kt | 68 ++++++++++++++++--- .../p2p/search/ui/P2PDeviceSearchActivity.kt | 68 ++++++++++++++++--- .../p2p/search/ui/P2PReceiverViewModel.kt | 68 ++++++++++++++++--- .../p2p/search/ui/P2PSenderViewModel.kt | 68 ++++++++++++++++--- .../smartregister/p2p/search/ui/UIAction.kt | 68 ++++++++++++++++--- .../p2p/search/ui/p2p/BottomSheetScreen.kt | 68 ++++++++++++++++--- .../p2p/search/ui/p2p/P2PEvent.kt | 68 ++++++++++++++++--- .../p2p/search/ui/p2p/P2PScreen.kt | 68 ++++++++++++++++--- .../p2p/search/ui/p2p/P2PUiState.kt | 68 ++++++++++++++++--- .../p2p/search/ui/p2p/P2PViewModel.kt | 68 ++++++++++++++++--- .../ui/p2p/components/ActionableButton.kt | 68 ++++++++++++++++--- .../search/ui/p2p/components/DeviceList.kt | 68 ++++++++++++++++--- .../search/ui/p2p/components/DialogView.kt | 68 ++++++++++++++++--- .../ui/p2p/components/ProgressStatus.kt | 68 ++++++++++++++++--- .../p2p/search/ui/theme/Colors.kt | 68 ++++++++++++++++--- .../p2p/search/ui/theme/Themes.kt | 68 ++++++++++++++++--- .../org/smartregister/p2p/sync/DataType.kt | 68 ++++++++++++++++--- .../org/smartregister/p2p/utils/Constants.kt | 68 ++++++++++++++++--- .../p2p/utils/DispatcherProvider.kt | 68 ++++++++++++++++--- .../org/smartregister/p2p/utils/P2PUtils.kt | 68 ++++++++++++++++--- .../org/smartregister/p2p/utils/Settings.kt | 68 ++++++++++++++++--- .../ExcludeFromJacocoGeneratedReport.kt | 68 ++++++++++++++++--- .../smartregister/p2p/CoroutineTestRule.kt | 68 ++++++++++++++++--- .../org/smartregister/p2p/ExampleUnitTest.kt | 68 ++++++++++++++++--- .../java/org/smartregister/p2p/OptionsTest.kt | 68 ++++++++++++++++--- .../org/smartregister/p2p/P2PLibraryTest.kt | 68 ++++++++++++++++--- .../smartregister/p2p/StringPayloadTest.kt | 68 ++++++++++++++++--- .../data_sharing/SyncReceiverHandlerTest.kt | 68 ++++++++++++++++--- .../p2p/data_sharing/SyncSenderHandlerTest.kt | 68 ++++++++++++++++--- .../WifiDirectDataSharingStrategyTest.kt | 68 ++++++++++++++++--- .../robolectric/ActivityRobolectricTest.kt | 68 ++++++++++++++++--- .../p2p/robolectric/RobolectricTest.kt | 68 ++++++++++++++++--- .../p2p/robolectric/TestApplication.kt | 68 ++++++++++++++++--- .../search/adapter/DeviceListAdapterTest.kt | 68 ++++++++++++++++--- .../search/ui/P2PDeviceSearchActivityTest.kt | 68 ++++++++++++++++--- .../p2p/search/ui/P2PReceiverViewModelTest.kt | 68 ++++++++++++++++--- .../p2p/search/ui/P2PSenderViewModelTest.kt | 68 ++++++++++++++++--- .../p2p/search/ui/P2PViewModelTest.kt | 68 ++++++++++++++++--- .../smartregister/p2p/sync/DataTypeTest.kt | 68 ++++++++++++++++--- .../smartregister/p2p/utils/P2PUtilsTest.kt | 68 ++++++++++++++++--- .../smartregister/p2p/utils/SettingsTest.kt | 68 ++++++++++++++++--- 79 files changed, 4538 insertions(+), 794 deletions(-) diff --git a/license-header.txt b/license-header.txt index 88ddbed6..903f33d4 100644 --- a/license-header.txt +++ b/license-header.txt @@ -1,9 +1,9 @@ /* * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. * “Business Source License” is a trademark of MariaDB Corporation Ab. - * + * * Parameters - * + * * Licensor: Ona Systems, Inc. * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. * Additional Use Grant: You may make production use of the Licensed Work, @@ -12,49 +12,49 @@ * competitive with Ona Systems' products. * Change Date: Four years from the date the Licensed Work is published. * Change License: MPL 2.0 - * + * * For information about alternative licensing arrangements for the Licensed Work, * please contact licensing@ona.io. - * + * * Notice - * + * * Business Source License 1.1 - * + * * Terms - * + * * The Licensor hereby grants you the right to copy, modify, create derivative * works, redistribute, and make non-production use of the Licensed Work. The * Licensor may make an Additional Use Grant, above, permitting limited production use. - * + * * Effective on the Change Date, or the fourth anniversary of the first publicly * available distribution of a specific version of the Licensed Work under this * License, whichever comes first, the Licensor hereby grants you rights under * the terms of the Change License, and the rights granted in the paragraph * above terminate. - * + * * If your use of the Licensed Work does not comply with the requirements * currently in effect as described in this License, you must purchase a * commercial license from the Licensor, its affiliated entities, or authorized * resellers, or you must refrain from using the Licensed Work. - * + * * All copies of the original and modified Licensed Work, and derivative works * of the Licensed Work, are subject to this License. This License applies * separately for each version of the Licensed Work and the Change Date may vary * for each version of the Licensed Work released by Licensor. - * + * * You must conspicuously display this License on each original or modified copy * of the Licensed Work. If you receive the Licensed Work in original or * modified form from a third party, the terms and conditions set forth in this * License apply to your use of that work. - * + * * Any use of the Licensed Work in violation of this License will automatically * terminate your rights under this License for the current and all other * versions of the Licensed Work. - * + * * This License does not grant you any right in any trademark or logo of * Licensor or its affiliates (provided that you may use a trademark or logo of * Licensor as expressly required by this License). - * + * * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF diff --git a/p2p-lib/src/androidTest/java/org/smartregister/p2p/ExampleInstrumentedTest.kt b/p2p-lib/src/androidTest/java/org/smartregister/p2p/ExampleInstrumentedTest.kt index 3e13a3b7..a53251d2 100644 --- a/p2p-lib/src/androidTest/java/org/smartregister/p2p/ExampleInstrumentedTest.kt +++ b/p2p-lib/src/androidTest/java/org/smartregister/p2p/ExampleInstrumentedTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreenTest.kt b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreenTest.kt index 43644cda..1ef0288c 100644 --- a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreenTest.kt +++ b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreenTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p diff --git a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/P2PScreenTest.kt b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/P2PScreenTest.kt index b982e722..d23d0103 100644 --- a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/P2PScreenTest.kt +++ b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/P2PScreenTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p diff --git a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButtonTest.kt b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButtonTest.kt index cdd9fb01..778d7271 100644 --- a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButtonTest.kt +++ b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButtonTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DeviceListTest.kt b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DeviceListTest.kt index 6fa87949..9083a01d 100644 --- a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DeviceListTest.kt +++ b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DeviceListTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DialogViewTest.kt b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DialogViewTest.kt index 821293a2..f30c5e8c 100644 --- a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DialogViewTest.kt +++ b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/DialogViewTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatusTest.kt b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatusTest.kt index 8ecc4d56..da869dea 100644 --- a/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatusTest.kt +++ b/p2p-lib/src/androidTest/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatusTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/P2PLibrary.kt b/p2p-lib/src/main/java/org/smartregister/p2p/P2PLibrary.kt index cf8733b0..8fd7650d 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/P2PLibrary.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/P2PLibrary.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/P2pStatusFragment.kt b/p2p-lib/src/main/java/org/smartregister/p2p/P2pStatusFragment.kt index d73cf08f..9f0ff9e6 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/P2pStatusFragment.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/P2pStatusFragment.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pBroadcastReceiver.kt b/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pBroadcastReceiver.kt index 1a564ac3..b0cf59d3 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pBroadcastReceiver.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pBroadcastReceiver.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pDeviceAdapter.kt b/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pDeviceAdapter.kt index ced17c11..99904f22 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pDeviceAdapter.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/WifiP2pDeviceAdapter.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/authentication/model/DeviceRole.kt b/p2p-lib/src/main/java/org/smartregister/p2p/authentication/model/DeviceRole.kt index daf1f252..56d16c7a 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/authentication/model/DeviceRole.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/authentication/model/DeviceRole.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.authentication.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/dao/P2pReceivedHistoryDao.kt b/p2p-lib/src/main/java/org/smartregister/p2p/dao/P2pReceivedHistoryDao.kt index ffa51a3f..9c8a5f0d 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/dao/P2pReceivedHistoryDao.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/dao/P2pReceivedHistoryDao.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.dao diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/dao/ReceiverTransferDao.kt b/p2p-lib/src/main/java/org/smartregister/p2p/dao/ReceiverTransferDao.kt index e7dec3b4..6b12515e 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/dao/ReceiverTransferDao.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/dao/ReceiverTransferDao.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.dao diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/dao/SenderTransferDao.kt b/p2p-lib/src/main/java/org/smartregister/p2p/dao/SenderTransferDao.kt index 4b878db6..00438e75 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/dao/SenderTransferDao.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/dao/SenderTransferDao.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.dao diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DataSharingStrategy.kt b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DataSharingStrategy.kt index 37187fa0..8942d73f 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DataSharingStrategy.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DataSharingStrategy.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DeviceInfo.kt b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DeviceInfo.kt index c4e328dc..0a7f44ad 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DeviceInfo.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/DeviceInfo.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/Manifest.kt b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/Manifest.kt index 8b64b5af..bcbff4f4 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/Manifest.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/Manifest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/OnDeviceFound.kt b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/OnDeviceFound.kt index 97b3882d..7655d54b 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/OnDeviceFound.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/OnDeviceFound.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncReceiverHandler.kt b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncReceiverHandler.kt index 69711454..c196f330 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncReceiverHandler.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncReceiverHandler.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncSenderHandler.kt b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncSenderHandler.kt index 37eca8c7..05e0ffce 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncSenderHandler.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/SyncSenderHandler.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategy.kt b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategy.kt index ffb67f82..a3e4f8b4 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategy.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategy.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/model/ActionableButtonData.kt b/p2p-lib/src/main/java/org/smartregister/p2p/model/ActionableButtonData.kt index 503a620c..c3396ee3 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/model/ActionableButtonData.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/model/ActionableButtonData.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PReceivedHistory.kt b/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PReceivedHistory.kt index 79c6b011..246df389 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PReceivedHistory.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PReceivedHistory.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PState.kt b/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PState.kt index afe9ae30..66e6acc4 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PState.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/model/P2PState.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicator.kt b/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicator.kt index ed9d6747..b3e10870 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicator.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicator.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicatorState.kt b/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicatorState.kt index 6e349e6e..5c6a6270 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicatorState.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/model/ProgressIndicatorState.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/model/RecordCount.kt b/p2p-lib/src/main/java/org/smartregister/p2p/model/RecordCount.kt index 35dad459..f7317f0f 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/model/RecordCount.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/model/RecordCount.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/model/TransferProgress.kt b/p2p-lib/src/main/java/org/smartregister/p2p/model/TransferProgress.kt index 4e72f8fb..2a2a7687 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/model/TransferProgress.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/model/TransferProgress.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.model diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/payload/BytePayload.kt b/p2p-lib/src/main/java/org/smartregister/p2p/payload/BytePayload.kt index 2a4a9ae4..9bcee763 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/payload/BytePayload.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/payload/BytePayload.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.payload diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/payload/PayloadContract.kt b/p2p-lib/src/main/java/org/smartregister/p2p/payload/PayloadContract.kt index 0aeced6b..318cfbce 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/payload/PayloadContract.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/payload/PayloadContract.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.payload diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/payload/StringPayload.kt b/p2p-lib/src/main/java/org/smartregister/p2p/payload/StringPayload.kt index b43c8362..5a887dea 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/payload/StringPayload.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/payload/StringPayload.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.payload diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/payload/SyncPayloadType.kt b/p2p-lib/src/main/java/org/smartregister/p2p/payload/SyncPayloadType.kt index 9cbeb9d0..8a56e385 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/payload/SyncPayloadType.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/payload/SyncPayloadType.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.payload diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/adapter/DeviceListAdapter.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/adapter/DeviceListAdapter.kt index 7a9f7808..5f4a374e 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/adapter/DeviceListAdapter.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/adapter/DeviceListAdapter.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.adapter diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2PManagerListener.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2PManagerListener.kt index 5ba2c0a3..d9aaa0d6 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2PManagerListener.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2PManagerListener.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.contract diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2pModeSelectContract.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2pModeSelectContract.kt index 82168a3d..10764d19 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2pModeSelectContract.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/contract/P2pModeSelectContract.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.contract diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/data/JsonData.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/data/JsonData.kt index 1a7d1ef6..bb4b8ff5 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/data/JsonData.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/data/JsonData.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.data diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/BaseViewModel.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/BaseViewModel.kt index 21b51683..0a49a8e8 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/BaseViewModel.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/BaseViewModel.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivity.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivity.kt index 38a91fd5..9a1a75a4 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivity.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivity.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PReceiverViewModel.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PReceiverViewModel.kt index 3b7292e2..ce058e42 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PReceiverViewModel.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PReceiverViewModel.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PSenderViewModel.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PSenderViewModel.kt index ee8edcf4..bb7c9909 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PSenderViewModel.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/P2PSenderViewModel.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/UIAction.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/UIAction.kt index c7c8c714..c104eb02 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/UIAction.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/UIAction.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreen.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreen.kt index b490fc6f..0e1c1c73 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreen.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/BottomSheetScreen.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PEvent.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PEvent.kt index 6d78c232..70d91b66 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PEvent.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PEvent.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PScreen.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PScreen.kt index 0d027b33..a9d0ab00 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PScreen.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PScreen.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PUiState.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PUiState.kt index d6957931..91b2fd2a 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PUiState.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PUiState.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PViewModel.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PViewModel.kt index 48f261ea..0a2f5297 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PViewModel.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/P2PViewModel.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButton.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButton.kt index f0366fe6..575d7ef6 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButton.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ActionableButton.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DeviceList.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DeviceList.kt index 04680cf2..1b8668dc 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DeviceList.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DeviceList.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DialogView.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DialogView.kt index 29f7944f..a1161a87 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DialogView.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/DialogView.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatus.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatus.kt index c37574b1..e23720c2 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatus.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/p2p/components/ProgressStatus.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.p2p.components diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Colors.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Colors.kt index b967c5c8..54f4a074 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Colors.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Colors.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.theme diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Themes.kt b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Themes.kt index 13ec8720..e257ef87 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Themes.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/search/ui/theme/Themes.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui.theme diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/sync/DataType.kt b/p2p-lib/src/main/java/org/smartregister/p2p/sync/DataType.kt index 8f71f3df..27a3be83 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/sync/DataType.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/sync/DataType.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.sync diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/utils/Constants.kt b/p2p-lib/src/main/java/org/smartregister/p2p/utils/Constants.kt index 52b87a6e..04bb11fc 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/utils/Constants.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/utils/Constants.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.utils diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/utils/DispatcherProvider.kt b/p2p-lib/src/main/java/org/smartregister/p2p/utils/DispatcherProvider.kt index 5ead4ae9..5b185437 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/utils/DispatcherProvider.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/utils/DispatcherProvider.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.utils diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/utils/P2PUtils.kt b/p2p-lib/src/main/java/org/smartregister/p2p/utils/P2PUtils.kt index 00d3399e..cba08c92 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/utils/P2PUtils.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/utils/P2PUtils.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.utils diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/utils/Settings.kt b/p2p-lib/src/main/java/org/smartregister/p2p/utils/Settings.kt index 5b5284ae..018e3c30 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/utils/Settings.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/utils/Settings.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.utils diff --git a/p2p-lib/src/main/java/org/smartregister/p2p/utils/annotation/ExcludeFromJacocoGeneratedReport.kt b/p2p-lib/src/main/java/org/smartregister/p2p/utils/annotation/ExcludeFromJacocoGeneratedReport.kt index 5a1c01e2..14c8f9a5 100644 --- a/p2p-lib/src/main/java/org/smartregister/p2p/utils/annotation/ExcludeFromJacocoGeneratedReport.kt +++ b/p2p-lib/src/main/java/org/smartregister/p2p/utils/annotation/ExcludeFromJacocoGeneratedReport.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.utils.annotation diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/CoroutineTestRule.kt b/p2p-lib/src/test/java/org/smartregister/p2p/CoroutineTestRule.kt index ae770a7e..fe0e7e86 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/CoroutineTestRule.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/CoroutineTestRule.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/ExampleUnitTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/ExampleUnitTest.kt index ba9af489..308731ca 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/ExampleUnitTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/ExampleUnitTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/OptionsTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/OptionsTest.kt index 97b4370c..01dbff62 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/OptionsTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/OptionsTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/P2PLibraryTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/P2PLibraryTest.kt index 95e7802a..2042e6fd 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/P2PLibraryTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/P2PLibraryTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/StringPayloadTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/StringPayloadTest.kt index d44b9e83..dd42a00b 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/StringPayloadTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/StringPayloadTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncReceiverHandlerTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncReceiverHandlerTest.kt index e4612675..3409d5f5 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncReceiverHandlerTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncReceiverHandlerTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncSenderHandlerTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncSenderHandlerTest.kt index 78f9fef5..d083bfbe 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncSenderHandlerTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/SyncSenderHandlerTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategyTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategyTest.kt index b9782802..ee353944 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategyTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/data_sharing/WifiDirectDataSharingStrategyTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.data_sharing diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/ActivityRobolectricTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/ActivityRobolectricTest.kt index deb1559f..84063bbe 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/ActivityRobolectricTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/ActivityRobolectricTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.robolectric diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/RobolectricTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/RobolectricTest.kt index 3847c4ad..2b6c8e7b 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/RobolectricTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/RobolectricTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.robolectric diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/TestApplication.kt b/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/TestApplication.kt index 4e149ec7..0364cacb 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/TestApplication.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/robolectric/TestApplication.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.robolectric diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/search/adapter/DeviceListAdapterTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/search/adapter/DeviceListAdapterTest.kt index 6fc0ba4a..54053541 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/search/adapter/DeviceListAdapterTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/search/adapter/DeviceListAdapterTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.adapter diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivityTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivityTest.kt index 44cbce7d..12e6d76e 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivityTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PDeviceSearchActivityTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PReceiverViewModelTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PReceiverViewModelTest.kt index 45935883..84e3c3c2 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PReceiverViewModelTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PReceiverViewModelTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PSenderViewModelTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PSenderViewModelTest.kt index 0abf8808..500784de 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PSenderViewModelTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PSenderViewModelTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PViewModelTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PViewModelTest.kt index 9b0e394f..aa731756 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PViewModelTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/search/ui/P2PViewModelTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.search.ui diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/sync/DataTypeTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/sync/DataTypeTest.kt index cca9bd4e..f4ff2fea 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/sync/DataTypeTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/sync/DataTypeTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.sync diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/utils/P2PUtilsTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/utils/P2PUtilsTest.kt index a638c722..9b8bd0da 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/utils/P2PUtilsTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/utils/P2PUtilsTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.utils diff --git a/p2p-lib/src/test/java/org/smartregister/p2p/utils/SettingsTest.kt b/p2p-lib/src/test/java/org/smartregister/p2p/utils/SettingsTest.kt index f017ed16..7d5a06a9 100644 --- a/p2p-lib/src/test/java/org/smartregister/p2p/utils/SettingsTest.kt +++ b/p2p-lib/src/test/java/org/smartregister/p2p/utils/SettingsTest.kt @@ -1,17 +1,65 @@ /* - * Copyright 2022-2023 Ona Systems, Inc + * License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. + * “Business Source License” is a trademark of MariaDB Corporation Ab. * - * 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 + * Parameters * - * http://www.apache.org/licenses/LICENSE-2.0 + * Licensor: Ona Systems, Inc. + * Licensed Work: android-p2p. The Licensed Work is (c) 2023 Ona Systems, Inc. + * Additional Use Grant: You may make production use of the Licensed Work, + * provided such use does not include offering the Licensed Work + * to third parties on a hosted or embedded basis which is + * competitive with Ona Systems' products. + * Change Date: Four years from the date the Licensed Work is published. + * Change License: MPL 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. + * For information about alternative licensing arrangements for the Licensed Work, + * please contact licensing@ona.io. + * + * Notice + * + * Business Source License 1.1 + * + * Terms + * + * The Licensor hereby grants you the right to copy, modify, create derivative + * works, redistribute, and make non-production use of the Licensed Work. The + * Licensor may make an Additional Use Grant, above, permitting limited production use. + * + * Effective on the Change Date, or the fourth anniversary of the first publicly + * available distribution of a specific version of the Licensed Work under this + * License, whichever comes first, the Licensor hereby grants you rights under + * the terms of the Change License, and the rights granted in the paragraph + * above terminate. + * + * If your use of the Licensed Work does not comply with the requirements + * currently in effect as described in this License, you must purchase a + * commercial license from the Licensor, its affiliated entities, or authorized + * resellers, or you must refrain from using the Licensed Work. + * + * All copies of the original and modified Licensed Work, and derivative works + * of the Licensed Work, are subject to this License. This License applies + * separately for each version of the Licensed Work and the Change Date may vary + * for each version of the Licensed Work released by Licensor. + * + * You must conspicuously display this License on each original or modified copy + * of the Licensed Work. If you receive the Licensed Work in original or + * modified form from a third party, the terms and conditions set forth in this + * License apply to your use of that work. + * + * Any use of the Licensed Work in violation of this License will automatically + * terminate your rights under this License for the current and all other + * versions of the Licensed Work. + * + * This License does not grant you any right in any trademark or logo of + * Licensor or its affiliates (provided that you may use a trademark or logo of + * Licensor as expressly required by this License). + * + * TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON + * AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, + * EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND + * TITLE. */ package org.smartregister.p2p.utils