From fed4843ec333098f6f6c7f989aafe95b95060bfd Mon Sep 17 00:00:00 2001 From: Brent Dimmig Date: Tue, 5 Apr 2022 16:36:24 -0400 Subject: [PATCH] Update Hammerhead copyright in source code (#4) --- copyright.yml | 21 +++++++++++++ .../io/hammerhead/sdk/v0/KeyValueStore.kt | 3 +- .../main/java/io/hammerhead/sdk/v0/Module.kt | 3 +- .../io/hammerhead/sdk/v0/ModuleFactoryI.kt | 3 +- .../sdk/v0/RideLifecycleListener.kt | 3 +- .../java/io/hammerhead/sdk/v0/RideState.kt | 3 +- .../java/io/hammerhead/sdk/v0/SdkContext.kt | 3 +- .../hammerhead/sdk/v0/card/FitFileListener.kt | 3 +- .../io/hammerhead/sdk/v0/card/PostRideCard.kt | 3 +- .../io/hammerhead/sdk/v0/card/RideDetails.kt | 3 +- .../io/hammerhead/sdk/v0/card/RideDetailsI.kt | 3 +- .../hammerhead/sdk/v0/datatype/Dependency.kt | 3 +- .../hammerhead/sdk/v0/datatype/SdkDataType.kt | 3 +- .../v0/datatype/formatter/BuiltInFormatter.kt | 3 +- .../sdk/v0/datatype/formatter/SdkFormatter.kt | 3 +- .../transformer/BuiltInTransformer.kt | 3 +- .../v0/datatype/transformer/SdkTransformer.kt | 3 +- .../sdk/v0/datatype/view/BuiltInView.kt | 3 +- .../sdk/v0/datatype/view/SdkView.kt | 3 +- .../java/io/hammerhead/sample/Constants.kt | 3 +- .../io/hammerhead/sample/DetailActivity.kt | 3 +- .../java/io/hammerhead/sample/MainActivity.kt | 3 +- .../io/hammerhead/sample/SampleApplication.kt | 3 +- .../samplemodule/java/SampleModule.java | 5 ++-- .../java/appval/AppValDataType.java | 5 ++-- .../java/appval/AppValFormatter.java | 5 ++-- .../java/appval/AppValTransformer.java | 5 ++-- .../java/customspeed/CustomSpeedDataType.java | 5 ++-- .../java/customspeed/CustomSpeedSdkView.java | 5 ++-- .../java/powerhr/PowerHeartRateDataType.java | 5 ++-- .../powerhr/PowerHeartRateTransformer.java | 5 ++-- .../samplemodule/kotlin/LineChart.kt | 3 +- .../samplemodule/kotlin/RideCard.kt | 3 +- .../samplemodule/kotlin/SampleModule.kt | 3 +- .../samplemodule/kotlin/SdkInitReceiver.kt | 3 +- .../kotlin/appval/AppValDataType.kt | 3 +- .../kotlin/appval/AppValFormatter.kt | 3 +- .../kotlin/appval/AppValTransformer.kt | 3 +- .../kotlin/customspeed/CustomSpeedDataType.kt | 3 +- .../kotlin/customspeed/CustomSpeedSdkView.kt | 3 +- .../kotlin/powerhr/PowerHeartRateDataType.kt | 3 +- .../powerhr/PowerHeartRateTransformer.kt | 3 +- .../samplemodule/ModuleFactoryTest.kt | 3 +- .../samplemodule/SampleModuleTest.kt | 3 +- scripts/pre-commit | 30 ------------------- 45 files changed, 115 insertions(+), 81 deletions(-) create mode 100644 copyright.yml delete mode 100755 scripts/pre-commit diff --git a/copyright.yml b/copyright.yml new file mode 100644 index 0000000..e410f29 --- /dev/null +++ b/copyright.yml @@ -0,0 +1,21 @@ +extensions: + .java: + .kt: +exclude: + karoo-sdk/build: + sample/build: +block_comment: true +header: + - 'Copyright (c) [year] Hammerhead Navigation Inc.' + - '' + - 'Licensed under the Apache License, Version 2.0 (the "License");' + - 'you may not use this file except in compliance with the License.' + - 'You may obtain a copy of the License at' + - '' + - 'http://www.apache.org/licenses/LICENSE-2.0' + - '' + - 'Unless required by applicable law or agreed to in writing, software' + - 'distributed under the License is distributed on an "AS IS" BASIS,' + - 'WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.' + - 'See the License for the specific language governing permissions and' + - 'limitations under the License.' diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/KeyValueStore.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/KeyValueStore.kt index ea5ba0d..b5e5ad4 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/KeyValueStore.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/KeyValueStore.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0 import android.content.ContentValues diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/Module.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/Module.kt index 232f8b4..0031776 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/Module.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/Module.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0 import android.content.Intent diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/ModuleFactoryI.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/ModuleFactoryI.kt index a11e742..d96e71e 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/ModuleFactoryI.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/ModuleFactoryI.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0 /** diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideLifecycleListener.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideLifecycleListener.kt index a80b910..139bf17 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideLifecycleListener.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideLifecycleListener.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0 /** diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideState.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideState.kt index 8e01fcf..7ec64ca 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideState.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/RideState.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0 /** diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/SdkContext.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/SdkContext.kt index e2a02a3..5e89078 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/SdkContext.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/SdkContext.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0 import android.content.Context diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/FitFileListener.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/FitFileListener.kt index 7d6e25c..4411604 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/FitFileListener.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/FitFileListener.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.card import com.garmin.fit.DeveloperFieldDescription diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/PostRideCard.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/PostRideCard.kt index 79bee88..6ccc953 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/PostRideCard.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/PostRideCard.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.card import android.view.LayoutInflater diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetails.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetails.kt index b17b903..5e71585 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetails.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetails.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.card /** diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetailsI.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetailsI.kt index be68ce9..960ed72 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetailsI.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/card/RideDetailsI.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.card /** diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/Dependency.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/Dependency.kt index 2b0ab96..1fb940b 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/Dependency.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/Dependency.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype import io.hammerhead.sdk.v0.datatype.transformer.SdkTransformer diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/SdkDataType.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/SdkDataType.kt index 40142a3..3628bab 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/SdkDataType.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/SdkDataType.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype import android.graphics.drawable.Drawable diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/BuiltInFormatter.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/BuiltInFormatter.kt index efa06e6..a069232 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/BuiltInFormatter.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/BuiltInFormatter.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype.formatter import io.hammerhead.sdk.v0.datatype.view.SdkView diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/SdkFormatter.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/SdkFormatter.kt index 29f2576..fbcf9aa 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/SdkFormatter.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/formatter/SdkFormatter.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype.formatter /** diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/BuiltInTransformer.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/BuiltInTransformer.kt index 6343fa8..6353758 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/BuiltInTransformer.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/BuiltInTransformer.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype.transformer import io.hammerhead.sdk.v0.SdkContext diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/SdkTransformer.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/SdkTransformer.kt index 243dd39..49c9c18 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/SdkTransformer.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/transformer/SdkTransformer.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype.transformer import io.hammerhead.sdk.v0.RideLifecycleListener diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/BuiltInView.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/BuiltInView.kt index 4b4db01..f8bcac8 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/BuiltInView.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/BuiltInView.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype.view import android.content.Context diff --git a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/SdkView.kt b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/SdkView.kt index 2e8ec7f..d2ebfb3 100644 --- a/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/SdkView.kt +++ b/karoo-sdk/src/main/java/io/hammerhead/sdk/v0/datatype/view/SdkView.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sdk.v0.datatype.view import android.content.Context diff --git a/sample/src/main/java/io/hammerhead/sample/Constants.kt b/sample/src/main/java/io/hammerhead/sample/Constants.kt index 0ef9296..b3e8870 100644 --- a/sample/src/main/java/io/hammerhead/sample/Constants.kt +++ b/sample/src/main/java/io/hammerhead/sample/Constants.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sample const val APP_VAL = "appval" diff --git a/sample/src/main/java/io/hammerhead/sample/DetailActivity.kt b/sample/src/main/java/io/hammerhead/sample/DetailActivity.kt index 4907dc6..7f2fac6 100644 --- a/sample/src/main/java/io/hammerhead/sample/DetailActivity.kt +++ b/sample/src/main/java/io/hammerhead/sample/DetailActivity.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sample import android.content.Intent diff --git a/sample/src/main/java/io/hammerhead/sample/MainActivity.kt b/sample/src/main/java/io/hammerhead/sample/MainActivity.kt index b86442f..66a984e 100644 --- a/sample/src/main/java/io/hammerhead/sample/MainActivity.kt +++ b/sample/src/main/java/io/hammerhead/sample/MainActivity.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sample import android.os.Bundle diff --git a/sample/src/main/java/io/hammerhead/sample/SampleApplication.kt b/sample/src/main/java/io/hammerhead/sample/SampleApplication.kt index 044429f..9d4c631 100644 --- a/sample/src/main/java/io/hammerhead/sample/SampleApplication.kt +++ b/sample/src/main/java/io/hammerhead/sample/SampleApplication.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.sample import android.app.Application diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/SampleModule.java b/sample/src/main/java/io/hammerhead/samplemodule/java/SampleModule.java index 9be52c3..58b951f 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/SampleModule.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/SampleModule.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java; import org.jetbrains.annotations.NotNull; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValDataType.java b/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValDataType.java index 5875527..bebd0b3 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValDataType.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValDataType.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java.appval; import org.jetbrains.annotations.NotNull; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValFormatter.java b/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValFormatter.java index 385342f..40aaec3 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValFormatter.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValFormatter.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java.appval; import org.jetbrains.annotations.NotNull; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValTransformer.java b/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValTransformer.java index bb487ef..58f3e16 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValTransformer.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/appval/AppValTransformer.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java.appval; import org.jetbrains.annotations.NotNull; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedDataType.java b/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedDataType.java index 2949710..7d30609 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedDataType.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedDataType.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java.customspeed; import org.jetbrains.annotations.NotNull; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedSdkView.java b/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedSdkView.java index b85d8a2..b35db1d 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedSdkView.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/customspeed/CustomSpeedSdkView.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java.customspeed; import android.content.Context; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateDataType.java b/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateDataType.java index 7ee5cf4..fa51e19 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateDataType.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateDataType.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java.powerhr; import android.graphics.drawable.Drawable; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateTransformer.java b/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateTransformer.java index e356c75..fc67d50 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateTransformer.java +++ b/sample/src/main/java/io/hammerhead/samplemodule/java/powerhr/PowerHeartRateTransformer.java @@ -1,5 +1,5 @@ -/* - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. +/** + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.java.powerhr; import org.jetbrains.annotations.NotNull; diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/LineChart.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/LineChart.kt index 5d77011..de74fe6 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/LineChart.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/LineChart.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin import android.content.Context diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/RideCard.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/RideCard.kt index 0c07057..c5ca742 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/RideCard.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/RideCard.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin import android.content.Intent diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SampleModule.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SampleModule.kt index 291fb6e..73c8a34 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SampleModule.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SampleModule.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin import io.hammerhead.samplemodule.kotlin.appval.AppValDataType diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SdkInitReceiver.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SdkInitReceiver.kt index f402f79..474b97b 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SdkInitReceiver.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/SdkInitReceiver.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin import android.content.BroadcastReceiver diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValDataType.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValDataType.kt index 7e9a367..f463e07 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValDataType.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValDataType.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin.appval import io.hammerhead.sdk.v0.SdkContext diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValFormatter.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValFormatter.kt index 987a075..864a0d0 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValFormatter.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValFormatter.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin.appval import io.hammerhead.sdk.v0.datatype.formatter.SdkFormatter diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValTransformer.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValTransformer.kt index 5863b42..77e9070 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValTransformer.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/appval/AppValTransformer.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin.appval import io.hammerhead.sdk.v0.RideState diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedDataType.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedDataType.kt index a6d3079..4767dd7 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedDataType.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedDataType.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin.customspeed import io.hammerhead.sdk.v0.SdkContext diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedSdkView.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedSdkView.kt index 346b7b7..dae7c60 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedSdkView.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/customspeed/CustomSpeedSdkView.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin.customspeed import android.content.Context diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateDataType.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateDataType.kt index d9f3784..0c11d75 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateDataType.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateDataType.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin.powerhr import android.graphics.drawable.Drawable diff --git a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateTransformer.kt b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateTransformer.kt index fce9604..47e61f4 100644 --- a/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateTransformer.kt +++ b/sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateTransformer.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule.kotlin.powerhr import io.hammerhead.sdk.v0.SdkContext diff --git a/sample/src/test/java/io/hammerhead/samplemodule/ModuleFactoryTest.kt b/sample/src/test/java/io/hammerhead/samplemodule/ModuleFactoryTest.kt index 7b898e3..9e3f027 100644 --- a/sample/src/test/java/io/hammerhead/samplemodule/ModuleFactoryTest.kt +++ b/sample/src/test/java/io/hammerhead/samplemodule/ModuleFactoryTest.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule import android.content.ContentResolver diff --git a/sample/src/test/java/io/hammerhead/samplemodule/SampleModuleTest.kt b/sample/src/test/java/io/hammerhead/samplemodule/SampleModuleTest.kt index 6b0ce25..fb01073 100644 --- a/sample/src/test/java/io/hammerhead/samplemodule/SampleModuleTest.kt +++ b/sample/src/test/java/io/hammerhead/samplemodule/SampleModuleTest.kt @@ -1,5 +1,5 @@ /** - * Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved. + * Copyright (c) 2021 Hammerhead Navigation Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package io.hammerhead.samplemodule import android.content.ContentResolver diff --git a/scripts/pre-commit b/scripts/pre-commit deleted file mode 100755 index c565bf2..0000000 --- a/scripts/pre-commit +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Add pre-commit hook with: -# ln -s ../../scripts/pre-commit .git/hooks/pre-commit - -files_without_header=() - -# Retrieve the list of newly added files -source_files=$(find karoo-sdk/src sample/src -name '*.kt' -o -name '*.java') -if [ -n "$source_files" ] -then - # Check for Copyright statement - for source_file in $source_files; do - files_without_header+=($(grep -L "Copyright 2021 Hammerhead Navigation, Inc. All Rights Reserved." $source_file)) - done - - if [ -n "$files_without_header" ] - then - echo "Copyright license header not found in the following files:" - for file in "${files_without_header[@]}" - do - : - echo " - $file"; - done - exit 1; - else - echo "All new files have updated license header."; - exit 0; - fi -fi \ No newline at end of file