浏览代码

mobile: update doc

Tienson Qin 4 年之前
父节点
当前提交
52109a8d24
共有 3 个文件被更改,包括 11 次插入5 次删除
  1. 1 1
      android/gradle/wrapper/gradle-wrapper.properties
  2. 2 2
      capacitor.config.ts
  3. 8 2
      mobile.md

+ 1 - 1
android/gradle/wrapper/gradle-wrapper.properties

@@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
 zipStorePath=wrapper/dists

+ 2 - 2
capacitor.config.ts

@@ -1,8 +1,8 @@
 import { CapacitorConfig } from '@capacitor/cli';
 import { CapacitorConfig } from '@capacitor/cli';
 
 
 const config: CapacitorConfig = {
 const config: CapacitorConfig = {
-  appId: 'com.Logseq',
-  appName: 'capacitor-testapp',
+  appId: 'com.logseq.app',
+  appName: 'Logseq',
   bundledWebRuntime: false,
   bundledWebRuntime: false,
   webDir: 'public',
   webDir: 'public',
   server: {
   server: {

+ 8 - 2
mobile.md

@@ -1,6 +1,6 @@
-- install list:
+## install list:
 * Android studio
 * Android studio
-* SDK 29
+* SDK 30
 * other sdk tools in Android studio preference setting https://capacitorjs.com/docs/getting-started/environment-setup
 * other sdk tools in Android studio preference setting https://capacitorjs.com/docs/getting-started/environment-setup
 * change the server url in capacitor.config.json with your local ip:3001 (run ifconfig to check)
 * change the server url in capacitor.config.json with your local ip:3001 (run ifconfig to check)
 * run `yarn && yarn app-watch`
 * run `yarn && yarn app-watch`
@@ -9,3 +9,9 @@
 * click the run button in Android stutio to run the project
 * click the run button in Android stutio to run the project
 * after logseq startup in Android virtual device, repl should be able to connect
 * after logseq startup in Android virtual device, repl should be able to connect
 * for browser console print and devtool remote debug, open chrome, type url chrome://inspect/#devices, you should see your device there, click inspect
 * for browser console print and devtool remote debug, open chrome, type url chrome://inspect/#devices, you should see your device there, click inspect
+
+
+## Develop without opening Android Studio
+1. brew install gradle
+2. cd web/android && gradle wrapper
+3. install android sdk 30