From cdec2cf25af221a616c722bf95c62d20b1417fa2 Mon Sep 17 00:00:00 2001 From: Prateek Srivastava Date: Mon, 16 Jul 2018 17:04:54 -0700 Subject: [PATCH] Generate license headers with spotless --- .../java/com/segment/analytics/E2ETest.java | 23 ++++++++++++++ .../analytics/webhook/WebhookService.java | 23 ++++++++++++++ .../analytics/sample/MainActivity.java | 5 ++-- .../segment/analytics/sample/SampleApp.java | 23 ++++++++++++++ .../analytics/sample/MainActivity.java | 23 ++++++++++++++ .../java/com/segment/analytics/Utils.java | 23 ++++++++++++++ .../analytics/test/AliasPayloadBuilder.java | 23 ++++++++++++++ .../analytics/test/GroupPayloadBuilder.java | 23 ++++++++++++++ .../test/IdentifyPayloadBuilder.java | 23 ++++++++++++++ .../analytics/test/ScreenPayloadBuilder.java | 23 ++++++++++++++ .../analytics/test/TrackPayloadBuilder.java | 23 ++++++++++++++ .../PhoneAnalyticsListenerService.java | 5 ++-- .../com/segment/analytics/WearAnalytics.java | 5 ++-- .../com/segment/analytics/WearDispatcher.java | 23 ++++++++++++++ .../com/segment/analytics/WearPayload.java | 23 ++++++++++++++ .../segment/analytics/WearScreenPayload.java | 23 ++++++++++++++ .../segment/analytics/WearTrackPayload.java | 23 ++++++++++++++ .../java/com/segment/analytics/Analytics.java | 5 ++-- .../segment/analytics/AnalyticsContext.java | 5 ++-- .../segment/analytics/BooleanPreference.java | 23 ++++++++++++++ .../com/segment/analytics/Cartographer.java | 5 ++-- .../java/com/segment/analytics/Client.java | 5 ++-- .../segment/analytics/ConnectionFactory.java | 23 ++++++++++++++ .../java/com/segment/analytics/Crypto.java | 23 ++++++++++++++ .../analytics/GetAdvertisingIdTask.java | 23 ++++++++++++++ .../analytics/IntegrationOperation.java | 23 ++++++++++++++ .../com/segment/analytics/Middleware.java | 23 ++++++++++++++ .../java/com/segment/analytics/Options.java | 5 ++-- .../com/segment/analytics/PayloadQueue.java | 5 ++-- .../segment/analytics/ProjectSettings.java | 5 ++-- .../com/segment/analytics/Properties.java | 5 ++-- .../java/com/segment/analytics/QueueFile.java | 30 ++++++++++++------- .../analytics/RealMiddlewareChain.java | 23 ++++++++++++++ .../segment/analytics/SegmentIntegration.java | 23 ++++++++++++++ .../java/com/segment/analytics/Stats.java | 23 ++++++++++++++ .../com/segment/analytics/StatsSnapshot.java | 23 ++++++++++++++ .../java/com/segment/analytics/Traits.java | 5 ++-- .../java/com/segment/analytics/ValueMap.java | 23 ++++++++++++++ .../analytics/integrations/AliasPayload.java | 5 ++-- .../analytics/integrations/BasePayload.java | 5 ++-- .../analytics/integrations/GroupPayload.java | 5 ++-- .../integrations/IdentifyPayload.java | 5 ++-- .../analytics/integrations/Integration.java | 23 ++++++++++++++ .../analytics/integrations/Logger.java | 23 ++++++++++++++ .../analytics/integrations/ScreenPayload.java | 5 ++-- .../analytics/integrations/TrackPayload.java | 5 ++-- .../analytics/internal/Iso8601Utils.java | 23 ++++++++++++++ .../segment/analytics/internal/Private.java | 23 ++++++++++++++ .../com/segment/analytics/internal/Utils.java | 5 ++-- .../android/net/http/AndroidHttpClient.java | 23 ++++++++++++++ .../analytics/AnalyticsBuilderTest.java | 5 ++-- .../analytics/AnalyticsContextTest.java | 23 ++++++++++++++ .../com/segment/analytics/AnalyticsTest.java | 23 ++++++++++++++ .../analytics/BatchPayloadWriterTest.java | 23 ++++++++++++++ .../segment/analytics/CartographerTest.java | 23 ++++++++++++++ .../com/segment/analytics/ClientTest.java | 23 ++++++++++++++ .../com/segment/analytics/CryptoTest.java | 23 ++++++++++++++ .../analytics/GetAdvertisingIdTaskTest.java | 23 ++++++++++++++ .../analytics/IntegrationOperationTest.java | 23 ++++++++++++++ .../com/segment/analytics/LoggerTest.java | 23 ++++++++++++++ .../com/segment/analytics/MiddlewareTest.java | 23 ++++++++++++++ .../com/segment/analytics/OptionsTest.java | 23 ++++++++++++++ .../segment/analytics/PayloadQueueTest.java | 23 ++++++++++++++ .../analytics/ProjectSettingsTest.java | 23 ++++++++++++++ .../com/segment/analytics/PropertiesTest.java | 23 ++++++++++++++ .../com/segment/analytics/QueueFileTest.java | 25 ++++++++++++++-- .../analytics/SegmentIntegrationTest.java | 23 ++++++++++++++ .../java/com/segment/analytics/StatsTest.java | 5 ++-- .../java/com/segment/analytics/TestUtils.java | 23 ++++++++++++++ .../com/segment/analytics/TraitsTest.java | 23 ++++++++++++++ .../java/com/segment/analytics/Utils.java | 23 ++++++++++++++ .../segment/analytics/ValueMapCacheTest.java | 23 ++++++++++++++ .../com/segment/analytics/ValueMapTest.java | 23 ++++++++++++++ .../integrations/AliasPayloadTest.java | 23 ++++++++++++++ .../integrations/BasePayloadTest.java | 23 ++++++++++++++ .../integrations/GroupPayloadTest.java | 23 ++++++++++++++ .../integrations/IdentifyPayloadTest.java | 23 ++++++++++++++ .../integrations/ScreenPayloadTest.java | 23 ++++++++++++++ .../integrations/TrackPayloadTest.java | 23 ++++++++++++++ .../analytics/internal/Iso8601UtilsTest.java | 23 ++++++++++++++ .../segment/analytics/internal/UtilsTest.java | 5 ++-- gradle/android.gradle | 14 +++++++++ 82 files changed, 1411 insertions(+), 79 deletions(-) diff --git a/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/E2ETest.java b/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/E2ETest.java index a09478a8d..edf4d0f1f 100644 --- a/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/E2ETest.java +++ b/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/E2ETest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/webhook/WebhookService.java b/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/webhook/WebhookService.java index fc783f7a0..d6d37be4d 100644 --- a/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/webhook/WebhookService.java +++ b/analytics-samples/analytics-sample/src/androidTest/java/com/segment/analytics/webhook/WebhookService.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.webhook; import java.util.List; diff --git a/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/MainActivity.java b/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/MainActivity.java index 58b866531..33a52cbb4 100644 --- a/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/MainActivity.java +++ b/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/MainActivity.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.sample; import android.app.Activity; diff --git a/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/SampleApp.java b/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/SampleApp.java index 476e9ece1..193e24673 100644 --- a/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/SampleApp.java +++ b/analytics-samples/analytics-sample/src/main/java/com/segment/analytics/sample/SampleApp.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.sample; import android.app.Application; diff --git a/analytics-samples/analytics-wear-sample/src/main/java/com/segment/analytics/sample/MainActivity.java b/analytics-samples/analytics-wear-sample/src/main/java/com/segment/analytics/sample/MainActivity.java index 301b6df6b..5844c63d6 100644 --- a/analytics-samples/analytics-wear-sample/src/main/java/com/segment/analytics/sample/MainActivity.java +++ b/analytics-samples/analytics-wear-sample/src/main/java/com/segment/analytics/sample/MainActivity.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.sample; import android.app.Activity; diff --git a/analytics-tests/src/main/java/com/segment/analytics/Utils.java b/analytics-tests/src/main/java/com/segment/analytics/Utils.java index 5fc8e4fd9..9e4699f30 100644 --- a/analytics-tests/src/main/java/com/segment/analytics/Utils.java +++ b/analytics-tests/src/main/java/com/segment/analytics/Utils.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import java.util.LinkedHashMap; diff --git a/analytics-tests/src/main/java/com/segment/analytics/test/AliasPayloadBuilder.java b/analytics-tests/src/main/java/com/segment/analytics/test/AliasPayloadBuilder.java index 743a1f427..6a7295143 100644 --- a/analytics-tests/src/main/java/com/segment/analytics/test/AliasPayloadBuilder.java +++ b/analytics-tests/src/main/java/com/segment/analytics/test/AliasPayloadBuilder.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.test; import static com.segment.analytics.Utils.createContext; diff --git a/analytics-tests/src/main/java/com/segment/analytics/test/GroupPayloadBuilder.java b/analytics-tests/src/main/java/com/segment/analytics/test/GroupPayloadBuilder.java index 7b27351f1..f36d52711 100644 --- a/analytics-tests/src/main/java/com/segment/analytics/test/GroupPayloadBuilder.java +++ b/analytics-tests/src/main/java/com/segment/analytics/test/GroupPayloadBuilder.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.test; import static com.segment.analytics.Utils.createContext; diff --git a/analytics-tests/src/main/java/com/segment/analytics/test/IdentifyPayloadBuilder.java b/analytics-tests/src/main/java/com/segment/analytics/test/IdentifyPayloadBuilder.java index ca0b35f3d..14bcdad28 100644 --- a/analytics-tests/src/main/java/com/segment/analytics/test/IdentifyPayloadBuilder.java +++ b/analytics-tests/src/main/java/com/segment/analytics/test/IdentifyPayloadBuilder.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.test; import static com.segment.analytics.Utils.createContext; diff --git a/analytics-tests/src/main/java/com/segment/analytics/test/ScreenPayloadBuilder.java b/analytics-tests/src/main/java/com/segment/analytics/test/ScreenPayloadBuilder.java index b78c2ab00..10b465859 100644 --- a/analytics-tests/src/main/java/com/segment/analytics/test/ScreenPayloadBuilder.java +++ b/analytics-tests/src/main/java/com/segment/analytics/test/ScreenPayloadBuilder.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.test; import static com.segment.analytics.Utils.createContext; diff --git a/analytics-tests/src/main/java/com/segment/analytics/test/TrackPayloadBuilder.java b/analytics-tests/src/main/java/com/segment/analytics/test/TrackPayloadBuilder.java index d865e42cd..4d0b80bfd 100644 --- a/analytics-tests/src/main/java/com/segment/analytics/test/TrackPayloadBuilder.java +++ b/analytics-tests/src/main/java/com/segment/analytics/test/TrackPayloadBuilder.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.test; import static com.segment.analytics.Utils.createContext; diff --git a/analytics-wear/src/main/java/com/segment/analytics/PhoneAnalyticsListenerService.java b/analytics-wear/src/main/java/com/segment/analytics/PhoneAnalyticsListenerService.java index 66c5253eb..77fb2a846 100644 --- a/analytics-wear/src/main/java/com/segment/analytics/PhoneAnalyticsListenerService.java +++ b/analytics-wear/src/main/java/com/segment/analytics/PhoneAnalyticsListenerService.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import android.annotation.SuppressLint; diff --git a/analytics-wear/src/main/java/com/segment/analytics/WearAnalytics.java b/analytics-wear/src/main/java/com/segment/analytics/WearAnalytics.java index 0aa2a8d04..602469137 100644 --- a/analytics-wear/src/main/java/com/segment/analytics/WearAnalytics.java +++ b/analytics-wear/src/main/java/com/segment/analytics/WearAnalytics.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static com.segment.analytics.internal.Utils.isNullOrEmpty; diff --git a/analytics-wear/src/main/java/com/segment/analytics/WearDispatcher.java b/analytics-wear/src/main/java/com/segment/analytics/WearDispatcher.java index ad53c91fb..b8db650f6 100644 --- a/analytics-wear/src/main/java/com/segment/analytics/WearDispatcher.java +++ b/analytics-wear/src/main/java/com/segment/analytics/WearDispatcher.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static android.os.Process.THREAD_PRIORITY_BACKGROUND; diff --git a/analytics-wear/src/main/java/com/segment/analytics/WearPayload.java b/analytics-wear/src/main/java/com/segment/analytics/WearPayload.java index 492620a41..9f3c5d04f 100644 --- a/analytics-wear/src/main/java/com/segment/analytics/WearPayload.java +++ b/analytics-wear/src/main/java/com/segment/analytics/WearPayload.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import com.segment.analytics.integrations.BasePayload; diff --git a/analytics-wear/src/main/java/com/segment/analytics/WearScreenPayload.java b/analytics-wear/src/main/java/com/segment/analytics/WearScreenPayload.java index e0dc57560..e3fe82a50 100644 --- a/analytics-wear/src/main/java/com/segment/analytics/WearScreenPayload.java +++ b/analytics-wear/src/main/java/com/segment/analytics/WearScreenPayload.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import java.util.Map; diff --git a/analytics-wear/src/main/java/com/segment/analytics/WearTrackPayload.java b/analytics-wear/src/main/java/com/segment/analytics/WearTrackPayload.java index 80f945ca6..1d53c3e24 100644 --- a/analytics-wear/src/main/java/com/segment/analytics/WearTrackPayload.java +++ b/analytics-wear/src/main/java/com/segment/analytics/WearTrackPayload.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import java.util.Map; diff --git a/analytics/src/main/java/com/segment/analytics/Analytics.java b/analytics/src/main/java/com/segment/analytics/Analytics.java index f1636ae1e..2e77529b1 100644 --- a/analytics/src/main/java/com/segment/analytics/Analytics.java +++ b/analytics/src/main/java/com/segment/analytics/Analytics.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static com.segment.analytics.internal.Utils.assertNotNull; diff --git a/analytics/src/main/java/com/segment/analytics/AnalyticsContext.java b/analytics/src/main/java/com/segment/analytics/AnalyticsContext.java index ac1be4556..4715f1aca 100644 --- a/analytics/src/main/java/com/segment/analytics/AnalyticsContext.java +++ b/analytics/src/main/java/com/segment/analytics/AnalyticsContext.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static android.Manifest.permission.ACCESS_NETWORK_STATE; diff --git a/analytics/src/main/java/com/segment/analytics/BooleanPreference.java b/analytics/src/main/java/com/segment/analytics/BooleanPreference.java index 6f40c95e0..74687e240 100644 --- a/analytics/src/main/java/com/segment/analytics/BooleanPreference.java +++ b/analytics/src/main/java/com/segment/analytics/BooleanPreference.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import android.content.SharedPreferences; diff --git a/analytics/src/main/java/com/segment/analytics/Cartographer.java b/analytics/src/main/java/com/segment/analytics/Cartographer.java index 77c93d6f7..bafe24286 100644 --- a/analytics/src/main/java/com/segment/analytics/Cartographer.java +++ b/analytics/src/main/java/com/segment/analytics/Cartographer.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import android.util.JsonReader; diff --git a/analytics/src/main/java/com/segment/analytics/Client.java b/analytics/src/main/java/com/segment/analytics/Client.java index 4284f44d8..1d0cd017d 100644 --- a/analytics/src/main/java/com/segment/analytics/Client.java +++ b/analytics/src/main/java/com/segment/analytics/Client.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static com.segment.analytics.internal.Utils.getInputStream; diff --git a/analytics/src/main/java/com/segment/analytics/ConnectionFactory.java b/analytics/src/main/java/com/segment/analytics/ConnectionFactory.java index b3cfa7a93..7e078357d 100644 --- a/analytics/src/main/java/com/segment/analytics/ConnectionFactory.java +++ b/analytics/src/main/java/com/segment/analytics/ConnectionFactory.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import android.util.Base64; diff --git a/analytics/src/main/java/com/segment/analytics/Crypto.java b/analytics/src/main/java/com/segment/analytics/Crypto.java index 9f7ea2580..a350d78c1 100644 --- a/analytics/src/main/java/com/segment/analytics/Crypto.java +++ b/analytics/src/main/java/com/segment/analytics/Crypto.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import java.io.InputStream; diff --git a/analytics/src/main/java/com/segment/analytics/GetAdvertisingIdTask.java b/analytics/src/main/java/com/segment/analytics/GetAdvertisingIdTask.java index 1d02f9de5..e0703ba1d 100644 --- a/analytics/src/main/java/com/segment/analytics/GetAdvertisingIdTask.java +++ b/analytics/src/main/java/com/segment/analytics/GetAdvertisingIdTask.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import android.content.ContentResolver; diff --git a/analytics/src/main/java/com/segment/analytics/IntegrationOperation.java b/analytics/src/main/java/com/segment/analytics/IntegrationOperation.java index ffae7fba0..a27339c90 100644 --- a/analytics/src/main/java/com/segment/analytics/IntegrationOperation.java +++ b/analytics/src/main/java/com/segment/analytics/IntegrationOperation.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static com.segment.analytics.Options.ALL_INTEGRATIONS_KEY; diff --git a/analytics/src/main/java/com/segment/analytics/Middleware.java b/analytics/src/main/java/com/segment/analytics/Middleware.java index 6a89b9531..2bac9864f 100644 --- a/analytics/src/main/java/com/segment/analytics/Middleware.java +++ b/analytics/src/main/java/com/segment/analytics/Middleware.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import com.segment.analytics.integrations.BasePayload; diff --git a/analytics/src/main/java/com/segment/analytics/Options.java b/analytics/src/main/java/com/segment/analytics/Options.java index 6a49375ae..bad987183 100644 --- a/analytics/src/main/java/com/segment/analytics/Options.java +++ b/analytics/src/main/java/com/segment/analytics/Options.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import java.util.LinkedHashMap; diff --git a/analytics/src/main/java/com/segment/analytics/PayloadQueue.java b/analytics/src/main/java/com/segment/analytics/PayloadQueue.java index 549f11e68..d6788e4de 100644 --- a/analytics/src/main/java/com/segment/analytics/PayloadQueue.java +++ b/analytics/src/main/java/com/segment/analytics/PayloadQueue.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import java.io.ByteArrayInputStream; diff --git a/analytics/src/main/java/com/segment/analytics/ProjectSettings.java b/analytics/src/main/java/com/segment/analytics/ProjectSettings.java index 0345fadfd..dbe8f5f1f 100644 --- a/analytics/src/main/java/com/segment/analytics/ProjectSettings.java +++ b/analytics/src/main/java/com/segment/analytics/ProjectSettings.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static java.util.Collections.unmodifiableMap; diff --git a/analytics/src/main/java/com/segment/analytics/Properties.java b/analytics/src/main/java/com/segment/analytics/Properties.java index 66dc21b27..da80a89a2 100644 --- a/analytics/src/main/java/com/segment/analytics/Properties.java +++ b/analytics/src/main/java/com/segment/analytics/Properties.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static com.segment.analytics.internal.Utils.isNullOrEmpty; diff --git a/analytics/src/main/java/com/segment/analytics/QueueFile.java b/analytics/src/main/java/com/segment/analytics/QueueFile.java index a205fe297..48f8642d8 100644 --- a/analytics/src/main/java/com/segment/analytics/QueueFile.java +++ b/analytics/src/main/java/com/segment/analytics/QueueFile.java @@ -1,17 +1,25 @@ -/* - * Copyright (C) 2010 Square, Inc. +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, 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 + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: * - * http://www.apache.org/licenses/LICENSE-2.0 + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. * - * 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. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. */ package com.segment.analytics; diff --git a/analytics/src/main/java/com/segment/analytics/RealMiddlewareChain.java b/analytics/src/main/java/com/segment/analytics/RealMiddlewareChain.java index dcc804aa9..3a7eb6acb 100644 --- a/analytics/src/main/java/com/segment/analytics/RealMiddlewareChain.java +++ b/analytics/src/main/java/com/segment/analytics/RealMiddlewareChain.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import android.support.annotation.NonNull; diff --git a/analytics/src/main/java/com/segment/analytics/SegmentIntegration.java b/analytics/src/main/java/com/segment/analytics/SegmentIntegration.java index 190e46422..d08e2983b 100644 --- a/analytics/src/main/java/com/segment/analytics/SegmentIntegration.java +++ b/analytics/src/main/java/com/segment/analytics/SegmentIntegration.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static android.os.Process.THREAD_PRIORITY_BACKGROUND; diff --git a/analytics/src/main/java/com/segment/analytics/Stats.java b/analytics/src/main/java/com/segment/analytics/Stats.java index 368f6eb20..4d98f9fc2 100644 --- a/analytics/src/main/java/com/segment/analytics/Stats.java +++ b/analytics/src/main/java/com/segment/analytics/Stats.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static android.os.Process.THREAD_PRIORITY_BACKGROUND; diff --git a/analytics/src/main/java/com/segment/analytics/StatsSnapshot.java b/analytics/src/main/java/com/segment/analytics/StatsSnapshot.java index 9cbf42257..71d7c97b3 100644 --- a/analytics/src/main/java/com/segment/analytics/StatsSnapshot.java +++ b/analytics/src/main/java/com/segment/analytics/StatsSnapshot.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import java.util.Map; diff --git a/analytics/src/main/java/com/segment/analytics/Traits.java b/analytics/src/main/java/com/segment/analytics/Traits.java index 0eebce7e0..e0e8efe1d 100644 --- a/analytics/src/main/java/com/segment/analytics/Traits.java +++ b/analytics/src/main/java/com/segment/analytics/Traits.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static com.segment.analytics.internal.Utils.NullableConcurrentHashMap; diff --git a/analytics/src/main/java/com/segment/analytics/ValueMap.java b/analytics/src/main/java/com/segment/analytics/ValueMap.java index 8859e780e..af900d77b 100644 --- a/analytics/src/main/java/com/segment/analytics/ValueMap.java +++ b/analytics/src/main/java/com/segment/analytics/ValueMap.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static com.segment.analytics.internal.Utils.getSegmentSharedPreferences; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/AliasPayload.java b/analytics/src/main/java/com/segment/analytics/integrations/AliasPayload.java index 41d4ba5a1..3d2b5d81f 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/AliasPayload.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/AliasPayload.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.integrations; import static com.segment.analytics.internal.Utils.assertNotNullOrEmpty; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/BasePayload.java b/analytics/src/main/java/com/segment/analytics/integrations/BasePayload.java index b1adfe0de..524e35f9f 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/BasePayload.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/BasePayload.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.integrations; import static com.segment.analytics.internal.Utils.assertNotNull; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/GroupPayload.java b/analytics/src/main/java/com/segment/analytics/integrations/GroupPayload.java index cd063f168..3090078b5 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/GroupPayload.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/GroupPayload.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.integrations; import static com.segment.analytics.internal.Utils.assertNotNull; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/IdentifyPayload.java b/analytics/src/main/java/com/segment/analytics/integrations/IdentifyPayload.java index 938d36f9c..c69242cd0 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/IdentifyPayload.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/IdentifyPayload.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.integrations; import static com.segment.analytics.internal.Utils.assertNotNull; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/Integration.java b/analytics/src/main/java/com/segment/analytics/integrations/Integration.java index 8b505a12e..4cfd9a02f 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/Integration.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/Integration.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import android.app.Activity; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/Logger.java b/analytics/src/main/java/com/segment/analytics/integrations/Logger.java index a07246922..582f461cc 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/Logger.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/Logger.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import static com.segment.analytics.Analytics.LogLevel.DEBUG; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/ScreenPayload.java b/analytics/src/main/java/com/segment/analytics/integrations/ScreenPayload.java index c88815c2b..462c1378f 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/ScreenPayload.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/ScreenPayload.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.integrations; import static com.segment.analytics.internal.Utils.assertNotNull; diff --git a/analytics/src/main/java/com/segment/analytics/integrations/TrackPayload.java b/analytics/src/main/java/com/segment/analytics/integrations/TrackPayload.java index 499ee57c1..ae0d4f3a1 100644 --- a/analytics/src/main/java/com/segment/analytics/integrations/TrackPayload.java +++ b/analytics/src/main/java/com/segment/analytics/integrations/TrackPayload.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.integrations; import static com.segment.analytics.internal.Utils.assertNotNull; diff --git a/analytics/src/main/java/com/segment/analytics/internal/Iso8601Utils.java b/analytics/src/main/java/com/segment/analytics/internal/Iso8601Utils.java index 9f60e2d1e..967cebe75 100644 --- a/analytics/src/main/java/com/segment/analytics/internal/Iso8601Utils.java +++ b/analytics/src/main/java/com/segment/analytics/internal/Iso8601Utils.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.internal; /* diff --git a/analytics/src/main/java/com/segment/analytics/internal/Private.java b/analytics/src/main/java/com/segment/analytics/internal/Private.java index e22ec4a85..8ef72f90c 100644 --- a/analytics/src/main/java/com/segment/analytics/internal/Private.java +++ b/analytics/src/main/java/com/segment/analytics/internal/Private.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.internal; import java.lang.annotation.ElementType; diff --git a/analytics/src/main/java/com/segment/analytics/internal/Utils.java b/analytics/src/main/java/com/segment/analytics/internal/Utils.java index 7deef5128..a049ab48f 100644 --- a/analytics/src/main/java/com/segment/analytics/internal/Utils.java +++ b/analytics/src/main/java/com/segment/analytics/internal/Utils.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.internal; import static android.Manifest.permission.ACCESS_NETWORK_STATE; diff --git a/analytics/src/test/java/android/net/http/AndroidHttpClient.java b/analytics/src/test/java/android/net/http/AndroidHttpClient.java index 2a981cb3d..b8fe19829 100644 --- a/analytics/src/test/java/android/net/http/AndroidHttpClient.java +++ b/analytics/src/test/java/android/net/http/AndroidHttpClient.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package android.net.http; // Workaround for https://github.com/robolectric/robolectric/issues/1862 diff --git a/analytics/src/test/java/com/segment/analytics/AnalyticsBuilderTest.java b/analytics/src/test/java/com/segment/analytics/AnalyticsBuilderTest.java index cdae98fa3..e10e48c6a 100644 --- a/analytics/src/test/java/com/segment/analytics/AnalyticsBuilderTest.java +++ b/analytics/src/test/java/com/segment/analytics/AnalyticsBuilderTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static android.Manifest.permission.INTERNET; diff --git a/analytics/src/test/java/com/segment/analytics/AnalyticsContextTest.java b/analytics/src/test/java/com/segment/analytics/AnalyticsContextTest.java index 03e3ebe1d..203c4d6b9 100644 --- a/analytics/src/test/java/com/segment/analytics/AnalyticsContextTest.java +++ b/analytics/src/test/java/com/segment/analytics/AnalyticsContextTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static android.content.Context.CONNECTIVITY_SERVICE; diff --git a/analytics/src/test/java/com/segment/analytics/AnalyticsTest.java b/analytics/src/test/java/com/segment/analytics/AnalyticsTest.java index 971a37b3e..0a6a1b80b 100644 --- a/analytics/src/test/java/com/segment/analytics/AnalyticsTest.java +++ b/analytics/src/test/java/com/segment/analytics/AnalyticsTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static android.content.Context.MODE_PRIVATE; diff --git a/analytics/src/test/java/com/segment/analytics/BatchPayloadWriterTest.java b/analytics/src/test/java/com/segment/analytics/BatchPayloadWriterTest.java index 25484f6ae..26d2f7665 100644 --- a/analytics/src/test/java/com/segment/analytics/BatchPayloadWriterTest.java +++ b/analytics/src/test/java/com/segment/analytics/BatchPayloadWriterTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/CartographerTest.java b/analytics/src/test/java/com/segment/analytics/CartographerTest.java index df83e0190..82955cb0e 100644 --- a/analytics/src/test/java/com/segment/analytics/CartographerTest.java +++ b/analytics/src/test/java/com/segment/analytics/CartographerTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/ClientTest.java b/analytics/src/test/java/com/segment/analytics/ClientTest.java index 55cbb6aa0..a240a2784 100644 --- a/analytics/src/test/java/com/segment/analytics/ClientTest.java +++ b/analytics/src/test/java/com/segment/analytics/ClientTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static junit.framework.Assert.fail; diff --git a/analytics/src/test/java/com/segment/analytics/CryptoTest.java b/analytics/src/test/java/com/segment/analytics/CryptoTest.java index beb843fc7..e03b0cc52 100644 --- a/analytics/src/test/java/com/segment/analytics/CryptoTest.java +++ b/analytics/src/test/java/com/segment/analytics/CryptoTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/GetAdvertisingIdTaskTest.java b/analytics/src/test/java/com/segment/analytics/GetAdvertisingIdTaskTest.java index 7e8f0bb95..6ede70f3b 100644 --- a/analytics/src/test/java/com/segment/analytics/GetAdvertisingIdTaskTest.java +++ b/analytics/src/test/java/com/segment/analytics/GetAdvertisingIdTaskTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/IntegrationOperationTest.java b/analytics/src/test/java/com/segment/analytics/IntegrationOperationTest.java index a06c9ef74..5d9b98674 100644 --- a/analytics/src/test/java/com/segment/analytics/IntegrationOperationTest.java +++ b/analytics/src/test/java/com/segment/analytics/IntegrationOperationTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.mockito.Mockito.never; diff --git a/analytics/src/test/java/com/segment/analytics/LoggerTest.java b/analytics/src/test/java/com/segment/analytics/LoggerTest.java index 177c3f3e9..9b4cf6989 100644 --- a/analytics/src/test/java/com/segment/analytics/LoggerTest.java +++ b/analytics/src/test/java/com/segment/analytics/LoggerTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/MiddlewareTest.java b/analytics/src/test/java/com/segment/analytics/MiddlewareTest.java index 763d089e1..0e47018f5 100644 --- a/analytics/src/test/java/com/segment/analytics/MiddlewareTest.java +++ b/analytics/src/test/java/com/segment/analytics/MiddlewareTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static com.segment.analytics.TestUtils.grantPermission; diff --git a/analytics/src/test/java/com/segment/analytics/OptionsTest.java b/analytics/src/test/java/com/segment/analytics/OptionsTest.java index a8919aab6..34afaf1cf 100644 --- a/analytics/src/test/java/com/segment/analytics/OptionsTest.java +++ b/analytics/src/test/java/com/segment/analytics/OptionsTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/PayloadQueueTest.java b/analytics/src/test/java/com/segment/analytics/PayloadQueueTest.java index bd235a673..f0d5f4b52 100644 --- a/analytics/src/test/java/com/segment/analytics/PayloadQueueTest.java +++ b/analytics/src/test/java/com/segment/analytics/PayloadQueueTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/ProjectSettingsTest.java b/analytics/src/test/java/com/segment/analytics/ProjectSettingsTest.java index a339d8b76..a51d8fdff 100644 --- a/analytics/src/test/java/com/segment/analytics/ProjectSettingsTest.java +++ b/analytics/src/test/java/com/segment/analytics/ProjectSettingsTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/PropertiesTest.java b/analytics/src/test/java/com/segment/analytics/PropertiesTest.java index fdef0a4ad..b34b122e0 100644 --- a/analytics/src/test/java/com/segment/analytics/PropertiesTest.java +++ b/analytics/src/test/java/com/segment/analytics/PropertiesTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/QueueFileTest.java b/analytics/src/test/java/com/segment/analytics/QueueFileTest.java index ddbb3710f..8101a6a7c 100644 --- a/analytics/src/test/java/com/segment/analytics/QueueFileTest.java +++ b/analytics/src/test/java/com/segment/analytics/QueueFileTest.java @@ -1,5 +1,26 @@ -// Copyright 2010 Square, Inc. - +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static com.segment.analytics.QueueFile.HEADER_LENGTH; diff --git a/analytics/src/test/java/com/segment/analytics/SegmentIntegrationTest.java b/analytics/src/test/java/com/segment/analytics/SegmentIntegrationTest.java index cc18d6c40..ecef758a9 100644 --- a/analytics/src/test/java/com/segment/analytics/SegmentIntegrationTest.java +++ b/analytics/src/test/java/com/segment/analytics/SegmentIntegrationTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static android.Manifest.permission.ACCESS_NETWORK_STATE; diff --git a/analytics/src/test/java/com/segment/analytics/StatsTest.java b/analytics/src/test/java/com/segment/analytics/StatsTest.java index bd598c94c..74238e79e 100644 --- a/analytics/src/test/java/com/segment/analytics/StatsTest.java +++ b/analytics/src/test/java/com/segment/analytics/StatsTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/TestUtils.java b/analytics/src/test/java/com/segment/analytics/TestUtils.java index 2b6d17628..8dc89c8ab 100644 --- a/analytics/src/test/java/com/segment/analytics/TestUtils.java +++ b/analytics/src/test/java/com/segment/analytics/TestUtils.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static android.Manifest.permission.INTERNET; diff --git a/analytics/src/test/java/com/segment/analytics/TraitsTest.java b/analytics/src/test/java/com/segment/analytics/TraitsTest.java index cea361c45..a3aac5817 100644 --- a/analytics/src/test/java/com/segment/analytics/TraitsTest.java +++ b/analytics/src/test/java/com/segment/analytics/TraitsTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/Utils.java b/analytics/src/test/java/com/segment/analytics/Utils.java index e2fb11978..7c216e997 100644 --- a/analytics/src/test/java/com/segment/analytics/Utils.java +++ b/analytics/src/test/java/com/segment/analytics/Utils.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import java.util.LinkedHashMap; diff --git a/analytics/src/test/java/com/segment/analytics/ValueMapCacheTest.java b/analytics/src/test/java/com/segment/analytics/ValueMapCacheTest.java index 576c10e55..8f239f298 100644 --- a/analytics/src/test/java/com/segment/analytics/ValueMapCacheTest.java +++ b/analytics/src/test/java/com/segment/analytics/ValueMapCacheTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/ValueMapTest.java b/analytics/src/test/java/com/segment/analytics/ValueMapTest.java index 702349c7d..3ab24f874 100644 --- a/analytics/src/test/java/com/segment/analytics/ValueMapTest.java +++ b/analytics/src/test/java/com/segment/analytics/ValueMapTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics; import static com.segment.analytics.TestUtils.PROJECT_SETTINGS_JSON_SAMPLE; diff --git a/analytics/src/test/java/com/segment/analytics/integrations/AliasPayloadTest.java b/analytics/src/test/java/com/segment/analytics/integrations/AliasPayloadTest.java index 17e95f727..b74c41ea6 100644 --- a/analytics/src/test/java/com/segment/analytics/integrations/AliasPayloadTest.java +++ b/analytics/src/test/java/com/segment/analytics/integrations/AliasPayloadTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/integrations/BasePayloadTest.java b/analytics/src/test/java/com/segment/analytics/integrations/BasePayloadTest.java index 3e5019842..3962ad57a 100644 --- a/analytics/src/test/java/com/segment/analytics/integrations/BasePayloadTest.java +++ b/analytics/src/test/java/com/segment/analytics/integrations/BasePayloadTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/integrations/GroupPayloadTest.java b/analytics/src/test/java/com/segment/analytics/integrations/GroupPayloadTest.java index 14b65ffaa..14ca0ca1d 100644 --- a/analytics/src/test/java/com/segment/analytics/integrations/GroupPayloadTest.java +++ b/analytics/src/test/java/com/segment/analytics/integrations/GroupPayloadTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import static junit.framework.Assert.fail; diff --git a/analytics/src/test/java/com/segment/analytics/integrations/IdentifyPayloadTest.java b/analytics/src/test/java/com/segment/analytics/integrations/IdentifyPayloadTest.java index 39a2e1e3d..b3bd8b2ef 100644 --- a/analytics/src/test/java/com/segment/analytics/integrations/IdentifyPayloadTest.java +++ b/analytics/src/test/java/com/segment/analytics/integrations/IdentifyPayloadTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import static org.assertj.core.api.Assertions.assertThat; diff --git a/analytics/src/test/java/com/segment/analytics/integrations/ScreenPayloadTest.java b/analytics/src/test/java/com/segment/analytics/integrations/ScreenPayloadTest.java index 27dc88041..f2d333968 100644 --- a/analytics/src/test/java/com/segment/analytics/integrations/ScreenPayloadTest.java +++ b/analytics/src/test/java/com/segment/analytics/integrations/ScreenPayloadTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import static junit.framework.Assert.fail; diff --git a/analytics/src/test/java/com/segment/analytics/integrations/TrackPayloadTest.java b/analytics/src/test/java/com/segment/analytics/integrations/TrackPayloadTest.java index 248706af7..04dae8bc5 100644 --- a/analytics/src/test/java/com/segment/analytics/integrations/TrackPayloadTest.java +++ b/analytics/src/test/java/com/segment/analytics/integrations/TrackPayloadTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.integrations; import static com.segment.analytics.integrations.TrackPayload.EVENT_KEY; diff --git a/analytics/src/test/java/com/segment/analytics/internal/Iso8601UtilsTest.java b/analytics/src/test/java/com/segment/analytics/internal/Iso8601UtilsTest.java index 79f02dfcb..d8b6c2ede 100644 --- a/analytics/src/test/java/com/segment/analytics/internal/Iso8601UtilsTest.java +++ b/analytics/src/test/java/com/segment/analytics/internal/Iso8601UtilsTest.java @@ -1,3 +1,26 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2014 Segment.io, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package com.segment.analytics.internal; import static junit.framework.Assert.fail; diff --git a/analytics/src/test/java/com/segment/analytics/internal/UtilsTest.java b/analytics/src/test/java/com/segment/analytics/internal/UtilsTest.java index d28f6ba09..4a31b5891 100644 --- a/analytics/src/test/java/com/segment/analytics/internal/UtilsTest.java +++ b/analytics/src/test/java/com/segment/analytics/internal/UtilsTest.java @@ -1,7 +1,7 @@ -/* +/** * The MIT License (MIT) * - * Copyright (c) 2014 Segment, Inc. + * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -21,7 +21,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - package com.segment.analytics.internal; import static android.Manifest.permission.ACCESS_NETWORK_STATE; diff --git a/gradle/android.gradle b/gradle/android.gradle index ac8684901..e82f9a9d4 100644 --- a/gradle/android.gradle +++ b/gradle/android.gradle @@ -45,5 +45,19 @@ spotless { java { googleJavaFormat() target '**/*.java' + licenseHeader getLicenseText() } } + +def getLicenseText() { + def rawTextLines = rootProject.file('LICENSE.md').text.split('\n') + def text = "" + for (def line : rawTextLines) { + if (line.trim().length() == 0) { + text = text + '\n *' + line + } else { + text = text + '\n * ' + line + } + } + return '/**' + text + '\n */' +}