반응형

# 구름 IDE를 이용한 앱 개발

## 준비물

 

구름IDE - 설치가 필요없는 통합개발환경 서비스

구름IDE는 언제 어디서나 사용 가능한 클라우드 통합개발환경(Integrated Development Environment IDE)을 제공합니다. 웹브라우저만 있으면 코딩, 디버그, 컴파일, 배포 등 개발에 관련된 모든 작업을 클라

ide.goorm.io

 

## 진행방법

1. 컨테이너 생성

  • 구름 IDE 가입 후 로그인, 우측 상단 대시보드 클릭하여 진입
  • 새 컨테이너 생성 클릭 후 아래 처럼 입력 후 생성 클릭
이름 : 앱이름
지역 : 서울(한국)
공개 범위 : 원하는 것 선택
( public 일 경우 공개 / private 일 경우 비 공개 )
소프트웨어 스택 : React Native 

 

2. 작업 진행

 

WebView - Expo Documentation

WebView react-native-webview provides a WebView component that renders web content in a native view. Platform Compatibility Android DeviceAndroid EmulatoriOS DeviceiOS SimulatorWeb You should refer to the react-native-webview docs for more information on t

docs.expo.io

  • 사이트 진입하여 아래 코드 복사 후 컨테이너로 가져와서 진행
터미널에 아래 입력하여 설치 진행
expo install react-native-webview


Usage 부분 코드 복사 후 App.js에 붙여넣기
import * as React from 'react';
import { WebView } from 'react-native-webview';

export default class App extends React.Component {
  render() {
    return <WebView source={{ uri: 'https://expo.io' }} style={{ marginTop: 20 }} />;
  }
}


위 코드 uri 부분(uri: 'https://expo.io')에 본인이 작업하여 배포한 사이트 주소 입력
  • 입력 완료 후 우측 상단에 재생 버튼 클릭하여 실행
  • 실행하면 QR코드가 나오는데, 안드로이드의 경우 Expo 어플을 설치, IOS의 경우 Expo Client 어플 설치 후 어플로 해당 QR 코드 스캔하여 정상실행 되는지 확인

 

3. 앱 출시 준비하기

  • app.json 파일 실행
  • expo 항목의 name은 해당 앱의 이름입력
  • 앱 icon, splash 이미지의 경우 구글에 expo app icon 입력하여 나오는 사이트에서 규격 확인 (docs.expo.io/guides/app-icons/
  • (icon의 경우 1024x1024, splash 이미지의 경우 1242x2436, png 형식의 파일)
 

App Icons - Expo Documentation

App Icons Your app's icon is what users see on the home screen of their devices, as well as in the App Store and Play Store. This is one topic where platform differences matter, and requirements can be strict. This guide offers details on how to make sure

docs.expo.io

 

Building Standalone Apps - Expo Documentation

To run it on your iOS simulator, first build your project with the simulator flag by running expo build:ios -t simulator, then download the artifact with the link printed when your build completes. To install the resulting tar.gz file, unzip it and drag-an

docs.expo.io

  • 아래 코드 입력하여 진행
터미널에 아래 입력하여 설치 진행
npm install -g expo-cli


설치 완료 후 오류 방지를 위해 왼쪽 폴더 목록의 .expo 폴더 삭제


app.json 에 안드로이드, ios 관련 코드 추가
 "ios": {
      "bundleIdentifier": "com.yourcompany.yourappname",
      "buildNumber": "1.0.0"
    },
    "android": {
      "package": "com.yourcompany.yourappname",
      "versionCode": 1
    }

 

4. 출시할 수 있는 apk 파일 생성

  • 아래 입력하여 진행
아래 입력 후 엔터
expo build:android


빌드 진행을 위해 expo 계정 필요
계정이 없는 경우 터미널에 나온 문구 중 계정 생성 클릭하여 진행


계정 생성 및 로그인 후
key 관리 문구나오면 expo가 진행할 수 있도록 선택
  • 완료 후 터미널에 나온 expo 링크로 진입, 로그인 후 Builds에 가서 완료된 내역에서 다운로드  버튼 클릭하여 apk 파일 다운로드 진행
  • 안드로이드의 경우 터미널에 나온 링크로 접속하여 apk 파일을 다운로드, 설치할 수도 있다.

 

출처 : 조코딩 유튜브 www.youtube.com/watch?v=8eIQNfPbRms

 

반응형

'기타' 카테고리의 다른 글

소수  (0) 2020.10.29
앱 출시 방법  (0) 2020.10.27
사이트 맵 생성하기  (0) 2020.10.08
카카오 맵 api 주소로 장소 표시하기(좌표 얻기)  (0) 2020.10.07
파이썬 slice  (0) 2020.10.07

+ Recent posts