Skip to content

Commit

Permalink
Merge pull request #173 from baronha/nitro
Browse files Browse the repository at this point in the history
🌈 HXPhoto Picker & Nitro Modules
  • Loading branch information
baronha authored Dec 5, 2024
2 parents 469336a + b881413 commit 39c1cf0
Show file tree
Hide file tree
Showing 301 changed files with 37,918 additions and 30,265 deletions.
29 changes: 22 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Whitelist com.luck.picture.lib package
#
!picture_library/src/com/luck/picture/lib/

# OSX
#
.DS_Store
Expand Down Expand Up @@ -35,19 +31,27 @@ project.xcworkspace

# Android/IJ
#
.idea
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml

# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log

# BUCK
Expand All @@ -56,8 +60,19 @@ buck-out/
android/app/libs
android/keystores/debug.keystore

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Expo
.expo/*
.expo/

# Turborepo
.turbo/

# generated by bob
lib/*
lib/
47 changes: 47 additions & 0 deletions MultipleImagePicker.podspec
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
17 changes: 0 additions & 17 deletions android/.project

This file was deleted.

29 changes: 29 additions & 0 deletions android/CMakeLists.txt
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
)
Loading

0 comments on commit 39c1cf0

Please sign in to comment.