Skip to content

Commit

Permalink
Merge pull request #180 from baronha/v.2.0
Browse files Browse the repository at this point in the history
🤩 Multiple Image Picker V.2.0 Release 🚀
  • Loading branch information
baronha authored Dec 13, 2024
2 parents 469336a + c7bd60e commit 0e51266
Show file tree
Hide file tree
Showing 361 changed files with 59,468 additions and 30,647 deletions.
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

0 comments on commit 0e51266

Please sign in to comment.