-
-
Notifications
You must be signed in to change notification settings - Fork 194
Support for android MNC #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ |
let manifestPath = path.join(projectRoot, "AndroidManifest.xml"); | ||
let apiLevel = this.getTarget(projectRoot).wait().split('-')[1]; | ||
if (apiLevel === "MNC") { // MNC SDK requires that minSdkVersion is set to "MNC" | ||
shell.sed('-i', /android:minSdkVersion=".*"/, `android:minSdkVersion="${apiLevel}"`, manifestPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you include ? in the regex. If you have line android:minSdkVersion="L" android:smthElse="Value", the match will be everything up to Value".
❌ |
✅ |
👍 after green build |
// TODO: parametrize targetSdk | ||
var targetSdk = "android-17"; | ||
let targetSdk = this.getTarget(projDir).wait() || "android-17"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this change here? This will update only project.properties
file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After personal discussion we decided to fix this in a separate PR.
Whitelist MNC SDK change all vars to lets When building with MNC SDK, change minSdkVersion to be MNC, required for succesful build See #507
✅ |
👍 |
Whitelist MNC SDK
change all vars to lets
When building with MNC SDK, change minSdkVersion to be MNC, required for succesful build
Use latest common lib to support MNC emulator
See #507