-
06/18~19 유니티 어플 구글 플레이 콘솔에 등록 및 로그인 구현 연습게임 플랫폼 응용프로그래밍 2021. 6. 17. 16:31
GPGS
FB
KAKAO
NAVER
nox설치
개발콘솔 로그인(개발자 등록)
깃허브 (GPGS매뉴얼)에서 소스 다운로드
새 프로젝트 만들기
플랫폼 변경 : 안드로이드
유니티 프로젝트에서 import
play-games-plugin-for-unity-master/current-build/GooglePlayGamesPlugin-0.10.12.unitypackage
Plugins > Android > 파일들이 생성되었는지 확인 (인터넷 환경 필수)
도중 에러가 났을 경우
Resolve
가 안될 경우
Force Resolve
자바 설치 안되어 있다면 (cmd에서 java -version)
jdk 1.8 download 검색후 오라클 사이트에서
https://www.oracle.com/kr/java/technologies/javase/javase-jdk8-downloads.html
jdk-8u291-windows-x64.exe
jdk와 jvm같이 설치
빌드 테스트
구글 플레이 콘솔
앱 생성
앱 정보 작성
인증서
- 업로드 인증서
- 앱서명 인증서
업로드 인증서
유니티의 키스토어
apk에 포함
구글클라우드 플랫폼
oauth 2.0 클라이언트 id 생성
keytool -keystore 키 스토어 위치 -list -v
유니티에 클라이언트 ID 추가
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using GooglePlayGames; using GooglePlayGames.BasicApi; using UnityEngine.SocialPlatforms; public class App : MonoBehaviour { public Text versionText; void Start() { versionText.text = Application.version; Debug.Log("================================> Init GPGS"); PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder() .EnableSavedGames() .Build(); PlayGamesPlatform.InitializeInstance(config); // recommended for debugging: PlayGamesPlatform.DebugLogEnabled = true; // Activate the Google Play Games platform PlayGamesPlatform.Activate(); Debug.Log("================================> Authenticate"); // authenticate user: PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptAlways, (result) => { // handle results Debug.Log("================================>" + result); }); } }
adb
adb.exe
안드로이드 SDK가 있는 위치
녹스 폴더
앱실행후
접속되어 있는 기기 확인 : adb devices
기기접속 : adb connect 주소:포트
로그보기 : adb logcat
유니티 로그 : adb logcat -s Unity
adb connect 127.0.0.1:62001
2021년 8월부터
앱 번들(abb)로만 구글 스토어에 올릴 수 있음
play asset delivery
젠킨스(Jenkins)
빌드 시켜주는 소프트웨어
'게임 플랫폼 응용프로그래밍' 카테고리의 다른 글
06/25 웹뷰 (0) 2021.06.25 06/24 네이버로그인 (0) 2021.06.24 06/24 GPGS 4 리더보드 (0) 2021.06.24 06/23 GPGS 3 업적 (0) 2021.06.23 06/22 GPGS 테스트 2 (0) 2021.06.22