Gamepub SDK
Korean
Korean
  • sdk guide
    • 시작하기
      • 다운로드
      • Android 설정
      • iOS 설정
      • 유니티 환경설정
    • 초기화
    • 인증
    • 결제
    • 푸시
    • UI
  • Console Guide
    • PubSDK Admin
      • 프로젝트 설정
    • 구글 콘솔
      • 구글 로그인
        • Android 클라이언트용
        • iOS 클라이언트용
      • 구글 스토어 결제
      • 푸시 (FCM)
    • 애플 콘솔
      • 애플 로그인
      • 앱스토어 결제
      • 푸시 (APNs)
    • 페이스북 콘솔
      • 페이스북 로그인 (AOS & iOS)
    • 원스토어 콘솔
      • 원스토어 결제
Powered by GitBook
On this page
  • Dependencies
  • Gradle
  • 소셜 로그인 및 인앱 결제 서비스 연동 설정
  • AndroidX 사용 설정
  1. sdk guide
  2. 시작하기

Android 설정

빌드 환경 : Gradle 6.1.1

Dependencies

Assets/GamepubSDK/Editor/PubSDKDependencies.xml

<?xml version="1.0" encoding="utf-8"?>
<dependencies>    
    <androidPackages>
        <androidPackage spec="io.github.gamepubcorp:pubsdk:[2.1.8]"/>        
        <repositories>
            <repository>https://s01.oss.sonatype.org/content/repositories/releases</repository>
        </repositories>
        <androidPackage spec="com.google.code.gson:gson:2.8.5"/>
        <androidPackage spec="org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61"/>
    </androidPackages>
</dependencies>

Gradle

소셜 로그인 및 인앱 결제 서비스 연동 설정

Assets/Plugins/Android/launcherTemplate.gradle

갤럭시 스토어 클라이언트는 베타테스트 및 정식 출시 시 galaxy_store_operation_mode 를 "PROD" 로 설정했는지 반드시 확인해 주세요.

android {
    ...
    defaultConfig {
        ...       
        resValue "string", "google_web_client_id", "com.your.client.id.here"
        resValue "string", "facebook_app_id", "com.your.app.id.here"
        resValue "string", "facebook_client_token", "com.your.token.here"
        resValue "string", "apple_client_id", "com.your.client.id.here"
        resValue "string", "android_store", "google" // ["google", "one", "galaxy"]
    }
    ...
Key
Description

google_web_client_id

facebook_app_id

facebook_client_token

apple_client_id

android_store

사용할 결제 스토어

AndroidX 사용 설정

Assets/Plugins/Android/gradleTemplate.properties

android.useAndroidX=true
android.enableJetifier=true
Previous다운로드NextiOS 설정

Last updated 2 years ago

Apple 로그인용 식별자
Google 로그인용 식별자
Facebook 로그인용 식별자
Facebook 로그인용 식별자