Skip to content

Commit e8c8dcb

Browse files
committed
updated project settings and ios upload script
1 parent ccad98b commit e8c8dcb

File tree

6 files changed

+167
-16
lines changed

6 files changed

+167
-16
lines changed

Assets/SequenceSDK/Editor/CreateConfigFileFromEnvironment.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public void OnPreprocessBuild(BuildReport report)
3333
asset.WaaSConfigKey = Environment.GetEnvironmentVariable("WAAS_KEY");
3434
asset.UrlScheme = Environment.GetEnvironmentVariable("URL_SCHEME");
3535
asset.GoogleClientId = Environment.GetEnvironmentVariable("GOOGLE_CLIENT_ID");
36-
asset.GoogleClientIdIOS = Environment.GetEnvironmentVariable("GOOGLE_CLIENT_ID");
36+
asset.GoogleClientIdIOS = Environment.GetEnvironmentVariable("GOOGLE_CLIENT_ID_IOS");
3737
asset.AppleClientId = Environment.GetEnvironmentVariable("APPLE_CLIENT_ID");
38-
asset.AppleClientIdIOS = Environment.GetEnvironmentVariable("APPLE_CLIENT_ID");
38+
asset.AppleClientIdIOS = Environment.GetEnvironmentVariable("APPLE_CLIENT_ID_IOS");
3939
asset.EditorStoreSessionPrivateKeyInSecureStorage = true;
4040
asset.StoreSessionPrivateKeyInSecureStorage = true;
4141

@@ -45,6 +45,11 @@ public void OnPreprocessBuild(BuildReport report)
4545
AssetDatabase.SaveAssets();
4646

4747
Debug.Log("ScriptableObject created at: " + assetPath);
48+
49+
var version = PackageVersionReader.GetVersion();
50+
PlayerSettings.bundleVersion = version;
51+
52+
Debug.Log($"Updated Unity Project Version to {version}");
4853
}
4954
}
5055
}

Assets/SequenceSDK/Editor/TestflightUploadPostBuildScript.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ public void OnPostprocessBuild(BuildReport report)
1717
if (report.summary.platform != BuildTarget.iOS ||
1818
Environment.GetEnvironmentVariable("ENABLE_TESTFLIGHT_UPLOAD") != "TRUE")
1919
return;
20-
21-
Debug.Log("Uploading iOS binary to TestFlight...");
2220

2321
var exportPath = report.summary.outputPath;
24-
var ipaPath = Path.Combine(exportPath, "../.build/last/ios-production/build.ipa");
22+
var ipaPath = Path.GetFullPath(Path.Combine(exportPath, "../.build/last/ios-production/build.ipa"));
23+
24+
Debug.Log($"Uploading iOS binary to TestFlight from {ipaPath}");
2525

2626
var keyId = Environment.GetEnvironmentVariable("APPSTORE_CONNECT_KEY_ID");
2727
var issuerId = Environment.GetEnvironmentVariable("APPSTORE_CONNECT_ISSUER_ID");
2828
var privateKey = Environment.GetEnvironmentVariable("APPSTORE_CONNECT_P8");
2929

30-
var keyDir = Path.Combine("BUILD_PATH", ".appstoreconnect/private_keys");
30+
var keyDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".appstoreconnect/private_keys");
3131

3232
Directory.CreateDirectory(keyDir);
3333
var keyPath = Path.Combine(keyDir, $"AuthKey_{keyId}.p8");

Assets/Sprites.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Sprites/unity-sdk-logo.png

37.3 KB
Loading

Assets/Sprites/unity-sdk-logo.png.meta

Lines changed: 140 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProjectSettings/ProjectSettings.asset

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ PlayerSettings:
1212
targetDevice: 2
1313
useOnDemandResources: 0
1414
accelerometerFrequency: 60
15-
companyName: HorizonGames
16-
productName: demo-unity-game
15+
companyName: Sequence
16+
productName: Unity SDK
1717
defaultCursor: {fileID: 0}
1818
cursorHotspot: {x: 0, y: 0}
1919
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@@ -39,9 +39,7 @@ PlayerSettings:
3939
y: 0
4040
width: 1
4141
height: 1
42-
m_SplashScreenLogos:
43-
- logo: {fileID: 21300000, guid: c0ef93602dafea24481e22e4ad982ada, type: 3}
44-
duration: 2
42+
m_SplashScreenLogos: []
4543
m_VirtualRealitySplashScreen: {fileID: 0}
4644
m_HolographicTrackingLossScreen: {fileID: 0}
4745
defaultScreenWidth: 1920
@@ -143,7 +141,7 @@ PlayerSettings:
143141
loadStoreDebugModeEnabled: 0
144142
visionOSBundleVersion: 1.0
145143
tvOSBundleVersion: 1.0
146-
bundleVersion: 0.1
144+
bundleVersion: 0.1.0
147145
preloadedAssets: []
148146
metroInputSource: 0
149147
wsaTransparentSwapchain: 0
@@ -165,15 +163,15 @@ PlayerSettings:
165163
androidSupportedAspectRatio: 1
166164
androidMaxAspectRatio: 2.1
167165
applicationIdentifier:
168-
Android: com.HorizonGames.demounitygame
166+
Android: app.sequence.unitysdkdemo
169167
Standalone: com.HorizonGames.demo-unity-game
170-
iPhone: com.HorizonGames.demo-unity-game
168+
iPhone: app.sequence.unitysdkdemo
171169
buildNumber:
172170
Standalone: 0
173171
VisionOS: 0
174172
iPhone: 0
175173
tvOS: 0
176-
overrideDefaultApplicationIdentifier: 0
174+
overrideDefaultApplicationIdentifier: 1
177175
AndroidBundleVersionCode: 1
178176
AndroidMinSdkVersion: 22
179177
AndroidTargetSdkVersion: 34
@@ -296,7 +294,7 @@ PlayerSettings:
296294
- m_BuildTarget:
297295
m_Icons:
298296
- serializedVersion: 2
299-
m_Icon: {fileID: 2800000, guid: 375caf278138d480aa979f4b43bd37e0, type: 3}
297+
m_Icon: {fileID: 2800000, guid: 6b1a05abc6c324915b5601ca9aa1d0e9, type: 3}
300298
m_Width: 128
301299
m_Height: 128
302300
m_Kind: 0

0 commit comments

Comments
 (0)