hooligram client
1.0.0
git clone https://github.com/hooligram/hooligram-client.git
cd hooligram-client
프로젝트 루트에서 .env 라는 파일의 환경 변수를 정의합니다.
API_HOST = ws://<domain>:<port>/<end-point> LocalHost 서버에 연결하려면 10.0.2.2 <domain> (에뮬레이터 용)으로 사용하십시오.
에뮬레이터가 준비되었는지 또는 모바일 장치가 컴퓨터에 연결되어 있는지 확인하십시오.
yarn 또는 npm install
yarn android 또는 npm run android
adb reverse tcp:8081 tcp:8081 엔드 투 엔드 디버깅의 경우 때로는 지역 A Hooligram-Server에 연결하는 것이 좋습니다. 로컬 서버가 ws://localhost:8080 에서 실행 중이라고 가정하면 (서버를 로컬로 실행하는 방법에 대한 Hooligram-Server Repo의 readme 참조) :
.env 파일에서 API_HOST=ws://localhost:8080 설정하십시오.adb tcp:8080 tcp:8080yarn android android/gradle.properties 세부 사항을 작성하십시오.
RELEASE_KEY_ALIAS = *******
RELEASE_KEY_PASSWORD = *******
RELEASE_STORE_FILE = *******
RELEASE_STORE_PASSWORD = ******* hooligram.keystore 파일을 android/app 디렉토리에 넣습니다.
cd android
./gradlew assembleRelease
여기에서 APK를 찾으십시오 android/app/build/outputs/apk/release/app-release.apk 찾으십시오