Skip to content

Commit

Permalink
feat: add license header
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Mar 28, 2024
1 parent 00c055c commit b1e4ad0
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ android/keystores/debug.keystore
lib
lib-esm
coverage
*.tgz

Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.clickstreamreactnative

import com.amazonaws.logging.LogFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.clickstreamreactnative

import com.facebook.react.ReactPackage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.clickstreamreactnativeexample

import com.facebook.react.ReactActivity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.clickstreamreactnativeexample

import android.app.Application
Expand Down
6 changes: 6 additions & 0 deletions ios/ClickstreamReactNative-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#import <React/RCTBridgeModule.h>
#import <React/RCTViewManager.h>
6 changes: 6 additions & 0 deletions ios/ClickstreamReactNative.mm
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#import <React/RCTBridgeModule.h>

@interface RCT_EXTERN_MODULE(ClickstreamReactNative, NSObject)
Expand Down
6 changes: 6 additions & 0 deletions ios/ClickstreamReactNative.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//
// Copyright Amazon.com Inc. or its affiliates.
// All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
import Amplify

@objc(ClickstreamReactNative)
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@
"android/build.gradle",
"android/gradle.properties",
"ios/Clickstream/Sources",
"ios/ClickstreamReactNative-Bridging-Header.h",
"ios/ClickstreamReactNative.mm",
"ios/ClickstreamReactNative.swift",
"ios/ClickstreamReactNative*",
"*.podspec",
"!**/__tests__",
"!**/.*"
Expand Down
12 changes: 12 additions & 0 deletions src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
describe('ClickstreamAnalytics test', () => {
test('test add', () => {
expect(3 * 7).toBe(21);
Expand Down

0 comments on commit b1e4ad0

Please sign in to comment.