Code Monkey home page Code Monkey logo

privacymanifest's Introduction

PrivacyManifest

PrivacyManifest is the pkl file that provides the benefits of static typing to generate Apple's xcprivacy file.

Installation

Packages within this repository are published as package://pkg.pkl-lang.org/github.com/fumito-ito/PrivacyManifest@<VERSION>.

Direct imports

Modules from package can be imported directly. For example, the below line imports the module from package at version 0.1.0:

import "package://pkg.pkl-lang.org/github.com/fumito-ito/PrivacyManifest/[email protected]"

Usage

create your pkl file to generate xcprivacy file.

amends "package://pkg.pkl-lang.org/github.com/fumito-ito/PrivacyManifest/[email protected]#/PrivacyManifestFile.pkl"

NSPrivacyTracking = true
NSPrivacyTrackingDomains {
    "com.github.fumito-ito.PrivacyManifest.pkl"
}

... and generate !

$ pkl eval YourPklFile.pkl > PrivacyInfo.xcprivacy

Validation

This module provides following validations.

Number of NSPrivacyTrackingDomains

If NSPrivacyTracking = true, NSPrivacyTrackingDomains needs one or more domains.

Domain style

NSPrivacyTrackingDomains should be domain style string, e.g. com.example.app

Combination of NSPrivacyAccessedAPIType and NSPrivacyAccessedAPITypeReasons

NSPrivacyAccessedAPITypeReasons should supply the relevant values from NSPrivacyAccessedAPIType.

Name checking

Check that the correct names are used for the classes listed below.

  • NSPrivacyAccessedAPIType
  • NSPrivacyAccessedAPITypeReasons
  • NSPrivacyCollectedDataType
  • NSPrivacyCollectedDataTypePurposes

Dependencies

Pkl 0.25.2

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License 2.0

privacymanifest's People

Contributors

fumito-ito avatar

Watchers

 avatar

privacymanifest's Issues

Failure using example in README.md

Getting the below error when trying to use the example in the README.md.
I tried a bunch of different URLs but couldn't get it to work, any ideas?
Thanks!

x pkl eval PrivacyInfo.pkl > PrivacyInfo.xcprivacy
–– Pkl Error ––
Received unexpected status code `404` when making request `GET https://pkg.pkl-lang.org/github.com/fumito-ito/PrivacyManifest/[email protected]`.

1 | amends "package://pkg.pkl-lang.org/github.com/fumito-ito/PrivacyManifest/[email protected]#/PrivacyManifestFile.pkl"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at PrivacyInfo (file:///Users/brettbest/Developer/DummyApp/PrivacyInfo.pkl, line 1)

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.