diff --git a/.gitea/workflows/buildapk.yaml b/.gitea/workflows/buildapk.yaml new file mode 100644 index 0000000..d181c04 --- /dev/null +++ b/.gitea/workflows/buildapk.yaml @@ -0,0 +1,55 @@ +name: Building APK +run-name: Build APK +on: [push] +jobs: + build-apk: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '17' + + - name: Setup NodeJS + uses: actions/setup-node@v3 + with: + node-version: 18.x + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + with: + packages: '' + cmdline-tools-version: 9862592 + + - name: Setup bun + uses: oven-sh/setup-bun@v1 + + - name: Install dependencies + run: bun install + + - run: ./gradlew clean + working-directory: ./android + + - name: Setup EAS + uses: expo/expo-github-action@v8 + with: + eas-version: latest + token: ${{ secrets.EXPO_TOKEN }} + packager: bun + + - name: Build APK + run: eas build --no-wait --profile preview --platform android --non-interactive --local + + - name: Zip all apk + run: | + zip apk.zip *.apk + + - name: Upload APK ZIP + uses: actions/upload-artifact@v2 + with: + name: apk + path: apk.zip diff --git a/android/build.gradle b/android/build.gradle index 513b766..35e4ed1 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -8,7 +8,7 @@ buildscript { targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34') kotlinVersion = findProperty('android.kotlinVersion') ?: '1.8.10' - ndkVersion = "25.1.8937393" + ndkVersion = "26.2.11394342" } repositories { google() diff --git a/android/gradle.properties b/android/gradle.properties index 41b173c..f68353b 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -10,7 +10,7 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m -org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m +org.gradle.jvmargs=-Xmx8192m -XX:MaxMetaspaceSize=1024m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit diff --git a/bun.lockb b/bun.lockb index 6dbe7ac..d0f314b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eas.json b/eas.json index 5e8a2be..e37f69a 100644 --- a/eas.json +++ b/eas.json @@ -5,12 +5,22 @@ "build": { "development": { "developmentClient": true, - "distribution": "internal" + "distribution": "internal", + "android": { + "buildType": "apk" + } }, "preview": { - "distribution": "internal" + "distribution": "internal", + "android": { + "buildType": "apk" + } }, - "production": {} + "production": { + "android": { + "buildType": "apk" + } + } }, "submit": { "production": {} diff --git a/package.json b/package.json index 2b725d0..9ad5ad0 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@expo/metro-runtime": "^3.1.3", - "@react-native-async-storage/async-storage": "^1.23.1", + "@react-native-async-storage/async-storage": "1.21.0", "@react-navigation/material-bottom-tabs": "^6.2.28", "@react-navigation/material-top-tabs": "^6.6.13", "@react-navigation/native": "^6.1.17", @@ -19,6 +19,7 @@ "axios": "^1.6.8", "expo": "~50.0.14", "expo-clipboard": "~5.0.1", + "expo-dev-client": "^3.3.11", "expo-status-bar": "~1.11.1", "expo-system-ui": "^2.9.3", "react": "18.2.0", @@ -27,12 +28,12 @@ "react-native-async-storage": "^0.0.1", "react-native-drawer-layout": "^3.3.0", "react-native-gesture-handler": "~2.14.0", - "react-native-pager-view": "^6.3.0", + "react-native-pager-view": "6.2.3", "react-native-paper": "^5.12.3", - "react-native-reanimated": "~3.6.2", - "react-native-safe-area-context": "^4.9.0", + "react-native-reanimated": "latest", + "react-native-safe-area-context": "4.8.2", "react-native-safe-area-view": "^1.1.1", - "react-native-screens": "^3.30.1", + "react-native-screens": "~3.29.0", "react-native-simple-toast": "^3.3.1", "react-native-tab-view": "^3.5.2", "react-native-toast-notifications": "^3.4.0",