Giter Club home page Giter Club logo

runtime-objc's Issues

Proof of concept: serialize a plan to disk and back again

An ideal proof of concept will be a unit test that is able to encode a plan to disk, read the plan from disk, and ultimately execute the plan in a runtime.

For the purposes of this proof of concept we can use simple plist serialization.

This proof of concept would be best realized as a unit test.

Plan/Performer testing types for ease of test writing

Create two types: TestPlan and TestPerformer.

TestPlan

  • Its performerClass is always TestPerformer.
  • Provide settable block properties to configure performer behavior and execute tests.

TestPerformer

Executes plan blocks at relevant stages.

E.g. addPlan might look like:

- addPlan:plan {
  plan.addPlan();
}

The unit test code would look like:

plan.addPlan = ^{
  // Run some logic.
};
// commit
// XCTAssert statements

Add debug APIs for enumerating the plans and performers in a runtime

The owner of this task must first come up with an API that can be used to enumerate all plans and performers in the scheduler.

The API should be proposed as an addition to the Spec by sending an email to [email protected].

Specifically: propose as an addition to the Scheduler spec as "Feature: inspection".

Once the spec is approved, the API should be submitted for review and committed.

Intended use cases

  • Debugging
  • Console output
  • Inspection tools (LLDB, web inspector, etc.)

Add activity state change test for MDMScheduler

This test must make the scheduler to change its activity state and inform a delegate of the change.

The scheduler's activity state can be changed by adding a plan that does some remote form of execution. For the purposes of the test this remote execution could be instantaneous.

100% test coverage of MDMPerformerGroup

Latest coverage results as of 3b1ddba:

52%     src/private/MDMPerformerGroup.m

Untested methods:

  • - (void)setUpFeaturesForPerformerInfo:(MDMPerformerInfo *)performerInfo delegated performance.
  • - (id<MDMPerforming>)performerForPlan:(id<MDMPlan>)plan for a plan being registered to an existing performer.

Research: State Machine Family?

How can we use state machines for complex multi-state systems with plans that are associated to each state?

Should it be a family?

Update podspec homepage

s.homepage     = "https://github.com/material-motion"

should be

s.homepage     = "https://github.com/material-motion/material-motion-runtime-objc"

Provide a simple "slide in" transition

Blocked by #11, #12.

This transition should be a simple TransitionDirector instance.

Only one plan should be registered: the right view controller "shifting up" during presentation.

Test activity state of the scheduler

Add a plan to the scheduler that kicks off some remote execution. Verify that the scheduler reports its activity state as "active". Similarly, verify that upon completion of the remote execution that the scheduler reports its activity state as "inactive".

This should be tested for zero, one, and many plans.

First draft of the readme

The repo's root readme needs:

  • Overview
  • Adding the code to your project
  • Usage
    • Life of a Plan, in code form

Facebook POP Family

Facebook POP SDK support.

May be similar to CoreAnimation family.

Make POP objects conform to MDMPlan?

100% test coverage of MDMScheduler

Latest report as of e7fb7fd.

 62%     src/MDMScheduler.m

Untested methods:

  • - (void)performerGroup:(MDMPerformerGroup *)performerGroup activeStateDidChange:(BOOL)isActive
  • - (MDMSchedulerActivityState)activityState

unit tests currently broken as of b2bf2ad2df7eda49f155d3f70ad0b115d6617ade

Output:

arc unit --everything
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/TestSchedulerDelegate.swift:20:46: error: 'MDMSchedulerDelegate' has been renamed to 'SchedulerDelegate'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/TestSchedulerDelegate.swift:23:53: error: 'MDMScheduler' has been renamed to 'Scheduler'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/DelegatedPerformanceTests.swift:37:38: error: 'MDMPlan' has been renamed to 'Plan'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/DelegatedPerformanceTests.swift:43:43: error: 'MDMPlanPerforming' has been renamed to 'PlanPerforming'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/DelegatedPerformanceTests.swift:43:62: error: 'MDMDelegatedPerforming' has been renamed to 'DelegatedPerforming'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/DelegatedPerformanceTests.swift:52:20: error: 'MDMPlan' has been renamed to 'Plan'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/DelegatedPerformanceTests.swift:23:23: error: 'MDMTransaction' has been renamed to 'Transaction'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/DelegatedPerformanceTests.swift:26:21: error: 'MDMScheduler' has been renamed to 'Scheduler'
   BROKEN  UnitTests
/Users/featherless/workbench/odeon/material-motion-runtime-objc/tests/unit/TestSchedulerDelegate.swift:20:46: error: 'MDMSchedulerDelegate' has been renamed to 'SchedulerDelegate'

Generate API documentation

Need to hook up jazzy.

Place the following file in the root of the repo:

.jazzy.yaml

module: MaterialMotionRuntime
umbrella_header: src/MaterialMotionRuntime.h
objc: true
sdk: iphonesimulator

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.