Commit 4833b57c authored by Administrator's avatar Administrator
Browse files

expoSDKを最新版に更新、Ver.4.0

parent 9442a59f
......@@ -18,6 +18,7 @@ export default function Apps ({ navigation: { navigate } }) {
mixedContentMode={'compatibility'}
javaScriptEnabled={true}
allowsBackForwardNavigationGestures={true}
setSupportMultipleWindows={false}
onNavigationStateChange={
event =>{
console.log(event);
......@@ -37,96 +38,144 @@ export default function Apps ({ navigation: { navigate } }) {
}
}
}
injectedJavaScript={js}/>
onMessage={(event)=>{}}
injectedJavaScript={INJECTED_JAVASCRIPT}/>
</View>
);
}
const js = `
var observer = new MutationObserver(function(){
const INJECTED_JAVASCRIPT = `
var observer = new MutationObserver(function(){
console.log(elem);
});
const elem = document.querySelector('#modal_content');
console.log(elem);
});
const elem = document.querySelector('#modal_content');
console.log(elem);
const config = {
attributes: true,
childList: true,
characterData: true
};
observer.observe(elem, config);
document.getElementById('headerStr').style.display = 'none';
document.getElementById('modal_info').style.display = 'none';
document.getElementById('header').style.height = '50px';
document.getElementById('main').style.paddingTop = '54px';
document.querySelector('#header a').style.display = 'none';
after();
const config = {
attributes: true,
childList: true,
characterData: true
};
function after(){
try {
document.getElementById('refreshIcon').click();
var elements = document.querySelectorAll('[onclick]');
for (var index = 0; index < elements.length; index++) {
var element = elements[index];
if(element.getAttribute('onclick').indexOf('ShowTrainTimeInfo') != -1){
var test = element.getElementsByTagName("p");
var test3 = element.getAttribute('onclick').split('"');
var HTrain = "\\n試運転";
var RTrain = "\\n回送";
var STrain = "\\n臨時列車";
var WTrain = "ワンマン\\n";
var 海 = "(海経由)";
var 内 = "(内子経由)";
var reg1 = new RegExp(/^4[1-9]\\d\\d[DM]$/);
var reg2 = new RegExp(/^5[1-9]\\d\\d[DM]$/);
var 海1 = new RegExp(/^49[0-4]\\dD$/);
var 海2 = new RegExp(/^9[0-4]\\dD$/);
var 内1 = new RegExp(/^46\\d\\dD$/);
var 内2 = new RegExp(/^6\\d\\dD$/);
var flag=false;
test[0].innerText = test[0].innerText+test3[1];
if(reg1.test(test3[1]) || reg2.test(test3[1])){
test[0].innerText = WTrain+test[0].innerText;
flag=true;
}
if(海1.test(test3[1]) || 海2.test(test3[1])){
test[0].innerText = 海+(flag ? "" : "\\n")+test[0].innerText;
}
if(内1.test(test3[1]) || 内2.test(test3[1])){
test[0].innerText = 内+(flag ? "" : "\\n")+test[0].innerText;
}
if(test3[1].indexOf("H") != -1){
test[0].innerText = test[0].innerText+HTrain;
}
else if(test3[1].indexOf("R") != -1){
test[0].innerText = test[0].innerText+RTrain;
}
else if(test3[1].indexOf("S") != -1){
test[0].innerText = test[0].innerText+STrain;
observer.observe(elem, config);
document.getElementById('headerStr').style.display = 'none';
document.getElementById('modal_info').style.display = 'none';
document.getElementById('header').style.height = '50px';
document.getElementById('main').style.paddingTop = '54px';
document.querySelector('#header a').style.display = 'none';
after();
function after(){
try {
document.getElementById('refreshIcon').click();
var elements = document.querySelectorAll('[onclick]');
for (var index = 0; index < elements.length; index++) {
var element = elements[index];
if(element.getAttribute('onclick').indexOf('ShowTrainTimeInfo') != -1){
var test = element.getElementsByTagName("p");
var test3 = element.getAttribute('onclick').split('"');
var HTrain = "\\n試運転";
var RTrain = "\\n回送";
var STrain = "\\n臨時列車";
var WTrain = "ワンマン\\n";
var 海 = "(海経由)";
var 内 = "(内子経由)";
var reg1 = new RegExp(/^4[1-9]\\d\\d[DM]$/);
var reg2 = new RegExp(/^5[1-9]\\d\\d[DM]$/);
var 海1 = new RegExp(/^49[0-4]\\dD$/);
var 海2 = new RegExp(/^9[0-4]\\dD$/);
var 内1 = new RegExp(/^46\\d\\dD$/);
var 内2 = new RegExp(/^6\\d\\dD$/);
var flag=false;
var TrainType = undefined;
console.log(test3[1]);
test[0].innerText = test[0].innerText+test3[1];
if(reg1.test(test3[1]) || reg2.test(test3[1])){
test[0].innerText = WTrain+test[0].innerText;
flag=true;
}
if(海1.test(test3[1]) || 海2.test(test3[1])){
test[0].innerText = 海+(flag ? "" : "\\n")+test[0].innerText;
}
if(内1.test(test3[1]) || 内2.test(test3[1])){
test[0].innerText = 内+(flag ? "" : "\\n")+test[0].innerText;
}
if(test3[1].indexOf("H") != -1){
test[0].innerText = test[0].innerText+HTrain;
}
else if(test3[1].indexOf("R") != -1){
test[0].innerText = test[0].innerText+RTrain;
}
else if(test3[1].indexOf("S") != -1){
test[0].innerText = test[0].innerText+STrain;
}
switch(test3[1]){
case "75":
case "71":
TrainType = "東京(タ)→高松(タ)→新居浜"
break;
case "73":
TrainType = "東京(タ)→高松(タ)→松山貨物"
break;
case "3079":
TrainType = "高松(タ)→伊予三島"
break;
case "3071":
case "3077":
TrainType = "高松(タ)→新居浜"
break;
case "3073":
TrainType = "高松(タ)→松山貨物"
break;
case "70":
TrainType = "高松(タ)→東京(タ)"
break;
case "74":
TrainType = "高松(タ)→吹田(タ)"
break;
case "76":
TrainType = "高松(タ)→大阪(タ)"
break;
case "3078":
TrainType = "伊予三島→大阪(タ)"
break;
case "3070":
case "9070":
TrainType = "新居浜→東京(タ)"
break;
case "3076":
TrainType = "新居浜→大阪(タ)"
break;
case "3072":
TrainType = "松山貨物→大阪(タ)"
break;
}
if(TrainType){
test[0].innerText = TrainType+"\\n"+test[0].innerText;
}
}
}
try{
document.querySelector('#pMENU_2').style.borderStyle='solid';
document.querySelector('#pMENU_2').style.borderColor='#00d3e8';
document.querySelector('#pMENU_2').style.borderWidth='2px';
document.querySelector('#pMENU_2').style.borderRadius='10%';
document.querySelector('#pMENU_3').style.borderStyle='solid';
document.querySelector('#pMENU_3').style.borderColor='#00d3e8';
document.querySelector('#pMENU_3').style.borderWidth='2px';
document.querySelector('#pMENU_3').style.borderRadius='10%';
document.querySelectorAll('#pMENU_2 div').forEach((d)=>{
d.style.padding = '10px';
});
document.querySelectorAll('#pMENU_3 div').forEach((d)=>{
d.style.padding = '10px';
});
}catch(e){
alert("にゃー");
}
} catch (e) {
}
try{
document.querySelector('#pMENU_2').style.borderStyle='solid';
document.querySelector('#pMENU_2').style.borderColor='#00d3e8';
document.querySelector('#pMENU_2').style.borderWidth='2px';
document.querySelector('#pMENU_2').style.borderRadius='10%';
document.querySelector('#pMENU_3').style.borderStyle='solid';
document.querySelector('#pMENU_3').style.borderColor='#00d3e8';
document.querySelector('#pMENU_3').style.borderWidth='2px';
document.querySelector('#pMENU_3').style.borderRadius='10%';
document.querySelectorAll('#pMENU_2 div').forEach((d)=>{
d.style.padding = '10px';
});
document.querySelectorAll('#pMENU_3 div').forEach((d)=>{
d.style.padding = '10px';
});
}catch(e){
alert("にゃー");
}
} catch (e) {
setTimeout(after, 10000);
}
setTimeout(after, 10000);
}
`;
......@@ -7,7 +7,7 @@
"ios",
"android"
],
"version": "3.1",
"version": "4.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
......@@ -22,13 +22,13 @@
"**/*"
],
"ios": {
"buildNumber": "13",
"buildNumber": "15",
"supportsTablet": true,
"bundleIdentifier": "jrshikokuinfo.xprocess.hrkn"
},
"android": {
"package": "jrshikokuinfo.xprocess.hrkn",
"versionCode": 10,
"versionCode": 11,
"permissions": [],
"googleServicesFile": "./google-services.json"
}
......
This diff is collapsed.
This diff is collapsed.
......@@ -7,32 +7,36 @@
"eject": "expo eject"
},
"dependencies": {
"@expo/vector-icons": "^10.2.1",
"@react-native-community/masked-view": "0.1.6",
"@react-navigation/bottom-tabs": "^5.9.2",
"@react-navigation/native": "^5.7.6",
"@react-navigation/stack": "^5.9.3",
"expo": "^37.0.12",
"expo-font": "~8.1.0",
"expo-updates": "~0.2.1",
"firebase": "7.9.0",
"native-base": "^2.13.14",
"npm": "^6.14.8",
"pushy-react-native": "^1.0.15",
"react": "16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz",
"react-native-elements": "^1.2.7",
"react-native-gesture-handler": "~1.6.0",
"react-native-reanimated": "~1.7.0",
"react-native-responsive-screen": "^1.4.1",
"react-native-router-flux": "^4.0.6",
"react-native-safe-area-context": "0.7.3",
"react-native-screens": "~2.2.0",
"react-native-vector-icons": "^6.7.0",
"react-native-webview": "8.1.1"
"@expo/vector-icons": "^12.0.0",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/bottom-tabs": "^5.11.11",
"@react-navigation/native": "^5.9.4",
"@react-navigation/stack": "^5.14.5",
"expo": "^41.0.0",
"expo-font": "~9.1.0",
"expo-updates": "~0.5.4",
"expo-web-browser": "~9.1.0",
"firebase": "8.2.3",
"lottie-react-native": "3.5.0",
"native-base": "^2.15.2",
"npm": "^7.18.1",
"pushy-react-native": "^1.0.18",
"react": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
"react-native-actions-sheet": "^0.4.9",
"react-native-auto-height-image": "^3.2.4",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "~1.10.2",
"react-native-reanimated": "~2.1.0",
"react-native-responsive-screen": "^1.4.2",
"react-native-router-flux": "^4.3.1",
"react-native-safe-area-context": "3.2.0",
"react-native-screens": "~3.0.0",
"react-native-vector-icons": "^8.1.0",
"react-native-webview": "11.2.3"
},
"devDependencies": {
"babel-preset-expo": "^8.3.0"
"babel-preset-expo": "8.3.0"
},
"private": true
}
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment