Skip to content

Commit

Permalink
chore: peg ios build to xcode 14.2
Browse files Browse the repository at this point in the history
As noted [here](facebook/react-native#36758) there is a problem with the Yoga package in RN building with Xcode 14.3. This is a temporary work around to peg the build to 14.2 until this issue can be resolved more thoroughly.

Ref. [macOS runners](https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md)
  • Loading branch information
jleach committed Apr 3, 2023
1 parent 7896aa9 commit 9e57c0c
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 1 deletion.
19 changes: 19 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
:2015 {
# Set this path to your site's directory.
root * /usr/share/caddy

# Enable the static file server.
file_server

# Another common task is to set up a reverse proxy:
# reverse_proxy localhost:8080

# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000

# redir /success /ff 302

header {
Cache-Control no-cache
}
}
51 changes: 51 additions & 0 deletions Dockerfile.android
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM --platform=linux/amd64 gradle:6.9-jdk8

ENV ANDROID_TOOLS_VERSION 8512546
ENV ANDROID_SDK_VERSION 31
ENV ANDROID_BUILD_TOOLS_VERION 30.0.3
ENV NVM_VERSION 0.38.0
ENV NODE_VERSION 16.15.0
ENV ANDROID_HOME /opt/android
ENV JAVA_HOME ""
ENV JAVA_VERSION ""
RUN apt update && \
apt --no-install-recommends --quiet install --yes \
unzip curl less openjdk-11-jdk tar lib32stdc++6 lib32z1 sudo

USER root

RUN rm -rf /opt/java && \
unset JAVA_HOME && \
mkdir -p ${ANDROID_HOME} && \
cd ${ANDROID_HOME} && \
curl -L https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_TOOLS_VERSION}_latest.zip \
-o cmdline-tools.zip && \
unzip -d cmdline-tools cmdline-tools.zip && \
rm -rf cmdline-tools.zip && \
cd cmdline-tools && \
mv cmdline-tools latest && \
cd - && \
mkdir -p /root/.android && \
touch /root/.android/repositories.cfg && \
export PATH=$PATH:$PWD/cmdline-tools/latest/bin && \
export export ANDROID_HOME=$PWD && \
echo y | sdkmanager "platforms;android-$ANDROID_SDK_VERSION" && \
echo y | sdkmanager "platform-tools" && \
echo y | sdkmanager "build-tools;$ANDROID_BUILD_TOOLS_VERION" && \
yes | sdkmanager --licenses

RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.sh | bash && \
export NVM_DIR="$HOME/.nvm" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
nvm install ${NODE_VERSION}

RUN git config --global --add safe.directory '*' && \
echo "unset JAVA_HOME" >> $HOME/.bashrc && \
echo "export ANDROID_HOME=$ANDROID_HOME" >> $HOME/.bashrc

RUN useradd -u 1001 -G root -s /bin/bash github
# mkdir /__w && \
# chmod 2775 /__w && \
# chown github:github /__w

# ENV PATH="${PATH}:/root/.nvm/versions/node/v${NODE_VERSION}/bin"
68 changes: 68 additions & 0 deletions app/postinstall:patch/@aries-framework+react-hooks+0.3.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
diff --git a/node_modules/@aries-framework/react-hooks/build/AgentProvider.d.ts b/node_modules/@aries-framework/react-hooks/build/AgentProvider.d.ts
index d6256cc..6ca0215 100644
--- a/node_modules/@aries-framework/react-hooks/build/AgentProvider.d.ts
+++ b/node_modules/@aries-framework/react-hooks/build/AgentProvider.d.ts
@@ -4,10 +4,8 @@ import * as React from 'react';
interface AgentContextInterface {
loading: boolean;
agent?: Agent;
+ setAgent: (agent?: Agent) => void;
}
export declare const useAgent: () => AgentContextInterface;
-interface Props {
- agent: Agent | undefined;
-}
-declare const AgentProvider: React.FC<PropsWithChildren<Props>>;
+declare const AgentProvider: React.FC<PropsWithChildren>;
export default AgentProvider;
diff --git a/node_modules/@aries-framework/react-hooks/build/AgentProvider.js b/node_modules/@aries-framework/react-hooks/build/AgentProvider.js
index b30b8b5..1c6c16a 100644
--- a/node_modules/@aries-framework/react-hooks/build/AgentProvider.js
+++ b/node_modules/@aries-framework/react-hooks/build/AgentProvider.js
@@ -38,24 +38,19 @@ const useAgent = () => {
return agentContext;
};
exports.useAgent = useAgent;
-const AgentProvider = ({ agent, children }) => {
- const [agentState, setAgentState] = (0, react_1.useState)({
+const AgentProvider = ({ children }) => {
+ const [state, setState] = (0, react_1.useState)({
loading: true,
- agent,
+ agent: undefined,
});
- const setInitialState = async () => {
- if (agent) {
- setAgentState({ agent, loading: false });
- }
+ const setAgent = (agent) => {
+ setState({ agent, loading: false });
};
- (0, react_1.useEffect)(() => {
- setInitialState();
- }, [agent]);
- return (React.createElement(AgentContext.Provider, { value: agentState },
- React.createElement(ConnectionProvider_1.default, { agent: agent },
- React.createElement(CredentialProvider_1.default, { agent: agent },
- React.createElement(ProofProvider_1.default, { agent: agent },
- React.createElement(BasicMessageProvider_1.default, { agent: agent }, children))))));
+ return (React.createElement(AgentContext.Provider, { value: Object.assign({ setAgent }, state) },
+ React.createElement(ConnectionProvider_1.default, { agent: state.agent },
+ React.createElement(CredentialProvider_1.default, { agent: state.agent },
+ React.createElement(ProofProvider_1.default, { agent: state.agent },
+ React.createElement(BasicMessageProvider_1.default, { agent: state.agent }, children))))));
};
exports.default = AgentProvider;
-//# sourceMappingURL=AgentProvider.js.map
\ No newline at end of file
+//# sourceMappingURL=AgentProvider.js.maps
\ No newline at end of file
diff --git a/node_modules/@aries-framework/react-hooks/build/AgentProvider.js.map b/node_modules/@aries-framework/react-hooks/build/AgentProvider.js.map
index dd4dc30..f1f17a4 100644
--- a/node_modules/@aries-framework/react-hooks/build/AgentProvider.js.map
+++ b/node_modules/@aries-framework/react-hooks/build/AgentProvider.js.map
@@ -1 +1 @@
-{"version":3,"file":"AgentProvider.js","sourceRoot":"","sources":["../src/AgentProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,6CAA8B;AAC9B,iCAAsE;AAEtE,kFAAyD;AACzD,8EAAqD;AACrD,8EAAqD;AACrD,oEAA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ions html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>I am Caddy</title>
<script>

function doFunction() {
window.location.href = 'bcwallet://xx/success';
}

</script>
</head>
<body style="background-color: coral"}>

Hi! I'm a HTML page XC.

</br>
</br>
</br>

10110
<input type="button" value="clickme" onclick="doFunction();" />

</body>

0 comments on commit 9e57c0c

Please sign in to comment.