Skip to content

Project Setting ​

After completing the SDK file import, you will need to configure the parameter project. There are 5 steps of configuration, detailed steps such as content.


Setting

All configurations are done on the info.plist file. The required Setting value is in theconfiguration_data.txt file

A、Setting the basic information: ​

  • 1、Setting theBundle id:Find Key as Bundle identifier item in info.plist,Fill in the corresponding value (eg, value: com.gamedreamer.demo);
  • 2、Add -ObjC to Build Settings > Other Linker Flags.

The effect is shown in the figure:

  • 3、Setting theVersion:Find Key for Bundle version and Bundle versions string, short items in info.plist, Fill in the corresponding value (this value must be agreed with the person in charge of the game).

The effect is shown in the figure:


B、Setting Facebook Info ​

  • 1、Setting theFacebook App ID:Add a Key value to FacebookAppID in info.plist,Type value is data of type String, fill in the corresponding value (the corresponding value is in configuration_data.txt);
  • 2、Setting theURL Schemes:Fill in the corresponding value in the URL Schemes box in Project -> Targets -> Info -> URL Types,value rules isstring“fb”+facebook app id。

The effect is shown in the figure:


C、Setting Line Info ​

  • 1、Setting theLine App ID:Add a Key value to LineSDKConfig in info.plist,Type value is data of type Dictionary, add a ChannelID item in this dictionary (the corresponding value is in configuration_data.txt);
  • 2、Setting theURL Schemes:Fill in the corresponding value in the URL Schemes box in Project -> Targets -> Info -> URL Types,value isline3rdp.Add the bundleId of your project。

The effect is shown in the figure:


D、Setting Twitter Info ​

  • 1、FindTwitter ID:in the configuration_data.txtSee the Picture:
  • 2、Setting theURL Schemes:Fill in the corresponding value in the URL Schemes box in Project -> Targets -> Info -> URL Types,value is Twitter ID。

See the Picture:


E、Setting Google Info ​

  • 1、FindGoogle ID:in the configuration_data.txtSee the Picture:
  • 2、Setting theURL Schemes:Fill in the corresponding value in the URL Schemes box in Project -> Targets -> Info -> URL Types,value is Google ID。

See the Picture:


F、Setting AppsFlyer Info ​

  • 1、Set the AppsFlyer report address Advertising attribution report endpoint URL: add the key Advertising attribution report endpoint URL in info.plist, set Type to String, and fill in https://appsflyer-skadnetwork.com/.

See the Picture:

  • 2、Set AppsFlyer URL Schemes: fill in the value in Project -> Targets -> Info -> URL Types. The rule is lowercase GameCode + facebook app id; the GameCode value can be obtained from GamedreamerResources.bundle -> GamedreamerConfig.plist.

See the Picture:


G、Setting AppleSignIn Info (After 1.8.0527 version must configure this function): ​

  • 1、OpenSign in with Apple:in the Project -> Targets -> Signing & Capabilities -> +Capability, find the capability and double click.

See the Picture:


H、Setting the Permissions : ​

  • 1、Setting theSchemes whitelist:Add a key value LSApplicationQueriesSchemes to info.plist,Type is data of type Array,And add the following five value in array:fbauth2,line3rdp.Add the bundleId of your project,lineauth,fbshareextension,fbapi,twitter,twitterauth;*(before 1.8.0421 version SDK do not need to configure twitter,twitterauth)

  • 2、Setting thePhoto Library Permissions:Add key values NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription in info.plist,Type is data of type string,The two value values are the same, and the values are as follows (the value is different depending on the local language of the game):
LanguageValue
traditional Chinese將您的遊客安全資料存儲到手機相冊
Simplified Chinese将您的游客安全资料存储到手机相册
Thaiจัดเก็บข้อมูลบัญชีของคุณเข้าในอัลบั้มโทรศัพท์
IndonesianData anda akan disimpan di Albums
EnglishSave your information of guest account into the album of your device
Korean게스트정보는 캘러리에서 저장되었습니다
Japanessゲストアカウント資料をアルバムに保存する

The effect is shown in the figure:


I、Setting the Notification: ​

  • 1、openNotification:Find Notifications in Project -> Targets -> Capabilities,open it.

The effect is shown in the figure:

  • 2、Xcode 11.0 version above,OpenPush Notification:in the Project -> Targets -> Signing & Capabilities -> +CapabilityfindPush Notifications,double click add it。

The effect is shown in the figure:

J、iOS 13 IDFA permission configuration (required for version 20.12.22 and later): ​

  • 1、info.plist

As follows:

xml
<key>NSUserTrackingUsageDescription</key>
<string>Your data will be used to deliver personalized ads to you</string>

K、Because the latest Facebook SDK depends on Swift, the Xcode project must add the Swift dependency (required for version 20.12.22 and later): ​

As follows:

xml
Target -> Build Settings -> Build Options -> Always Embed Swift Standard Libraries -> YES
  • 1、Enable Universal Link: in Project -> Targets -> Signing & Capabilities -> +Capability, find Associated Domain and double click to add it. See the Picture:
  • 2、Add the link in the associated domain. Confirm the link content with the technical team. See the Picture:

1、Add the PrivacyInfo file to the main project. In info.plist -> right-click New File from Template, find App Privacy and create it. See the Picture: