coding

Android local.properties for Windows

Path for windows:
sdk.dir=C\:\\android-sdk

Display Virtuals As NoEdit Fields In Keystone Admin UI

Use the post init hook.
For example:

Assume the Post list model has the following, of which contentFull will be filled from the content.full virtual:

...
content: {
    brief: { type: Types.Html, wysiwyg: true, height: 150 },
    extended: { type: Types.Html, wysiwyg: true, height: 400 }
},
contentFull: {type: Types.Html, wysiwyg: true, height: 400, noedit: true}
...
Post.schema.virtual('content.full').get(function() {
    return this.content.extended || this.content.brief;
});

Then you can fill up contentFull as follows:

Post.schema.post('init', function() {
    this.contentFull = this.content.full;
});

Git pull submodule

Git Pull with Submodule

For a repo with submodules, we can pull all submodules using

git submodule update --init --recursive

for the first time. All submodules will be pulled down locally.

To update submodules, we can use

git submodule update --recursive --remote

or simply

git pull --recurse-submodules

mergeDebugResources FAILED React Native

When you’re inside your project directory try using :

cd android && gradlew clean cd .. && react-native run-android

Accept Android SDK licenses from cli

The way to accept license agreements from the command line has changed. You can use the SDK manager which is located at: $ANDROID_HOME/tools/bin

e.g:
~/Library/Android/sdk/tools/bin

Run the sdkmanager as follows:
./sdkmanager --licenses

And accept the licenses you did not accept yet (but need to).