Skip to content

Commit

Permalink
chore: Update expo-env-info command in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IZUMI-Zu committed Aug 9, 2024
1 parent 6358ee0 commit ad2f414
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 359 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"no-unused-vars": "off",
"react/no-deprecated": "error",
"react/jsx-key": "error",
"no-console": "error",
// "no-console": "error",
"eqeqeq": "error",
"keyword-spacing": "error",
"react/prop-types": "off",
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,10 @@ jobs:
run: |
npx expo-env-info
# - name: Build Android Release
# run: |
# cd android && ./gradlew clean && ./gradlew assembleRelease -PminifyEnabled=false --scan
# mv app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/casdoorapp.apk

- name: Build Android Debug
- name: Build Android Release
run: |
cd android && ./gradlew clean && ./gradlew app:createBundleReleaseJsAndAssets --stacktrace
cd android && ./gradlew assembleRelease
mv app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/casdoorapp.apk
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import NavigationBar from "./NavigationBar";
import {migrateDb} from "./TotpDatabase";

const App = () => {
console.warn("Test");
return (
<SQLiteProvider databaseName="totp.db" onInit={migrateDb} options={{enableChangeListener: true}}>
<NavigationContainer>
Expand Down
4 changes: 4 additions & 0 deletions HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import {useNetInfo} from "@react-native-community/netinfo";
import {FlashList} from "@shopify/flash-list";
import * as SQLite from "expo-sqlite/next";

import {useDrizzleStudio} from "expo-drizzle-studio-plugin";

import SearchBar from "./SearchBar";
import EnterAccountDetails from "./EnterAccountDetails";
import ScanQRCode from "./ScanQRCode";
Expand Down Expand Up @@ -55,6 +57,8 @@ export default function HomePage() {
const {startSync} = useSyncStore();
const db = SQLite.useSQLiteContext();

useDrizzleStudio(db); // debug

useEffect(() => {
if (db) {
loadAccounts();
Expand Down
3 changes: 1 addition & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.zzbs.casdoorapp",
"versionCode": 2
"package": "com.zzbs.casdoorapp"
},
"web": {
"favicon": "./assets/favicon.png"
Expand Down
Loading

0 comments on commit ad2f414

Please sign in to comment.