콘텐츠로 이동

적용하기

Android

허큘리스 모듈 사용하기

  • 모듈 수준의 build.gradle 파일에 다음을 추가합니다.
// 허큘리스 어뷰징 탐지
implementation "com.com2us.android.hive:hive-hercules"

허큘리스 모듈 제거하기

  • 모듈 수준의 build.gradle 파일에서 다음을 제거합니다.
// 허큘리스 어뷰징 탐지
// implementation "com.com2us.android.hive:hive-hercules" // 미 사용 시 이 라인 제거

iOS

허큘리스 모듈 사용하기

  • Podfile 예제코드를 참고하여 허큘리스 관련 내용을 추가합니다.
    source 'https://github.com/Com2uSPlatformCorp/Hercules-iOS.git'
    
    ...
    target 'HIVE_GAME_COOL' do
        pod 'Hercules', '${SDK_VERSION}'
    end
    ...
    

허큘리스 모듈 제거하기

  • Podfile 예제코드를 참고하여 허큘리스 관련 내용을 제거합니다.
    ...
    target 'HIVE_GAME_COOL' do
    end
    ...
    

Cocos

Android

iOS

Unity

Mobile

  • Unity 환경에서 허큘리스 모듈을 사용하기 위해 다음 설정이 필요합니다.
    • Hive > ExternalDependency 메뉴를 클릭합니다.
    • 설정 창이 나타나면 허큘리스 항목을 체크합니다.
    • 앱에서 허큘리스를 사용하지 않으려면 체크를 해제합니다.

Windows

허큘리스 모듈 사용하기

  • SDK Unity Plugin은 허큘리스를 기본으로 포함하고 있습니다.

허큘리스 모듈 제거하기

  • 아래 파일들을 삭제합니다.
    • /Assets/Hive_SDK_v4/Plugins/Windows/additional/Hercules.dll
    • /Assets/Hive_SDK_v4/Plugins/Windows/additional/HIVE_UI_IMPL_C_PORT.dll

Unreal

Android

  • Unreal Editor → Edit → Project Settings 메뉴를 선택합니다.
  • Project Settings 좌측 패널에서 Hive SDK → Dependency → Android를 선택합니다.
  • Hive Module → Enable Hercules에 체크합니다.
  • 앱에서 허큘리스를 사용하지 않으려면 체크를 해제합니다.

iOS

  • Unreal Editor → Edit → Project Settings를 선택합니다.
  • Project Settings 좌측 패널에서 Hive SDK → Dependency → iOS를 선택합니다.
  • Hive Module → Enable Hercules에 체크합니다.
  • 앱에서 허큘리스를 사용하지 않으려면 체크를 해제합니다.

Windows

허큘리스 모듈 사용하기

  • SDK Unreal Plugin은 허큘리스를 기본 포함하고 있습니다.

허큘리스 모듈 제거하기

  • /Plugins/HIVESDK/Source/HIVESDK/ThirdParty/windows/additional/hivePlugins/hercules 폴더를 제거합니다.

허큘리스 모듈 사용 여부에 대한 API 호출하기

Warning

허큘리스 모듈을 사용하지 않으려면 Android 의존성 제거 및 iOS 프레임워크 제거후 반드시 AuthV1, AuthV4 초기화 이전에 setUseHercules API를 통해 허큘리스 모듈을 사용하지 않음을 명시적으로 SDK에 알려야 합니다.(예제 코드 참고)
Android 의존성 제거 및 iOS 프레임워크만 제거된 상태에서 API를 추가로 호출하지 않은 경우 악성 위변조된 상태로 간주되며 AuthV1, AuthV4 초기화 완료 시점에 크래시가 발생합니다.

Note

SDK는 AuthV1, AuthV4 초기화 완료 시점에 허큘리스 모듈을 자동으로 초기화 시킵니다.

예제 코드

// Set it to false if you do not want to use the Hercules module
// You should call this API before AuthV1, AuthV4 initialization
Configuraiton.setUseHercules(false);
// Set it to false if you do not want to use the Hercules module
// You should call this API before AuthV1, AuthV4 initialization
hive::Configuration::setUseHercules(false);
// Set it to false if you do not want to use the Hercules module
// You should call this API before AuthV1, AuthV4 initialization
Configuration.useHercules = false
// Set it to false if you do not want to use the Hercules module
// You should call this API before AuthV1, AuthV4 initialization
com.hive.Configuration.INSTANCE.setUseHercules(false);
// Set it to false if you do not want to use the Hercules module
// You should call this API before AuthV1, AuthV4 initialization
ConfigurationInterface.setUseHercules(false)
// Set it to false if you do not want to use the Hercules module
// You should call this API before AuthV1, AuthV4 initialization
[HIVEConfiguration setUseHercules:NO];