In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
| #!/bin/bash | |
| ADB_PATH="/Users/lee/Library/Android/sdk/platform-tools" | |
| PACKAGE_NAME="com.yourcompany.app" | |
| DB_NAME="default.realm" | |
| DESTINATION_PATH="/Users/lee/Downloads/${DB_NAME}" | |
| NOT_PRESENT="List of devices attached" | |
| ADB_FOUND=`${ADB_PATH}/adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
| if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
| echo "Make sure a device is connected" | |
| else |
| import android.annotation.SuppressLint; | |
| import android.content.ContentUris; | |
| import android.content.Context; | |
| import android.content.CursorLoader; | |
| import android.database.Cursor; | |
| import android.net.Uri; | |
| import android.os.Build; | |
| import android.os.Environment; | |
| import android.provider.DocumentsContract; | |
| import android.provider.MediaStore; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace SLL | |
| { | |
| /// <summary> | |
| /// A simple basic implementation of singly linked list in C#. The List class implements Add, Find and Delete funcationality without using built-in .NET classes. |
| package com.boloro.boloromobileapp.util; | |
| import android.content.Context; | |
| import android.location.Address; | |
| import android.location.Geocoder; | |
| import android.util.Log; | |
| import java.io.IOException; | |
| import java.util.List; | |
| import java.util.Locale; |
| public class ProjectUtils { | |
| /*** | |
| * Force MediaScanner to update its media database for recently added files. | |
| * @param context the calling context. | |
| * @param filePathForScan File path which will request the media scanner to rescan and add it | |
| * to the media database. | |
| */ | |
| public static void forceUpdateMediaScanner(Context context, String filePathForScan) { | |
| if (context != null) { | |
| new SingleMediaScanner(context, new File(filePathForScan)); |
| { | |
| "parser": "babel-eslint", | |
| "plugins": [ | |
| "react", | |
| "react-native" | |
| ], | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "jsx": true, | |
| "modules": true |
| package com.app.example.util; | |
| import android.os.Bundle; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentActivity; | |
| import android.support.v4.app.FragmentManager; | |
| import android.support.v4.app.FragmentTransaction; | |
| import android.support.v7.app.AppCompatActivity; | |
| import com.app.advanceautoparts.R; |
| package com.app.example.location; | |
| import android.app.IntentService; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.os.AsyncTask; | |
| import com.app.example.interfaces.FusedLocationResultCallback; | |
| import com.app.example.model.location.LocationModel; |