Comments (5)
+1, Better licensing support issues seem to be already filed under the bazel
repository:
bazelbuild/bazel#1440
from rules_apple.
@sergiocampama @allevato - Can you provide your thoughts here?
from rules_apple.
Thanks for the pointer @rahul-malik!
from rules_apple.
I think bazelbuild/bazel#1440 is orthogonal to this issue, but could help out a lot.
Acknowledgments.plist
and Settings.bundle
is pretty specific to Apple development, so maybe it belongs in rules_apple
I've dug into this more and I've discovered that licensing should be at the target level.
With 50 or so third party deps, licensing is defined at the target level and not the package. For example, we've got Texture
as a dependency which has several targets in the package. A given target in Testure
's build file, Texture_PINRemoteImage
depends on targets, say PINRemoteImage
which has it's own licensing requirements. Consequently, PINRemoteImage
's license does not apply if we don't actually depend on it.
Currently I have achieved this by implementing a parallel structure to the objc_*
targets:
- define a rule,
acknowledged_target
, which has a value of anacknowledgement_fragment_plist
, that contains licensing information. acknowegledged_target
, depend on otheracknowledged_target
s so we can aggregate all of the fragments intoacknowledgment_plist
- define an
objc_bundle_library
,Settings
, which has aresource
includingacknowledgments_plist
- define a rule,
acknowledgments_plist
, which aggregates all of theacknowledged_target
s ( and their transitive deps intoAcknowledgment.plist
This was some effort to pull off, but it's robust and meets my needs. I'm not sure how reasonable it'd be to integrate this without code generating all of the build files. Still, it is not 100% ideal.
Alternatives Considered:
Another approach could be to create dummy Settings.bundle
s for each dependency containing the acknowledgment_fragment_plist
. Then, merge them together before constructing the final ipa with an ipa preprocessor
Conclusion
I think this feature is a good fit for rules_apple
, since Acknowledgments.plist
is needed for apps which leverage third party code. I don't think my implementation is upstream able or 100% reasonable.
If bazelbuild/bazel#1440 somehow allowed a user to associate a license file with each target, then, they could potentially aggregate those into Acknowledgments.plist
at some point in the build graph. I think this would be ideal.
from rules_apple.
Sounds like this feature is blocked on the bazel issue. For now, manual inclusion sounds like the best workaround.
from rules_apple.
Related Issues (20)
- `ios_build_test` and `ios_application ` cannot be directly used with default platform from apple_support HOT 4
- iOS app tutorial steps produce an app that crashes on launch HOT 1
- xctoolrunner failed: error executing in Downstream CI with Bazel@HEAD HOT 2
- How to build for multiple architectures HOT 10
- Support XCFramework Signatures HOT 5
- Failed xctoolrunner error executing AssetCatalogCompile command with Bazel@HEAD HOT 2
- Terminating app due to uncaught exception 'IBPlatformToolFailureException', reason: 'The tool closed the connection (AssetCatalogSimulatorAgent) HOT 1
- Bazel 7: Linking actions missing`-framework` flags for framework imports HOT 2
- iOSApp.ipa: code object is not signed at all HOT 1
- framework import by apple_static_framework_import crashed after update bazel from 5.4.1 to 6.5.0 HOT 3
- Duplicate symbols from apple_static_xcframework
- [Bazel 7] ios_application linking issue - "Could not find or use auto-linked framework" HOT 3
- [Bazel CI] Rule fails to build with error: 'struct' value has no field or method 'to_json' HOT 2
- `target_compatible_with` appears to be broken in Bazel 7.x
- `security` tool fails when codesigning with 3.5.0 HOT 2
- Support extension blocks in DocC rule
- Question: data attribute for macos_command_line_application or alternative
- Unable to nest app bundles within a macos_application
- How should I build a Network Extension about Xcode HOT 4
- Generated XCFramework fails on Xcode 15.3
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 rules_apple.