Giter Site home page Giter Site logo

andreadelfante / predicateflow Goto Github PK

View Code? Open in Web Editor NEW
103.0 3.0 10.0 1.93 MB

Write amazing, strong-typed and easy-to-read NSPredicate.

License: MIT License

Ruby 3.66% Swift 96.31% Shell 0.04%
cocoapods flow autogenerated code-generation swift ios macos watchos tvos realmswift

predicateflow's Introduction

๐Ÿ’ซ About Me:

๐Ÿ”ญ I am a Software Engineer, perfectionist, and detail-oriented.
๐Ÿ’ป I'm currently working as a Senior Software Engineer @hlpy
๐Ÿค I love giving my contribution to generate value, working with an eye for quality.
๐ŸŒฑ I am constantly looking for new challenges, thanks to that I can better expand my skills.

๐ŸŒ Socials:

Facebook Instagram LinkedIn Twitter

๐Ÿ’ป Tech Stack:

AWS Dart Java Markdown Python PHP Swift Flutter Laravel IOS ANDROID LINUX Docker Jira Kubernetes

๐Ÿ“Š GitHub Stats:



๐Ÿฆ Latest Tweet


predicateflow's People

Contributors

andreadelfante avatar dependabot[bot] avatar phlippieb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

predicateflow's Issues

LinkingObject of Realm skipped

When PredicateFlow generates PredicateFlow.generated.swift with PredicateFlow-Realm template it skips LinkingObject of Realm

PredicateFlow-Realm.stencil' does not exist or is not readable.

I followed the installation instructions (with the PredicateFlow-Realm part), but I get this error:

error: '/Users/[...]/Pods/PredicateFlow/PredicateFlow/Templates/PredicateFlow-Realm.stencil' does not exist or is not readable.

Indeed, after adding pod 'PredicateFlow/Realm' to my Podfile and running pod install, my Pods/PredicateFlow-directory does not contain any .stencil files.

I'm running Xcode Version 10.3 with CocoaPods 1.7.5.

Compiling for iOS 8.0, but module 'RealmSwift' has a minimum deployment target of iOS 9.0

PredicateFlow doesn't compile when installed on a fresh project through CocoaPods. This seems to be because it is configured with a minimum deployment target of iOS 8.0, while depending on RealmSwift, which is configured with a minimum target of 9.0.

To reproduce:

  1. Create a new iOS project
  2. pod init
  3. Add pod 'PredicateFlow' and pod 'PredicateFlow/Realm' to the podfile
  4. pod install
  5. Build your workspace

You should see an error like

Compiling for iOS 8.0, but module 'RealmSwift' has a minimum deployment target of iOS 9.0: /.../Library/Developer/Xcode/DerivedData/.../Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

I think it would be fixed by changing this library's CocoaPods configuration so that the minimum deployment target is 9.0.

Group operator bug

private func findAll(date: Date, userId: String) -> Results {
let startDate = date.startDay()
let endDate = date.endDay()

	return fetchAll(userId: userId)
		.filter(
			PredicateBuilder(Schema.dateBegin.between(startDate, endDate))
				.or(condition1)
				.or(condition2)
				.and(condition3))
				.query()
		)
}

private func findAll(userId: String) -> Results {
return realm
.objects(Periods.self)
.filter(Schema.user.is(userId))
.sorted(Schema.id.descending())
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.