Comments (7)
Hi @uerceg,
In the MenuItems its perfectly fine to use #if. But for everthing thats is executed during a buildprocess (especially when running unity in batchmode for creating a build as we do on our buildservers) you should use the BuildTarget (which is passed as a parameter in the OnPostProcess methods). This is the source as it worked for us:
from unity_sdk.
This is true - we ran into the same issue and I had to change to using 'target'. I should also add that I'm only seeing this with Adjust (we integrate with many other SDK). I to currentplatform checks any numerous places, and values are always iOS, but the #if UNITY_IPHONE never gets executed - very weird behaviour
from unity_sdk.
Thanks for the suggestion, we'll do that in the upcoming update 👍
from unity_sdk.
@b0rje @aphexyuri Sorry for delay in solving this issue, planning to add it to next release. I see what you mean, but do you have advice how to detect platform for MenuItem
entries in AdjustEditor.cs
?
from unity_sdk.
Hi @b0rje
And thank you very much for this example, we'll probably add it to our next release. Will ping in here once it's live.
Cheers!
from unity_sdk.
Added to current PR, will be live soon.
For reference: e6cbd18
from unity_sdk.
Included in latest v4.7.0
: https://github.com/adjust/unity_sdk/releases/tag/v4.7.0
Thank you one more time for suggestion.
Cheers!
from unity_sdk.
Related Issues (20)
- When is the next update? HOT 2
- Adjust SDK Unity - Android 12 (SDK 31) HOT 5
- Assets/Adjust/Unity/AdjustUtils.cs(218,56): error CS0246: The type or namespace name 'JSONClass' could not be found (are you missing a using directive or an assembly reference?) HOT 4
- Apple Review Reject HOT 6
- Google Play Reject HOT 3
- Feature Request: track event using event name instead of token
- Official SDK don't include Dependencies.xml inside Editor folder.
- iOS Bitcode issue HOT 4
- AdjustEditorPreprocessor - Path does not contain a definition of 'Combine' HOT 1
- [Question] (Deeplink)Android URL Scheme Definition Not Very Well HOT 4
- [Question] INSTALL_PACKAGES permission required always? HOT 2
- HTTP Client Error with status code: 500
- Build error on iOS after upgrading to 4.33.1 HOT 5
- Android Build failed after intalling Firebase Cloud Messaging Unity Sdk. HOT 1
- I can't access to "Ad-ID" in the first session HOT 2
- ANR caused by SDK HOT 1
- Attribution Data Issue on iOS
- AddURISchemes should not check for ://
- Adding the Adjust Package with scoped registries
- Ambiguous overloads found for onGoogleAdIdRead HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity_sdk.