A ReactNative module for icloud operation

Overview
Comments
  • Query callbacks, events, etc don't work

    Query callbacks, events, etc don't work

    I have noticed that the callbacks and event callbacks for methods like persist do not work.

    In debugging, I've noticed that the NSMetadataQuery in initAndStartQuery does not return results, and so the notification observers and callbacks do not behave as expected. It looks like the query is started and quickly finished without matching files.

    opened by heyalexchoi 12
  • Allow more flexibility with full and relative cloud container urls

    Allow more flexibility with full and relative cloud container urls

    When you read urls with readDir, you get back a full ICloudURL, not a relative one. When you try to use those URLs to read files, the url has too many iCloudURL components prefixed to it. Made small change to check if the url already has the iCloudPath in the beginning and skips appending if it does. export iCloudContainerPath constant. update getFullICloudURL to not add icloud container path when already present. add excludes to tsconfig.json

    opened by heyalexchoi 6
  • Building android app failing, Expo

    Building android app failing, Expo

    I know the library isn't for android yet however, I am unable to build the app with the library installed, also using Expo.

    [RUN_GRADLEW] > Task :react-native-cloud-store:compileDebugKotlin FAILED
    e: /Users/peter/.gradle/caches/transforms-3/2cfe106a332c6a6f2245988cf5920bcb/transformed/jetified-kotlin-stdlib-common-1.6.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
    [RUN_GRADLEW] e: /Users/peter/.gradle/caches/transforms-3/8fa201288e2c6500b9e1af2f8ed9c77c/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
    [RUN_GRADLEW] e: /Users/peter/.gradle/caches/transforms-3/b6d16718b0badf943a01bd505b26edc1/transformed/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
    [RUN_GRADLEW] e: /Users/peter/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
    [RUN_GRADLEW] e: /Users/peter/.gradle/caches/transforms-3/ef154a7ff5c9e83f423d62f01250b0da/transformed/jetified-react-native-0.70.5-debug-api.jar!/META-INF/ReactAndroid_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
    [RUN_GRADLEW] e: /private/var/folders/rl/9tgdr27n0nj7lm5mt4t58tr80000gn/T/eas-build-local-nodejs/73472bb2-6d1c-4bd9-a04a-5eb6534dd783/build/node_modules/react-native-cloud-store/android/src/main/java/com/reactnativecloudstore/CloudStorePackage.kt: (11, 16): Unresolved reference: listOf
    [RUN_GRADLEW] e: /private/var/folders/rl/9tgdr27n0nj7lm5mt4t58tr80000gn/T/eas-build-local-nodejs/73472bb2-6d1c-4bd9-a04a-5eb6534dd783/build/node_modules/react-native-cloud-store/android/src/main/java/com/reactnativecloudstore/CloudStorePackage.kt: (15, 16): Unresolved reference: emptyList
    [RUN_GRADLEW] w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
    [RUN_GRADLEW] FAILURE: Build completed with 2 failures.
    [RUN_GRADLEW] 1: Task failed with an exception.
    [RUN_GRADLEW] -----------
    [RUN_GRADLEW] * What went wrong:
    [RUN_GRADLEW] Execution failed for task ':react-native-cloud-store:compileDebugKotlin'.
    [RUN_GRADLEW] > Compilation error. See log for more details
    [RUN_GRADLEW] * Try:
    [RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
    [RUN_GRADLEW] > Run with --info or --debug option to get more log output.
    [RUN_GRADLEW] > Run with --scan to get full insights.
    [RUN_GRADLEW] ==============================================================================
    [RUN_GRADLEW] 2: Task failed with an exception.
    [RUN_GRADLEW] -----------
    [RUN_GRADLEW] * What went wrong:
    [RUN_GRADLEW] java.lang.StackOverflowError (no error message)
    [RUN_GRADLEW] * Try:
    [RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
    [RUN_GRADLEW] > Run with --info or --debug option to get more log output.
    [RUN_GRADLEW] > Run with --scan to get full insights.
    [RUN_GRADLEW] ==============================================================================
    [RUN_GRADLEW] * Get more help at https://help.gradle.org
    [RUN_GRADLEW] BUILD FAILED in 2m 44s
    [RUN_GRADLEW] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    [RUN_GRADLEW] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    [RUN_GRADLEW] See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
    [RUN_GRADLEW] Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
    [RUN_GRADLEW] Please consult deprecation warnings for more details.
    [RUN_GRADLEW] 314 actionable tasks: 314 executed
    [RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
    
    
    Build failed
    Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
        Error: npx exited with non-zero code: 1
    
    

    Minimal reproducible example:

    Ensure expo-cli and eas-cli are installed

    Then run

    eas build --profile development or eas build --local --profile development (if you are using a mac)

    https://github.com/psquizzle/icloud-playground-expo.git

    opened by psquizzle 5
  • Build issue with Expo

    Build issue with Expo

    So I have followed the setup instructions in the docs. Including steps in XCode. Container is set up iCloudContainerEnvironment: Development is in the info.plist. The build gets to the end of Fastlane and throws the following error:

    Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "iCloudContainerEnvironment": expected one of {Development, Production}, but no value was provided" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "iCloudContainerEnvironment": expected one of {Development, Production}, but no value was provided}

    Any ideas on how to fix this error?

    opened by psquizzle 5
  • xcode 14 error

    xcode 14 error

    Hello, I am getting an error like this in xcode 14. How can I solve this?

    Stored properties cannot be marked potentially unavailable with '@available'

    opened by devops35 4
  • Make Persist and Upload resolve/reject when download/upload finishes

    Make Persist and Upload resolve/reject when download/upload finishes

    Most straightforward and obvious use of persist and upload IMO is

    // persist something
    await persist(path)
    // do something with it
    await copy(path, destination)
    

    which means you want to know when the upload/download is finished. I modified the way the methods work to resolve / reject when the upload / downloads finish or error.

    opened by heyalexchoi 2
Owner
xiao xin
I should learn to enjoy life 🎨 👨‍🎨
xiao xin
Bitcoin Development Kit - React Native Module

bdk-rn A React Native version of the Bitcon Development Kit (https://bitcoindevkit.org/) Table of Contents Installation Usage Library API Installation

Let there be Lightning 29 Dec 25, 2022
🔥 🔥 🔥Support for ORM operation,Customize the PQL syntax for quick queries,Support dynamic query,Secure thread protection mechanism,Support native operation,Support for XML configuration operations,Support compression, backup, porting MySQL, SQL Server operation,Support transaction operations.

?? ?? ??Support for ORM operation,Customize the PQL syntax for quick queries,Support dynamic query,Secure thread protection mechanism,Support native operation,Support for XML configuration operations,Support compression, backup, porting MySQL, SQL Server operation,Support transaction operations.

null 60 Dec 12, 2022
LOL Champions app: a small Multi-Module demo application to demonstrate modern iOS application tech-stacks with a Multi-module and MVVM architecture

LOL Champions app: a small Multi-Module demo application to demonstrate modern iOS application tech-stacks with a Multi-module and MVVM architecture

Ahmed Nasser 5 Jun 9, 2022
JSONHelper - ✌ Convert anything into anything in one operation; JSON data into class instances, hex strings into UIColor/NSColor, y/n strings to booleans, arrays and dictionaries of these; anything you can make sense of!

JSONHelper Convert anything into anything in one operation; hex strings into UIColor/NSColor, JSON strings into class instances, y/n strings to boolea

Baris Sencan 788 Jul 19, 2022
Operation Oriented Programming in Swift

Flow Flow is a lightweight Swift library for doing operation oriented programming. It enables you to easily define your own, atomic operations, and al

John Sundell 218 Feb 6, 2022
ClassicPhotos is a TableView App demos how to optimize image download and filter with operation queue.

ClassicPhotos ClassicPhotos is a TableView App demos how to optimize image download and filter with operation queue. With Operation and Operation Queu

Kushal Shingote 2 Dec 18, 2021
Unidirectional, transactional, operation-based Store implementation.

Unidirectional, transactional, operation-based Store implementation for Swift and SwiftUI Overview Store eschews MVC in favour of a unidirectional dat

Alex Usbergo 502 Dec 9, 2022
iOS library for device fingerprinting. Does not require server APIs to work, fully client-side operation.

Lightweight iOS library for local device fingerprinting Installation (CocoaPods) # Podfile pod 'FingerprintJS' Note: If you've never used CocoaPods fo

FingerprintJS 45 Dec 17, 2022
CloudCore is a framework that manages syncing between iCloud (CloudKit) and Core Data written on native Swift.

CloudCore CloudCore is a framework that manages syncing between iCloud (CloudKit) and Core Data written on native Swift. Features Leveraging NSPersist

deeje cooley 123 Dec 31, 2022
Zephyr synchronizes specific keys and/or all of your UserDefaults over iCloud using NSUbiquitousKeyValueStore.

Zephyr ??️ Effortlessly sync UserDefaults over iCloud About Zephyr synchronizes specific keys and/or all of your UserDefaults over iCloud using NSUbiq

Arthur Ariel Sabintsev 845 Jan 6, 2023
FileManager replacement for Local, iCloud and Remote (WebDAV/FTP/Dropbox/OneDrive) files -- Swift

This Swift library provide a swifty way to deal with local and remote files and directories in a unified way. This library provides implementaion of W

Amir Abbas Mousavian 890 Jan 6, 2023
Example Xcode swift iOS project for Core Data + iCloud syncing

iCloudCoreDataStarter Hello, I'm Chad. For the last several months I have been working on Sticker Doodle, an app you should go download right now! In

Chad Etzel 521 Dec 27, 2022
Effortlessly synchronize UserDefaults over iCloud.

Zephyr ??️ Effortlessly sync UserDefaults over iCloud About Zephyr synchronizes specific keys and/or all of your UserDefaults over iCloud using NSUbiq

Arthur Ariel Sabintsev 841 Dec 23, 2022
iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.

iCloud Drive is Apple's essential connection between all your devices, Mac, iPhone, iPad, even your Windows PC.While the cost of storage seems expensive in comparison to other online storage services, its advantage is that it works natively across all your devices.

MindInventory 12 Jul 29, 2022
Example of using TOTP with iCloud Keychain in iOS 15

Installation This example needs Ngrok and Ruby 3.0.3+. Setup project with Makefi

Makeeyaf 0 Dec 31, 2021
CloudKit, Apple’s remote data storage service, provides a possibility to store app data using users’ iCloud accounts as a back-end storage service.

CloudKit, Apple’s remote data storage service, provides a possibility to store app data using users’ iCloud accounts as a back-end storage service. He

Yalantis 252 Nov 4, 2022
CodableCloudKit allows you to easily save and retrieve Codable objects to iCloud Database (CloudKit)

CodableCloudKit CodableCloudKit allows you to easily save and retrieve Codable objects to iCloud Database (CloudKit) Features ℹ️ Add CodableCloudKit f

Laurent Grondin 65 Oct 23, 2022
SwiftCloudDrive - An easy to use Swift wrapper around iCloud Drive.

SwiftCloudDrive Author: Drew McCormack (@drewmccormack) An easy to use Swift wrapper around iCloud Drive. SwiftCloudDrive handles complexities like fi

Drew McCormack 11 Dec 21, 2022
Easily integrate Credit Card payments module in iOS App. Swift 4.0

MFCard Buy me a coffee MFCard is an awesome looking Credit Card input & validation control. Written in Swift 3. YOoo, Now MFCard is on Swift 5. Swift

MobileFirst 362 Nov 29, 2022
A Swift material design UI module which paints over the parent view when the switch is on.

A Swift material design UI module which paints over the parent view when the switch is on. We specialize in the designing and coding of c

Ramotion 2.9k Dec 29, 2022