-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1439 from flexn-io/fix/androidManifest_generating
Rename MainActivity files, add test cases to set plugins, and fix to copy build folders
- Loading branch information
Showing
12 changed files
with
190 additions
and
18 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
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
40 changes: 40 additions & 0 deletions
40
packages/app-harness/src/components/PhotoEditor/index.mobile.tsx
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,40 @@ | ||
import React, { useEffect } from 'react'; | ||
import { Button, Image } from 'react-native'; | ||
import { RNPhotoEditor } from 'react-native-photo-editor'; | ||
import RNFS from 'react-native-fs'; | ||
import RNFetchBlob from 'rn-fetch-blob'; | ||
import { useLoggerContext } from '../../context'; | ||
import { ICON_LOGO } from '../../config'; | ||
|
||
export const PhotoEditorButton = () => { | ||
const { logDebug } = useLoggerContext(); | ||
const photoPath = RNFS.DocumentDirectoryPath + ICON_LOGO; | ||
useEffect(() => { | ||
const fetchAndMovePhoto = async () => { | ||
const binaryFile = Image.resolveAssetSource(ICON_LOGO); | ||
try { | ||
const resp = await RNFetchBlob.config({ fileCache: true }).fetch('GET', binaryFile.uri); | ||
if (await RNFS.exists(photoPath)) { | ||
await RNFS.unlink(photoPath); | ||
} | ||
await RNFS.moveFile(resp.path(), photoPath); | ||
logDebug('FILE WRITTEN!'); | ||
} catch (error) { | ||
logDebug(`${error}`); | ||
} | ||
}; | ||
fetchAndMovePhoto(); | ||
}, []); | ||
const handlePhotoEditor = () => { | ||
RNPhotoEditor.Edit({ | ||
path: photoPath, | ||
onDone: () => { | ||
logDebug('on done'); | ||
}, | ||
onCancel: () => { | ||
logDebug('on cancel'); | ||
}, | ||
}); | ||
}; | ||
return <Button onPress={handlePhotoEditor} title="Show PhotoEditor" />; | ||
}; |
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,13 @@ | ||
import React from 'react'; | ||
import { useLoggerContext } from '../../context'; | ||
import { Button } from 'react-native'; | ||
|
||
export const PhotoEditorButton = () => { | ||
const { logDebug } = useLoggerContext(); | ||
|
||
const handlePhotoEditor = () => { | ||
logDebug('PhotoEditor not supported on this platform'); | ||
}; | ||
|
||
return <Button onPress={handlePhotoEditor} title="Show PhotoEditor" />; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7096,6 +7096,11 @@ balanced-match@^1.0.0: | |
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" | ||
integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== | ||
|
||
[email protected], base-64@^0.1.0: | ||
version "0.1.0" | ||
resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb" | ||
integrity sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA== | ||
|
||
base64-js@^1.1.2, base64-js@^1.3.1, base64-js@^1.5.1: | ||
version "1.5.1" | ||
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" | ||
|
@@ -11249,6 +11254,18 @@ [email protected], glob@^10.2.2, glob@^10.3.10, glob@^10.3.3, glob@^10.3.7: | |
minipass "^5.0.0 || ^6.0.2 || ^7.0.0" | ||
path-scurry "^1.10.1" | ||
|
||
[email protected]: | ||
version "7.0.6" | ||
resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a" | ||
integrity sha512-f8c0rE8JiCxpa52kWPAOa3ZaYEnzofDzCQLCn3Vdk0Z5OVLq3BsRFJI4S4ykpeVW6QMGBUkMeUpoEgWnMTnw5Q== | ||
dependencies: | ||
fs.realpath "^1.0.0" | ||
inflight "^1.0.4" | ||
inherits "2" | ||
minimatch "^3.0.2" | ||
once "^1.3.0" | ||
path-is-absolute "^1.0.0" | ||
|
||
[email protected]: | ||
version "7.1.4" | ||
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" | ||
|
@@ -16797,6 +16814,11 @@ [email protected], pluralize@^8.0.0: | |
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" | ||
integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== | ||
|
||
[email protected]: | ||
version "0.0.0" | ||
resolved "https://registry.yarnpkg.com/pod-installer/-/pod-installer-0.0.0.tgz#363290ec9f2eb7a88bc3e1f229793efdcc7c81c6" | ||
integrity sha512-5GFFvaXwESMx0QoopeJqFZzi4xOqI86Lh65WqWAVuZNorUio4/ZBRx7AQBfwnBwOeGA/JjXHP+nHZmSKWGoG1g== | ||
|
||
popper.js@^1.14.4: | ||
version "1.16.1" | ||
resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.16.1.tgz#2a223cb3dc7b6213d740e40372be40de43e65b1b" | ||
|
@@ -17924,6 +17946,14 @@ [email protected]: | |
dependencies: | ||
traverse "^0.6.6" | ||
|
||
[email protected]: | ||
version "2.20.0" | ||
resolved "https://registry.yarnpkg.com/react-native-fs/-/react-native-fs-2.20.0.tgz#05a9362b473bfc0910772c0acbb73a78dbc810f6" | ||
integrity sha512-VkTBzs7fIDUiy/XajOSNk0XazFE9l+QlMAce7lGuebZcag5CnjszB+u4BdqzwaQOdcYb5wsJIsqq4kxInIRpJQ== | ||
dependencies: | ||
base-64 "^0.1.0" | ||
utf8 "^3.0.0" | ||
|
||
[email protected]: | ||
version "2.14.1" | ||
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-2.14.1.tgz#930640231024b7921435ab476aa501dd4a6b2e01" | ||
|
@@ -17945,10 +17975,11 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/react-native-permissions/-/react-native-permissions-4.1.4.tgz#7e105470acea7fc1748bb36915095fd3304cd9da" | ||
integrity sha512-el6u90VZNFDEtmHpSheirwRhGvs6M5rSZcoqIqB128IPO00f2c1q+PP4kEaM1u19Q0ldQ+R+S7C/l8Zrduy6JQ== | ||
|
||
[email protected]: | ||
version "1.0.13" | ||
resolved "https://registry.yarnpkg.com/react-native-photo-editor/-/react-native-photo-editor-1.0.13.tgz#292d2f1a87bb3fb9b75000683f05664f360bdf6b" | ||
integrity sha512-SWrnatVC4H73cEN+6rVlc0M5cGS20K6EwL8u2CmlBlLNEwH6OfayMgOCwpKJdmN2GPZKJ2JraQru8Ga7JL4zaw== | ||
"react-native-photo-editor@github:AppGyver/react-native-photo-editor#v0.1.2": | ||
version "0.1.1" | ||
resolved "https://codeload.github.com/AppGyver/react-native-photo-editor/tar.gz/ed05b06d13df9945433bf84366b3e4f01787c0ae" | ||
dependencies: | ||
pod-installer "0.0.0" | ||
|
||
[email protected]: | ||
version "3.3.0" | ||
|
@@ -18738,6 +18769,14 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: | |
hash-base "^3.0.0" | ||
inherits "^2.0.1" | ||
|
||
[email protected]: | ||
version "0.12.0" | ||
resolved "https://registry.yarnpkg.com/rn-fetch-blob/-/rn-fetch-blob-0.12.0.tgz#ec610d2f9b3f1065556b58ab9c106eeb256f3cba" | ||
integrity sha512-+QnR7AsJ14zqpVVUbzbtAjq0iI8c9tCg49tIoKO2ezjzRunN7YL6zFSFSWZm6d+mE/l9r+OeDM3jmb2tBb2WbA== | ||
dependencies: | ||
base-64 "0.1.0" | ||
glob "7.0.6" | ||
|
||
roarr@^2.15.3: | ||
version "2.15.4" | ||
resolved "https://registry.yarnpkg.com/roarr/-/roarr-2.15.4.tgz#f5fe795b7b838ccfe35dc608e0282b9eba2e7afd" | ||
|
@@ -21065,6 +21104,11 @@ utf8-byte-length@^1.0.1: | |
resolved "https://registry.yarnpkg.com/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz#f45f150c4c66eee968186505ab93fcbb8ad6bf61" | ||
integrity sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA== | ||
|
||
utf8@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/utf8/-/utf8-3.0.0.tgz#f052eed1364d696e769ef058b183df88c87f69d1" | ||
integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ== | ||
|
||
util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" | ||
|