@@ -31,28 +31,69 @@ public override void OnInspectorGUI()
3131 EditorGUILayout . Space ( ) ;
3232 EditorGUILayout . LabelField ( "MULTIPLATFORM SETTINGS:" , darkerCyanTextFieldStyles ) ;
3333 EditorGUI . indentLevel += 1 ;
34+ EditorGUILayout . Space ( ) ;
3435 adjust . appToken = EditorGUILayout . TextField ( "App Token" , adjust . appToken ) ;
3536 adjust . environment = ( AdjustEnvironment ) EditorGUILayout . EnumPopup ( "Environment" , adjust . environment ) ;
3637 adjust . logLevel = ( AdjustLogLevel ) EditorGUILayout . EnumPopup ( "Log Level" , adjust . logLevel ) ;
37- // TODO: URL strategy missing
38+ adjust . firstSessionDelay = EditorGUILayout . Toggle ( "First Session Delay" , adjust . firstSessionDelay ) ;
3839 adjust . sendInBackground = EditorGUILayout . Toggle ( "Send In Background" , adjust . sendInBackground ) ;
3940 adjust . launchDeferredDeeplink = EditorGUILayout . Toggle ( "Launch Deferred Deep Link" , adjust . launchDeferredDeeplink ) ;
4041 adjust . costDataInAttribution = EditorGUILayout . Toggle ( "Cost Data In Attribution Callback" , adjust . costDataInAttribution ) ;
41- adjust . linkMe = EditorGUILayout . Toggle ( "LinkMe" , adjust . linkMe ) ;
42+ adjust . deviceIdsReadingOnce = EditorGUILayout . Toggle ( "Device IDs Reading Once" , adjust . deviceIdsReadingOnce ) ;
43+ adjust . eventDeduplicationIdsMaxSize = EditorGUILayout . IntField ( "Event Deduplication IDs Count" , adjust . eventDeduplicationIdsMaxSize ) ;
4244 adjust . defaultTracker = EditorGUILayout . TextField ( "Default Tracker" , adjust . defaultTracker ) ;
43- EditorGUI . indentLevel -= 1 ;
45+
46+ // Store Info section - visually grouped
4447 EditorGUILayout . Space ( ) ;
45- EditorGUILayout . LabelField ( "ANDROID SETTINGS :" , darkerCyanTextFieldStyles ) ;
48+ EditorGUILayout . LabelField ( "Store Info :" , EditorStyles . boldLabel ) ;
4649 EditorGUI . indentLevel += 1 ;
47- adjust . preinstallTracking = EditorGUILayout . Toggle ( "Preinstall Tracking ", adjust . preinstallTracking ) ;
48- adjust . preinstallFilePath = EditorGUILayout . TextField ( "Preinstall File Path " , adjust . preinstallFilePath ) ;
50+ adjust . storeName = EditorGUILayout . TextField ( "Store Name ", adjust . storeName ) ;
51+ adjust . storeAppId = EditorGUILayout . TextField ( "Store App ID " , adjust . storeAppId ) ;
4952 EditorGUI . indentLevel -= 1 ;
53+
54+ // URL Strategy and Data Residency section - visually grouped
5055 EditorGUILayout . Space ( ) ;
51- EditorGUILayout . LabelField ( "IOS SETTINGS:" , darkerCyanTextFieldStyles ) ;
56+ EditorGUILayout . LabelField ( "URL Strategy And Data Residency:" , EditorStyles . boldLabel ) ;
57+ EditorGUI . indentLevel += 1 ;
58+
59+ // URL Strategy Domains list
60+ if ( adjust . urlStrategyDomains == null )
61+ {
62+ adjust . urlStrategyDomains = new System . Collections . Generic . List < string > ( ) ;
63+ }
64+
65+ EditorGUILayout . LabelField ( "URL Strategy Domains" , EditorStyles . label ) ;
5266 EditorGUI . indentLevel += 1 ;
53- adjust . adServices = EditorGUILayout . Toggle ( "AdServices Info Reading" , adjust . adServices ) ;
54- adjust . idfaReading = EditorGUILayout . Toggle ( "IDFA Info Reading" , adjust . idfaReading ) ;
55- adjust . skanAttribution = EditorGUILayout . Toggle ( "SKAdNetwork Handling" , adjust . skanAttribution ) ;
67+ int domainCount = adjust . urlStrategyDomains . Count ;
68+ int newDomainCount = EditorGUILayout . IntField ( "Size" , domainCount ) ;
69+ if ( newDomainCount != domainCount )
70+ {
71+ while ( adjust . urlStrategyDomains . Count < newDomainCount )
72+ {
73+ adjust . urlStrategyDomains . Add ( "" ) ;
74+ }
75+ while ( adjust . urlStrategyDomains . Count > newDomainCount )
76+ {
77+ adjust . urlStrategyDomains . RemoveAt ( adjust . urlStrategyDomains . Count - 1 ) ;
78+ }
79+ }
80+
81+ for ( int i = 0 ; i < adjust . urlStrategyDomains . Count ; i ++ )
82+ {
83+ EditorGUILayout . BeginHorizontal ( ) ;
84+ adjust . urlStrategyDomains [ i ] = EditorGUILayout . TextField ( "Element " + i , adjust . urlStrategyDomains [ i ] ) ;
85+ if ( GUILayout . Button ( "Remove" , GUILayout . Width ( 60 ) ) )
86+ {
87+ adjust . urlStrategyDomains . RemoveAt ( i ) ;
88+ break ;
89+ }
90+ EditorGUILayout . EndHorizontal ( ) ;
91+ }
92+ EditorGUI . indentLevel -= 1 ;
93+
94+ adjust . shouldUseSubdomains = EditorGUILayout . Toggle ( "Should Use Subdomains" , adjust . shouldUseSubdomains ) ;
95+ adjust . isDataResidency = EditorGUILayout . Toggle ( "Is Data Residency" , adjust . isDataResidency ) ;
96+ EditorGUI . indentLevel -= 1 ;
5697 EditorGUI . indentLevel -= 1 ;
5798 }
5899
0 commit comments