Skip to content

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

Merged
merged 1 commit into from
Jun 2, 2015
Merged

Support for android MNC #513

merged 1 commit into from
Jun 2, 2015

Conversation

teobugslayer
Copy link
Contributor

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

@ns-bot
Copy link

ns-bot commented Jun 1, 2015

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);
Copy link
Contributor

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".

@ns-bot
Copy link

ns-bot commented Jun 2, 2015

@ns-bot
Copy link

ns-bot commented Jun 2, 2015

@rosen-vladimirov
Copy link
Contributor

👍 after green build

// TODO: parametrize targetSdk
var targetSdk = "android-17";
let targetSdk = this.getTarget(projDir).wait() || "android-17";
Copy link
Contributor

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

Copy link
Contributor Author

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
@ns-bot
Copy link

ns-bot commented Jun 2, 2015

@Fatme
Copy link
Contributor

Fatme commented Jun 2, 2015

👍

@teobugslayer teobugslayer added this to the 1.1.0 milestone Jun 2, 2015
teobugslayer added a commit that referenced this pull request Jun 2, 2015
@teobugslayer teobugslayer merged commit 86e051e into master Jun 2, 2015
@teobugslayer teobugslayer deleted the totev/mnc branch June 3, 2015 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants