-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from baronha/nitro
🌈 HXPhoto Picker & Nitro Modules
- Loading branch information
Showing
301 changed files
with
37,918 additions
and
30,265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, "package.json"))) | ||
|
||
Pod::Spec.new do |s| | ||
s.name = "MultipleImagePicker" | ||
s.version = package["version"] | ||
s.summary = package["description"] | ||
s.homepage = package["homepage"] | ||
s.license = package["license"] | ||
s.authors = package["author"] | ||
|
||
s.platforms = { :ios => min_ios_version_supported } | ||
s.source = { :git => "https://github.com/baronha/react-native-multiple-image-picker.git", :tag => "#{s.version}" } | ||
|
||
s.source_files = [ | ||
# Implementation (Swift) | ||
"ios/**/*.{swift}", | ||
# Autolinking/Registration (Objective-C++) | ||
"ios/**/*.{m,mm}", | ||
# Implementation (C++ objects) | ||
"cpp/**/*.{hpp,cpp}", | ||
] | ||
|
||
s.resource_bundles = { | ||
"MultipleImagePicker" => ["ios/Assets.xcassets"] | ||
} | ||
|
||
|
||
s.dependency "HXPhotoPicker/Picker/Lite", "4.2.3" | ||
s.dependency "HXPhotoPicker/Editor/Lite", "4.2.3" | ||
|
||
s.pod_target_xcconfig = { | ||
# C++ compiler flags, mainly for folly. | ||
"GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES" | ||
} | ||
|
||
load 'nitrogen/generated/ios/MultipleImagePicker+autolinking.rb' | ||
|
||
|
||
add_nitrogen_files(s) | ||
|
||
s.dependency 'React-jsi' | ||
s.dependency 'React-callinvoker' | ||
|
||
install_modules_dependencies(s) | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
project(MultipleImagePicker) | ||
cmake_minimum_required(VERSION 3.9.0) | ||
|
||
set (PACKAGE_NAME MultipleImagePicker) | ||
set (CMAKE_VERBOSE_MAKEFILE ON) | ||
set (CMAKE_CXX_STANDARD 20) | ||
|
||
# Define C++ library and add all sources | ||
add_library(${PACKAGE_NAME} SHARED | ||
src/main/cpp/cpp-adapter.cpp | ||
) | ||
|
||
# Add Nitrogen specs :) | ||
include(${CMAKE_SOURCE_DIR}/../nitrogen/generated/android/MultipleImagePicker+autolinking.cmake) | ||
|
||
# Set up local includes | ||
include_directories( | ||
"src/main/cpp" | ||
"../cpp" | ||
) | ||
|
||
find_library(LOG_LIB log) | ||
|
||
# Link all libraries together | ||
target_link_libraries( | ||
${PACKAGE_NAME} | ||
${LOG_LIB} | ||
android # <-- Android core | ||
) |
Oops, something went wrong.