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

🌈 HXPhoto Picker & Nitro Modules #173

Merged
merged 28 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
cce00e1
✨ feat: convert to HXPhotoPicker && using nitro module
baronha Oct 23, 2024
de1b9d7
✨ feat: doing nitro modules
baronha Oct 23, 2024
ee63bb3
✨ feat: add editor for picker
baronha Oct 24, 2024
e099257
✨ feat: done iOS
baronha Oct 24, 2024
db8afbd
✨ feat: config nitro on Android still very very bugs
baronha Oct 26, 2024
56c5e65
✨ migrate to com.margelo.nitro.multipleimagepicker
baronha Oct 27, 2024
d24cbf7
🐛 bug: .R on Android
baronha Oct 27, 2024
48e4d12
✨ feat: upgrade nitro modules 0.14.0
baronha Oct 30, 2024
fe83d76
✨ feat: upgrade nitro 0.17 && improve Picture Selector on Android
baronha Nov 27, 2024
9484dab
✨ feat: add more android
baronha Nov 28, 2024
5caab21
✨ feat: upgrade nitro 0.18 and add more drawable for android xml
baronha Nov 28, 2024
5be0f94
✨ feat: Add more option for Android and save status for asset
baronha Nov 28, 2024
09e8d7a
✨ feat: completed android
baronha Nov 29, 2024
f26d2d1
🐛 fix: handle empty selected
baronha Nov 29, 2024
267e74a
✨ feat: add /example
baronha Dec 2, 2024
a526143
✨ feat: upgrade nitro 0.18.1
baronha Dec 2, 2024
b92d6a4
✨ feat: handle selected assets
baronha Dec 3, 2024
a08b1de
♻️ refactor: remove originalPath
baronha Dec 3, 2024
de829aa
✨ feat: add light mode for iOS
baronha Dec 3, 2024
3159d21
✨ feat: Add button close light mode for iOS
baronha Dec 4, 2024
43753d4
✨ feat: custom more language for Android
baronha Dec 4, 2024
db04a71
♻️ refactor: convert to Language Code
baronha Dec 4, 2024
99b9cb8
♻️ refactor: remove max photo config
baronha Dec 4, 2024
e4d6d85
✨ feat: double check language
baronha Dec 4, 2024
f759ca8
✨ feat: add video quality on android
baronha Dec 4, 2024
dd2259c
✨ feat: add JSDoc for Typescript
baronha Dec 4, 2024
8b9161b
🐛 fix: solved conflict nitro type options
baronha Dec 5, 2024
b881413
✨ feat: Docusaurus
baronha Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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