Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: codebase to prev codegen #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
* This file is generated. Do not modify it manually!
* @codegen-command : phps RepoSync intl_oss_fbt
* @codegen-source : fbsource/xplat/intl/oss-fbt/packages/react-native-fbt/android/src/main/AndroidManifest.xml
* @generated SignedSource<<7a8dcf212926b618b363248fab3053ac>>
*/
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook.react.modules">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/**
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
* This file is generated. Do not modify it manually!
* @codegen-command : phps RepoSync intl_oss_fbt
* @codegen-source : fbsource/xplat/intl/oss-fbt/packages/react-native-fbt/android/src/main/java/com/facebook/react/modules/FbtModule.java
* @generated SignedSource<<c75dd5d57eb42750ed38a715e5031c00>>
*/
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/**
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
* This file is generated. Do not modify it manually!
* @codegen-command : phps RepoSync intl_oss_fbt
* @codegen-source : fbsource/xplat/intl/oss-fbt/packages/react-native-fbt/android/src/main/java/com/facebook/react/modules/FbtPackage.java
* @generated SignedSource<<0f9ce00dd8e5c3e942d18bbeb1211cae>>
*/
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down

This file was deleted.

This file was deleted.

9 changes: 8 additions & 1 deletion ios/RCTFbtModule.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/**
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
* This file is generated. Do not modify it manually!
* @codegen-command : phps RepoSync intl_oss_fbt
* @codegen-source : fbsource/xplat/intl/oss-fbt/packages/react-native-fbt/ios/RCTFbtModule.h
* @generated SignedSource<<db1cbe4343ae136c19b510b55316dbcd>>
*/
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down
9 changes: 8 additions & 1 deletion ios/RCTFbtModule.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/**
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
* This file is generated. Do not modify it manually!
* @codegen-command : phps RepoSync intl_oss_fbt
* @codegen-source : fbsource/xplat/intl/oss-fbt/packages/react-native-fbt/ios/RCTFbtModule.mm
* @generated SignedSource<<c6826314f5a4b28a2186f2bfab94de27>>
*/
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 6 additions & 1 deletion js/NativeFbtModule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
* This file is generated. Do not modify it manually!
* @codegen-command : phps RepoSync intl_oss_fbt
* @codegen-source : fbsource/xplat/intl/oss-fbt/packages/react-native-fbt/js/NativeFbtModule.js
* @generated SignedSource<<96f13b0ee798f970d5e23c3d9873fe80>>
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down
73 changes: 43 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,45 @@
{
"name": "react-native-fbt",
"title": "FBT React Native Module",
"version": "0.0.7",
"description": "Native module to enable the usage of the FBT translation framework in React Native apps.",
"main": "js/NativeFbtModule.js",
"repository": {
"type": "git",
"url": "https://github.com/facebook/fbt.git"
},
"keywords": [
"react-native",
"android",
"ios",
"fbt"
],
"license": "MIT",
"readmeFilename": "README.md",
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"codegenConfig": {
"libraries": [
{
"name": "RCTFbtModuleSpec",
"type": "modules",
"jsSrcsDir": "src"
}
]
}
"RepoSyncHeader": [
"(c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.",
"This file is generated. Do not modify it manually!",
"@codegen-command : phps RepoSync intl_oss_fbt",
"@codegen-source : fbsource\/xplat\/intl\/oss-fbt\/packages\/react-native-fbt\/package.json",
"@generated SignedSource<<a201d927629272fb2f323ae3e8d5f582>>"
],
"name": "react-native-fbt",
"title": "FBT React Native Module",
"version": "0.0.8",
"description": "Native module to enable the usage of the FBT translation framework in React Native apps.",
"main": "js\/NativeFbtModule.js",
"repository": {
"type": "git",
"url": "https:\/\/github.com\/facebook\/fbt.git"
},
"keywords": [
"react-native",
"android",
"ios",
"fbt"
],
"license": "MIT",
"readmeFilename": "README.md",
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"devDependencies": {
"react": "^17.0.2",
"react-native": "^0.66.0"
},
"codegenConfig": {
"libraries": [
{
"name": "ReactNativeFbtSpec",
"type": "modules",
"ios": {},
"android": {},
"jsSrcsDir": "js\/"
}
]
}
}
33 changes: 17 additions & 16 deletions react-native-fbt.podspec
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Copyright (c) Facebook, Inc. and its affiliates.
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

require "json"

folly_version = '2021.06.28.00-v2'
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'

package = JSON.parse(File.read(File.join(__dir__, "package.json")))

folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
folly_version = '2021.06.28.00-v2'

Pod::Spec.new do |s|
s.name = "react-native-fbt"
s.version = package["version"]
s.summary = package["description"]
s.description = "react-native-fbt"
s.homepage = "https://github.com/facebook/fbt.git"
s.license = "MIT"
s.platforms = { :ios => "11.0", :tvos => "11.0" }
s.platforms = { :ios => "12.4", :tvos => "12.4" }
s.compiler_flags = folly_compiler_flags + ' -Wno-nullability-completeness'
s.author = "Facebook, Inc. and its affiliates"
s.source = { :git => "https://github.com/facebook/fbt.git", :tag => "#{s.version}" }
Expand All @@ -26,18 +26,19 @@ Pod::Spec.new do |s|
s.requires_arc = true

s.dependency "React"
s.dependency "RCT-Folly", folly_version

# s.dependency "..."

if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}

s.dependency "React-Codegen"
s.dependency "RCT-Folly", folly_version
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency "ReactCommon/turbomodule/core"
# Enable codegen for this library
use_react_native_codegen!(s, {
:react_native_path => "../react-native",
:js_srcs_dir => "./js",
:library_name => "RCTFbtModuleSpec",
:library_type => "modules",
:modules_output_dir => "./ios",
:output_dir => "./ios"
})
end
end
Loading