-
Notifications
You must be signed in to change notification settings - Fork 904
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: Migrate
platform-ios
to TypeScript (#620)
* imp: move `platform-ios` to Typescript * imp: Move tests and fixtures * Add missing types * Review fixes * More review suggestions * adjust tsdoc * remove flowfixmes * fix any from process
- Loading branch information
Showing
110 changed files
with
540 additions
and
369 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "@react-native-community/cli-types", | ||
"version": "2.8.3", | ||
"main": "build", | ||
"types": "build/index.d.ts", | ||
"license": "MIT" | ||
} |
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,39 @@ | ||
export interface AndroidProjectConfig { | ||
sourceDir: string; | ||
isFlat: boolean; | ||
folder: string; | ||
stringsPath: string; | ||
manifestPath: string; | ||
buildGradlePath: string; | ||
settingsGradlePath: string; | ||
assetsPath: string; | ||
mainFilePath: string; | ||
packageName: string; | ||
} | ||
|
||
export interface AndroidProjectParams { | ||
sourceDir?: string; | ||
manifestPath?: string; | ||
packageName?: string; | ||
packageFolder?: string; | ||
mainFilePath?: string; | ||
stringsPath?: string; | ||
settingsGradlePath?: string; | ||
assetsPath?: string; | ||
buildGradlePath?: string; | ||
} | ||
|
||
export interface AndroidDependencyConfig { | ||
sourceDir: string; | ||
folder: string; | ||
packageImportPath: string; | ||
packageInstance: string; | ||
} | ||
|
||
export interface AndroidDependencyParams { | ||
packageName?: string; | ||
sourceDir?: string; | ||
manifestPath?: string; | ||
packageImportPath?: string; | ||
packageInstance?: string; | ||
} |
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,33 @@ | ||
/** | ||
* Settings that user can define in the project configuration for iOS. | ||
* Same for dependency - we share the type. | ||
* | ||
* See UserDependencyConfigT and UserConfigT for details | ||
*/ | ||
export interface IOSProjectParams { | ||
project?: string; | ||
podspecPath?: string; | ||
sharedLibraries?: string[]; | ||
libraryFolder?: string; | ||
plist: Array<any>; | ||
scriptPhases: Array<any>; | ||
} | ||
|
||
export interface IOSDependencyParams extends IOSProjectParams {} | ||
|
||
// The following types are used in untyped-parts of the codebase, so I am leaving them | ||
// until we actually need them. | ||
export interface IOSProjectConfig { | ||
sourceDir: string; | ||
folder: string; | ||
pbxprojPath: string; | ||
podfile: string; | ||
podspecPath: string; | ||
projectPath: string; | ||
projectName: string; | ||
libraryFolder: string; | ||
sharedLibraries: Array<any>; | ||
plist: Array<any>; | ||
} | ||
|
||
export interface IOSDependencyConfig extends IOSProjectConfig {} |
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,7 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "src", | ||
"outDir": "build" | ||
} | ||
} |
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
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
2 changes: 1 addition & 1 deletion
2
packages/platform-android/src/link/warnAboutManuallyLinkedLibs.ts
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.