Skip to content

Commit 233c628

Browse files
committed
Add copyright headers and OSS compliance footer
Fixes T261228226: OSS compliance failures in executorch-examples. Changes: - Added Meta BSD-style copyright headers to all 48 source files (.py, .sh, .pro, .kt, .gradle.kts, .cpp) that were missing them - Appended License, Terms of Use, Privacy Policy, and Copyright statement to README.md The copyright header uses the standard Meta format: Copyright (c) Meta Platforms, Inc. and affiliates. Licensed under the BSD-style license found in the LICENSE file.
1 parent bf24ba4 commit 233c628

49 files changed

Lines changed: 387 additions & 13 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,14 @@ Example apps and demos using PyTorch's [ExecuTorch](https://github.com/pytorch/e
22

33
## License
44
ExecuTorch is BSD licensed, as found in the LICENSE file.
5+
6+
## License
7+
8+
This source code is licensed under the BSD-style license found in the
9+
LICENSE file in the root directory of this source tree.
10+
11+
---
12+
13+
Copyright © 2025 Meta Platforms, Inc
14+
15+
[Terms of Use](https://opensource.fb.com/legal/terms) | [Privacy Policy](https://opensource.fb.com/legal/privacy)

Yolo/android/app/proguard-rules.pro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
# Add project specific ProGuard rules here.
28
# You can control the set of applied configuration files using the
39
# proguardFiles setting in build.gradle.
@@ -18,4 +24,4 @@
1824

1925
# If you keep the line number information, uncomment this to
2026
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
27+
#-renamesourcefileattribute SourceFile

cifar/android/CifarETTrainingDemo/app/build.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
plugins {
210
alias(libs.plugins.android.application)
311
alias(libs.plugins.kotlin.android)
@@ -67,4 +75,4 @@ dependencies {
6775
androidTestImplementation(libs.androidx.ui.test.junit4)
6876
debugImplementation(libs.androidx.ui.tooling)
6977
debugImplementation(libs.androidx.ui.test.manifest)
70-
}
78+
}

cifar/android/CifarETTrainingDemo/app/proguard-rules.pro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
# Add project specific ProGuard rules here.
28
# You can control the set of applied configuration files using the
39
# proguardFiles setting in build.gradle.
@@ -18,4 +24,4 @@
1824

1925
# If you keep the line number information, uncomment this to
2026
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
27+
#-renamesourcefileattribute SourceFile

cifar/android/CifarETTrainingDemo/app/src/androidTest/java/com/example/democifar10/ExampleInstrumentedTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.democifar10
210

311
import androidx.test.platform.app.InstrumentationRegistry

cifar/android/CifarETTrainingDemo/app/src/main/java/com/example/democifar10/Cifar10ImageExtractor.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.democifar10
210

311
import android.content.Context

cifar/android/CifarETTrainingDemo/app/src/main/java/com/example/democifar10/ImageTransformations.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.democifar10
210

311
import kotlin.random.Random

cifar/android/CifarETTrainingDemo/app/src/main/java/com/example/democifar10/MainActivity.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.democifar10
210

311
import android.graphics.Bitmap

cifar/android/CifarETTrainingDemo/app/src/main/java/com/example/democifar10/ui/theme/Color.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.democifar10.ui.theme
210

311
import androidx.compose.ui.graphics.Color
@@ -8,4 +16,4 @@ val Pink80 = Color(0xFFEFB8C8)
816

917
val Purple40 = Color(0xFF6650a4)
1018
val PurpleGrey40 = Color(0xFF625b71)
11-
val Pink40 = Color(0xFF7D5260)
19+
val Pink40 = Color(0xFF7D5260)

cifar/android/CifarETTrainingDemo/app/src/main/java/com/example/democifar10/ui/theme/Theme.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
package com.example.democifar10.ui.theme
210

311
import android.app.Activity
@@ -45,4 +53,4 @@ fun DemoCIFAR10Theme(
4553
typography = Typography,
4654
content = content
4755
)
48-
}
56+
}

0 commit comments

Comments
 (0)