Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC Implement developer APIs #2

Open
JJTech0130 opened this issue Jan 17, 2023 · 1 comment
Open

POC Implement developer APIs #2

JJTech0130 opened this issue Jan 17, 2023 · 1 comment
Assignees

Comments

@JJTech0130
Copy link
Member

Should create a temporary POC with initial implementation

@f1shy-dev
Copy link
Member

Dadoum's vision for the API/how it should look:

let account = AppleAccount::login(...ui handlers...)?;
let xcode_session = XcodeSession::with(&account)?;

let certificate = if let Some(cert) = keyring.contains("certificate thing") {
  cert
} else {
  let certificate = CertificateSigningRequest::new();
  let accepted_certificate = xcode_session.submit_csr(certificate);
  keyring.add("certificate", &certificate);
  accepted_certificate
}

let teams = xcode_session.list_teams();

xcode_session.new_app_id(teams[0], "com.sidestore.SideStore.DWFXTYIGS")?;
let provisioning_profile = xcode_session.get_provisioning_profile(teams[0], "com.sidestore.SideStore.DWFXTYIGS");```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants