Skip to content

Commit

Permalink
removed mobile related code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Dec 19, 2024
1 parent 33f4426 commit 4ac96d8
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 39 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If applicable, add screenshots to help explain your problem.

**Environment:**

- OS: [e.g. iOS]
- OS: [e.g. Windows]
- Browser : [e.g. IE]
- Version [e.g. 9]

Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,5 @@ cloudflare/public/*
.wrangler
**/cloudflare/wrangler.toml

# mobile
mobile/.expo

# data
data/nodemon.json
3 changes: 0 additions & 3 deletions packages/tooling/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ oracle-cloud/build
bundle
.bundle-info.json

# mobile
.expo

./.*
.editorconfig
.gitignore
Expand Down
9 changes: 0 additions & 9 deletions packages/tooling/sentry-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ if (!authToken) throw new Error("Please provide a authToken");
const org = "dzcode";
const project = scope;

if (scope === "mobile") {
console.log(`Creating, publishing and deploying a new Sentry release ...`);
const mobileScript = `SENTRY_AUTH_TOKEN=${authToken} SENTRY_ORG=${org} SENTRY_PROJECT=${project} SENTRY_RELEASE=${scope}@${version} SENTRY_DEPLOY_ENV=${environment} SENTRY_DIST=0 expo export --dump-sourcemap`;
console.log(`running:\n${mobileScript}`);
const mobileScriptStdout = String(execSync(mobileScript));
console.log(mobileScriptStdout);
process.exit(0);
}

console.log(`Creating a Sentry release draft ...`);
const releaseScript = `sentry-cli --auth-token ${authToken} releases --org ${org} new --project ${project} ${scope}@${version}`;
console.log(`running:\n${releaseScript}`);
Expand Down
11 changes: 0 additions & 11 deletions packages/tooling/version-apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ dependencies.forEach(({ location }) => {
console.log(`Applied version ${version} to ${packageJsonPath}`);
modifiedFilePaths.push(packageJsonPath);
}

const appJsonPath = join(location, "app.json");
if (existsSync(appJsonPath)) {
const appJsonContent = require(appJsonPath); // eslint-disable-line @typescript-eslint/no-require-imports
appJsonContent.expo.version = cleanVersion;
appJsonContent.expo.ios.buildNumber = cleanVersion;
appJsonContent.expo.android.versionCode = Number(cleanVersion.replace(/\D/g, ""));
writeFileSync(appJsonPath, JSON.stringify(appJsonContent, null, 2));
console.log(`Applied version ${version} to ${appJsonPath}`);
modifiedFilePaths.push(appJsonPath);
}
});

// Run prettier to make sure the modified files are properly formatted
Expand Down
12 changes: 0 additions & 12 deletions web/src/components/locale/dictionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ export const dictionary = {
"footer-category-link-text-projects": { en: "Projects", ar: "مشاريع" },
"footer-category-link-text-articles": { en: "Articles", ar: "مقالات" },
"footer-category-link-text-faq": { en: "FAQ", ar: "اسئلة / اجوبة" },
"footer-category-title-mobile": { en: "Mobile", ar: "تطبيق جوال" },
"footer-category-link-text-android": { en: "Android", ar: "أندرويد" },
"footer-category-link-text-ios": { en: "iOS", ar: "ايفون" },
"footer-category-link-text-expo": { en: "Expo", ar: "اكسبو" },
"footer-category-title-social-media": {
en: "Social Media",
ar: "وسائل التواصل الاجتماعي",
Expand Down Expand Up @@ -187,14 +183,6 @@ Besides the open tasks on [/Contribute](/Contribute) page, you can also contribu
en: "Make a Contribution",
ar: "قدم مساهمة",
},
"landing-mobile-title": {
en: "Try the mobile app from AppStore or PlayStore",
ar: "جرب تطبيق الهاتف المحمول من AppStore أو PlayStore",
},
"landing-mobile-subtitle": {
en: "Meet the DzCode i/o mobile app and stay up-to-date with the state of Algerian open-source software on iOS and Android.",
ar: "تعرف على تطبيق DzCode i / o للجوال وابق على اطلاع دائم بأحدث البرامج مفتوحة المصدر الجزائرية على iOS و Android.",
},
"landing-milestones-title": {
en: "Project roadmap",
ar: "خارطة طريق المشروع",
Expand Down

0 comments on commit 4ac96d8

Please sign in to comment.