iOS Swift Conversion (#2527)

Converts iOS implementation from Objective-c to Swift

# During the conversion process some updates to the code structure were also made
- Modularize codebase from single file to smaller focused files
- Untangled large nested IF statements
- Added more null checks, since Swift is more strict with null pointers
- Added property to allow for decoding of local video sources with self contained key for offline playback
- Updates example apps to test react-native 0.63.4 and uses auto native dependency imports for android and ios
This commit is contained in:
Nick Fujita
2022-05-19 22:29:25 +09:00
committed by GitHub
parent d681e5505f
commit 68b9db4d11
138 changed files with 8869 additions and 7589 deletions

View File

@@ -3,30 +3,34 @@
"version": "1.0.0",
"private": true,
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"postinstall": "rm -rf node_modules/react-native-video/{examples,node_modules}",
"ios": "cd ios && pod install && cd .. && react-native run-ios",
"windows": "react-native run-windows",
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-picker/picker": "^1.9.11",
"babel-plugin-module-resolver": "^4.1.0",
"react": "^16.12.0",
"react-native": "0.61.5",
"react-native-video": "../../",
"react-native-windows": "^0.61.0-0"
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-video": "../..",
"react-native-windows": "0.63.41"
},
"devDependencies": {
"@babel/core": "^7.6.0",
"@babel/runtime": "^7.6.0",
"@react-native-community/eslint-config": "^0.0.5",
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@react-native-community/eslint-config": "^1.1.0",
"@types/react": "^18.0.6",
"@types/react-native": "^0.67.6",
"babel-jest": "^24.9.0",
"eslint": "^6.4.0",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.8.6"
"babel-jest": "^25.1.0",
"eslint": "^6.5.1",
"jest": "^25.1.0",
"metro-react-native-babel-preset": "^0.59.0",
"react-test-renderer": "16.13.1"
},
"jest": {
"preset": "react-native"
}
}
}