This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[expo-cli] use Submission Service for Android uploads (#2069)
- Loading branch information
Showing
40 changed files
with
2,228 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import inquirer, { Question } from 'inquirer'; | ||
|
||
type CliQuestions = Question | Question[]; | ||
|
||
function prompt( | ||
questions: CliQuestions, | ||
{ nonInteractiveHelp }: { nonInteractiveHelp?: string } = {} | ||
) { | ||
return {}; | ||
} | ||
|
||
prompt.separator = (...args: any[]) => new inquirer.Separator(...args); | ||
|
||
export default jest.fn(prompt); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { User } from '@expo/xdl'; | ||
|
||
interface MockProject { | ||
projectRoot: string; | ||
projectTree: Record<string, string>; | ||
appJSON: AppJSON; | ||
packageJSON: PackageJSON; | ||
} | ||
|
||
interface PackageJSON { | ||
name: string; | ||
version: string; | ||
description: string; | ||
main: string; | ||
} | ||
|
||
interface AppJSON { | ||
expo: { | ||
name: string; | ||
version: string; | ||
slug: string; | ||
sdkVersion: string; | ||
owner: string; | ||
android?: { | ||
package: string; | ||
}; | ||
[key: string]: object | string; | ||
}; | ||
} | ||
|
||
function createTestProject( | ||
user: User, | ||
appJSONExtraData?: Record<string, object | string> | ||
): MockProject { | ||
const projectRoot = '/test-project'; | ||
const packageJSON: PackageJSON = { | ||
name: 'testing123', | ||
version: '0.1.0', | ||
description: 'fake description', | ||
main: 'index.js', | ||
}; | ||
|
||
const appJSON: AppJSON = { | ||
expo: { | ||
name: 'testing 123', | ||
version: '0.1.0', | ||
slug: 'testing-123', | ||
sdkVersion: '33.0.0', | ||
owner: user.username, | ||
...appJSONExtraData, | ||
}, | ||
}; | ||
return { | ||
appJSON, | ||
packageJSON, | ||
projectRoot, | ||
projectTree: { | ||
[projectRoot + '/package.json']: JSON.stringify(packageJSON, null, 2), | ||
[projectRoot + '/app.json']: JSON.stringify(appJSON, null, 2), | ||
}, | ||
}; | ||
} | ||
|
||
export { createTestProject }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { User } from '@expo/xdl'; | ||
|
||
const jester: User = { | ||
kind: 'user', | ||
username: 'jester', | ||
nickname: 'jester', | ||
userId: 'jester-id', | ||
picture: 'jester-pic', | ||
userMetadata: { onboarded: true }, | ||
currentConnection: 'Username-Password-Authentication', | ||
sessionSecret: 'jester-secret', | ||
}; | ||
|
||
export { jester }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.