Skip to content

🤩 Multiple Image Picker V.2.0 Release 🚀 #180

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

Merged
merged 75 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 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
39c1cf0
Merge pull request #173 from baronha/nitro
baronha Dec 5, 2024
9540401
✨ feat: adding docusaurus
baronha Dec 5, 2024
1358875
✨ feat: add config.mdx
baronha Dec 5, 2024
ad82858
✨ feat: add RESULT.mdx
baronha Dec 5, 2024
802afdf
✨ feat: doing add docs for getting started
baronha Dec 5, 2024
4505bda
✨ feat: migrate docs -> @gorhom/docusaurus-preset
baronha Dec 5, 2024
df9f484
✨ feat: add patch file for doc
baronha Dec 5, 2024
02a379f
🐛 fix: remove isShowAssetNumber option
baronha Dec 6, 2024
0134976
✨ feat: add more document
baronha Dec 6, 2024
52ba145
✨ feat: done /docs and refactor /example
baronha Dec 6, 2024
8f19472
✨ feat: add more component for /example
baronha Dec 6, 2024
c03d614
✨ feat: add more library for /example
baronha Dec 6, 2024
613b665
✨ feat: add more section /example
baronha Dec 6, 2024
e9db6ae
✨ feat: add more option for /example
baronha Dec 6, 2024
caf1c8f
✨ feat: add more option for /example
baronha Dec 7, 2024
1b7706f
✨ feat: add more option
baronha Dec 7, 2024
86aa84a
✨ feat: add minDuration for Android, add language on /example
baronha Dec 8, 2024
9232689
✨ feat: add minDuration, maxDuration
baronha Dec 8, 2024
7a98c6d
✨ feat: improve README
baronha Dec 9, 2024
ef54484
Update README.md
baronha Dec 9, 2024
31e4710
Update README.md
baronha Dec 9, 2024
309def8
feat: add video player document
baronha Dec 9, 2024
c2c50e8
✨ feat: deploy docs website
baronha Dec 9, 2024
ad5ea32
🚑 fix: document
baronha Dec 9, 2024
0362f9c
🚑 fix: Document Website
baronha Dec 9, 2024
dd12899
🚑 Fix: fix onPress Image /example
baronha Dec 9, 2024
40fbf0e
✨ feat: yarn instead of npm
baronha Dec 9, 2024
3ba760c
🚑 fix: base url docusaurus
baronha Dec 9, 2024
8fd06c6
🐛 fix: add README for example && fix document
baronha Dec 9, 2024
d2e8726
✨ feat: change editUrl
baronha Dec 9, 2024
d3cc6df
✨ feat: add more document
baronha Dec 9, 2024
8187c65
Merge pull request #183 from baronha/feature/open-crop
baronha Dec 9, 2024
604d85d
✨ feat: add custom crop ratio
baronha Dec 10, 2024
bed75ea
✨ feat: add more option for crop, ratio, default ratio for both platform
baronha Dec 11, 2024
9227ce5
✨ feat: add more option for crop, ratio, default ratio for both platform
baronha Dec 11, 2024
677b316
✨ feat: add check image for cropper
baronha Dec 11, 2024
3693506
Merge pull request #184 from baronha/feature/open-crop
baronha Dec 11, 2024
5297307
✨ feat: done open-crop
baronha Dec 11, 2024
a996d84
✨ feat: done handle preview on iOS
baronha Dec 12, 2024
c34170f
✨ feat: done open preview on Android
baronha Dec 12, 2024
f0b513e
♻️ refactor: change params openPreview | improve GIF on iOS
baronha Dec 12, 2024
ec5ba02
✨ feat: add doc for Preview
baronha Dec 12, 2024
9359353
Merge pull request #186 from baronha/feature/open-preview
baronha Dec 12, 2024
e50038b
⏪ fix: Lost code on Preview Android
baronha Dec 12, 2024
f6a44ab
♻️ refactor: remove compress when picker -> Too Slow
baronha Dec 13, 2024
b3244ef
✨ feat: add camera config, remove allowedCamera props
baronha Dec 13, 2024
c7bd60e
✨ feat: release 2.0.0
baronha Dec 13, 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
  •  
  •  
  •  
53 changes: 53 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- v.2.0
paths:
- 'docs/**'

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn

- name: Install dependencies
working-directory: docs
run: yarn install --frozen-lockfile
- name: Build docs
working-directory: docs
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/build

deploy:
name: Deploy to GitHub Pages
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
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", "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
246 changes: 63 additions & 183 deletions README.md

Large diffs are not rendered by default.

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