Jenkinsによるビルド自動化とTestFlightアップロードはよくWeb上にも情報があるのですが、大概プロジェクトごとにジョブを作る必要があって煩雑でした。
なので、簡単なセットアップで任意のiOSプロジェクトでビルドできる仕組みを作りました!
package schema | |
import ( | |
"log" | |
"github.com/graphql-go/graphql" | |
) | |
// User type | |
type User struct { |
# https://github.com/rmosolgo/graphql-ruby/blob/v1.8.1/lib/graphql/execution/multiplex.rb#L46-L49 | |
def run_all(schema, query_options, *args) | |
queries = query_options.map { |opts| GraphQL::Query.new(schema, nil, opts) } | |
run_queries(schema, queries, *args) | |
end |
# https://github.com/rmosolgo/graphql-ruby/blob/v1.8.1/lib/graphql/schema/member/cached_graphql_definition.rb#L14-L16 | |
def graphql_definition | |
@graphql_definition ||= to_graphql | |
end |
class GraphqlExampleSchema < GraphQL::Schema | |
mutation(Types::MutationType) | |
query(Types::QueryType) | |
end |
# Run "gem install graphql" before executing this file | |
require 'graphql' | |
# Dummy model class | |
class User | |
def self.find_by(id:) | |
OpenStruct.new(id: id, name: 'test user') | |
end | |
end |
# https://github.com/rmosolgo/graphql-ruby/blob/v1.8.1/lib/graphql/execution/multiplex.rb#L77-L98 | |
def run_as_multiplex(multiplex) | |
queries = multiplex.queries | |
# Do as much eager evaluation of the query as possible | |
results = queries.map do |query| | |
begin_query(query) | |
end | |
# Then, work through lazy results in a breadth-first way | |
GraphQL::Execution::Execute::ExecutionFunctions.lazy_resolve_root_selection(results, { multiplex: multiplex }) |
./ios_app_icon.rb project.xcodeproj Release | xargs -n 1 -IICON ./composite.sh ICON ribbon.png | |
./ios_app_icon.rb project.xcodeproj Release | xargs -n 1 -IICON ./replace.sh ICON beta.png |
@implementation TableViewController1 | |
- (void)viewDidLoad | |
{ | |
BaseRequester *requester = [[BaseRequester alloc] initWithPath:@"/recipes" | |
params:@{@"fields":@"id,name"} | |
model:[Recipe class]] | |
self.paginator = [Paginator instantiateWithReuseidentifier:@"recipes" | |
requester:requester | |
perPage:10]; | |
if (self.recipes.count == 0) { |