platform.py 328 B

12345678910
  1. NATIVE_PLATFORMS = frozenset(("objc", "cocoa", "swift", "native", "c"))
  2. JAVASCRIPT_PLATFORMS = frozenset(("javascript", "node"))
  3. def get_behavior_family_for_platform(platform):
  4. if platform in NATIVE_PLATFORMS:
  5. return "native"
  6. if platform in JAVASCRIPT_PLATFORMS:
  7. return "javascript"
  8. return "other"