+
+
+
\ No newline at end of file
diff --git a/MiMall/.idea/misc.xml b/MiMall/.idea/misc.xml
new file mode 100644
index 0000000..37a7509
--- /dev/null
+++ b/MiMall/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/.idea/runConfigurations.xml b/MiMall/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/MiMall/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/.idea/vcs.xml b/MiMall/.idea/vcs.xml
new file mode 100644
index 0000000..6c0b863
--- /dev/null
+++ b/MiMall/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/.gitignore b/MiMall/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/MiMall/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/MiMall/app/build.gradle b/MiMall/app/build.gradle
new file mode 100644
index 0000000..f070f6a
--- /dev/null
+++ b/MiMall/app/build.gradle
@@ -0,0 +1,49 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 30
+ buildToolsVersion "30.0.1"
+
+ defaultConfig {
+ applicationId "ca.mappedin.mimall"
+ minSdkVersion 16
+ targetSdkVersion 30
+ versionCode 1
+ versionName "1.0"
+
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: "libs", include: ["*.jar"])
+ implementation 'androidx.appcompat:appcompat:1.2.0'
+ implementation 'com.google.android.material:material:1.2.1'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
+ implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
+ implementation 'androidx.navigation:navigation-fragment:2.3.1'
+ implementation 'androidx.navigation:navigation-ui:2.3.1'
+ implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
+ implementation 'androidx.recyclerview:recyclerview:1.1.0'
+
+ implementation 'com.github.bumptech.glide:glide:4.11.0'
+ // Skip this if you don't want to use integration libraries or configure Glide.
+ annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
+
+ implementation "androidx.cardview:cardview:1.0.0"
+
+ implementation 'com.mappedin.sdk:mappedin:2.0.0'
+
+ //tests related dependencies
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'androidx.test.ext:junit:1.1.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
+
+}
\ No newline at end of file
diff --git a/MiMall/app/proguard-rules.pro b/MiMall/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/MiMall/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/MiMall/app/src/androidTest/java/ca/mappedin/mimall/ExampleInstrumentedTest.java b/MiMall/app/src/androidTest/java/ca/mappedin/mimall/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..f3879ef
--- /dev/null
+++ b/MiMall/app/src/androidTest/java/ca/mappedin/mimall/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package ca.mappedin.mimall;
+
+import android.content.Context;
+
+import androidx.test.ext.junit.runners.AndroidJUnit4;
+import androidx.test.platform.app.InstrumentationRegistry;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
+ assertEquals("ca.mappedin.mimall", appContext.getPackageName());
+ }
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/AndroidManifest.xml b/MiMall/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..c6cb81b
--- /dev/null
+++ b/MiMall/app/src/main/AndroidManifest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/MainActivity.java b/MiMall/app/src/main/java/ca/mappedin/mimall/MainActivity.java
new file mode 100644
index 0000000..bdd99fa
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/MainActivity.java
@@ -0,0 +1,36 @@
+package ca.mappedin.mimall;
+
+import android.os.Bundle;
+
+import androidx.appcompat.app.AppCompatActivity;
+import androidx.navigation.NavController;
+import androidx.navigation.Navigation;
+import androidx.navigation.ui.AppBarConfiguration;
+import androidx.navigation.ui.NavigationUI;
+
+import com.google.android.material.bottomnavigation.BottomNavigationView;
+import com.mappedin.Mappedin;
+
+//TODO Add license, author, copyright
+public class MainActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ //Initialize the Mappedin singleton with the application and credentials
+ Mappedin.init(getApplication()); //Mapbox token is optional
+
+ setContentView(R.layout.activity_main);
+ BottomNavigationView navView = findViewById(R.id.nav_view);
+ // Passing each menu ID as a set of Ids because each
+ // menu should be considered as top level destinations.
+ AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder(
+ R.id.navigation_home, R.id.navigation_map, R.id.navigation_browse)
+ .build();
+ NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
+ NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
+ NavigationUI.setupWithNavController(navView, navController);
+ }
+
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/shared/Repository.java b/MiMall/app/src/main/java/ca/mappedin/mimall/shared/Repository.java
new file mode 100644
index 0000000..fe4f6b1
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/shared/Repository.java
@@ -0,0 +1,61 @@
+package ca.mappedin.mimall.shared;
+
+import android.util.Log;
+
+import com.mappedin.models.MiLocation;
+import com.mappedin.models.MiSpace;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Repository {
+
+ private List locations = new ArrayList();
+
+ private static Repository instance = null;
+
+ private Repository() {
+ }
+
+
+ public static Repository getInstance() {
+ if (instance == null) {
+ instance = new Repository();
+ }
+
+ return instance;
+ }
+
+ public List getLocations() {
+ return locations;
+ }
+
+ public MiSpace searchLocations(String keyword) {
+ for (MiLocation location :
+ locations) {
+ if (location.getName().equals(keyword)) {
+ return location.getSpaces().get(0);
+ }
+ }
+ return null;
+ }
+
+ public String[] getLocationsArray() {
+ ArrayList locations = new ArrayList();
+ for (MiLocation location :
+ this.locations) {
+ locations.add(location.getName());
+
+ for (MiSpace space :
+ location.getSpaces()) {
+ Log.d("LOG", "" + space.getExternalId());
+ }
+ }
+ String[] searchResults = new String[locations.size()];
+ return locations.toArray(searchResults);
+ }
+
+ public void setLocations(List locations) {
+ this.locations = locations;
+ }
+}
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/BrowseFragment.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/BrowseFragment.java
new file mode 100644
index 0000000..d05ff45
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/BrowseFragment.java
@@ -0,0 +1,45 @@
+package ca.mappedin.mimall.ui.browse;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import ca.mappedin.mimall.R;
+import ca.mappedin.mimall.shared.Repository;
+
+public class BrowseFragment extends Fragment {
+
+ private RecyclerView recyclerView;
+ private RecyclerView.Adapter mAdapter;
+ private RecyclerView.LayoutManager layoutManager;
+
+
+ public View onCreateView(@NonNull LayoutInflater inflater,
+ ViewGroup container, Bundle savedInstanceState) {
+
+ View root = inflater.inflate(R.layout.fragment_browse, container, false);
+
+ recyclerView = root.findViewById(R.id.locationList);
+
+ // use this setting to improve performance if you know that changes
+ // in content do not change the layout size of the RecyclerView
+ recyclerView.setHasFixedSize(true);
+
+ // use a linear layout manager
+ layoutManager = new LinearLayoutManager(this.getContext());
+ recyclerView.setLayoutManager(layoutManager);
+
+ // specify an adapter (see also next example)
+ mAdapter = new LocationListAdapter(Repository.getInstance().getLocations(), this.getContext());
+// mAdapter = new LocationListAdapter(Repository.getInstance().getLocations(), this.getContext());
+ recyclerView.setAdapter(mAdapter);
+
+ return root;
+ }
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/BrowseViewModel.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/BrowseViewModel.java
new file mode 100644
index 0000000..13cc1d9
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/BrowseViewModel.java
@@ -0,0 +1,22 @@
+package ca.mappedin.mimall.ui.browse;
+
+import androidx.lifecycle.LiveData;
+import androidx.lifecycle.MutableLiveData;
+import androidx.lifecycle.ViewModel;
+
+public class BrowseViewModel extends ViewModel {
+
+ private MutableLiveData mText = new MutableLiveData<>();
+
+ public BrowseViewModel() {
+// mText.setValue("This is Browse fragment");
+ }
+
+ public void setText(String text) {
+ mText.setValue(text);
+ }
+
+ public LiveData getText() {
+ return mText;
+ }
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/LocationListAdapter.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/LocationListAdapter.java
new file mode 100644
index 0000000..9bf997a
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/browse/LocationListAdapter.java
@@ -0,0 +1,76 @@
+package ca.mappedin.mimall.ui.browse;
+
+import android.content.Context;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.bumptech.glide.Glide;
+import com.mappedin.models.MiLocation;
+
+import java.util.List;
+
+import ca.mappedin.mimall.R;
+
+public class LocationListAdapter extends RecyclerView.Adapter {
+ private List dataset;
+ private Context context;
+
+ // Provide a reference to the views for each data item
+ // Complex data items may need more than one view per item, and
+ // you provide access to all the views for a data item in a view holder
+ public static class LocationViewHolder extends RecyclerView.ViewHolder {
+ // each data item is just a string in this case
+ public TextView locationName;
+ public ImageView locationLogo;
+
+ public LocationViewHolder(View v) {
+ super(v);
+ locationName = v.findViewById(R.id.locationName);
+ locationLogo = v.findViewById(R.id.locationLogo);
+ }
+ }
+
+ // Provide a suitable constructor (depends on the kind of dataset)
+ public LocationListAdapter(List dataset, Context context) {
+ this.dataset = dataset;
+ this.context = context;
+ }
+
+ // Create new views (invoked by the layout manager)
+ @Override
+ public LocationListAdapter.LocationViewHolder onCreateViewHolder(ViewGroup parent,
+ int viewType) {
+ // create a new view
+ View v = LayoutInflater.from(parent.getContext())
+ .inflate(R.layout.layout_browse_list_item, parent, false);
+ LocationViewHolder vh = new LocationViewHolder(v);
+ return vh;
+ }
+
+ // Replace the contents of a view (invoked by the layout manager)
+ @Override
+ public void onBindViewHolder(LocationViewHolder holder, int position) {
+ // - get element from your dataset at this position
+ // - replace the contents of the view with that element
+ holder.locationName.setText(this.dataset.get(position).getName());
+ if (this.dataset.get(position).getLogo() != null) {
+ Glide.with(context)
+ .load(this.dataset.get(position).getLogo().getSmall())
+ .placeholder(R.drawable.placeholder)
+ .error(R.drawable.img_load_fail)
+ .into(holder.locationLogo);
+ }
+ }
+
+ // Return the size of your dataset (invoked by the layout manager)
+ @Override
+ public int getItemCount() {
+ return this.dataset.size();
+ }
+
+}
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeFragment.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeFragment.java
new file mode 100644
index 0000000..5fe7e5e
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeFragment.java
@@ -0,0 +1,44 @@
+package ca.mappedin.mimall.ui.home;
+
+import android.os.Bundle;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+
+import ca.mappedin.mimall.R;
+
+public class HomeFragment extends Fragment {
+
+ private RecyclerView recyclerView;
+ private RecyclerView.Adapter mAdapter;
+ private RecyclerView.LayoutManager layoutManager;
+
+ public View onCreateView(@NonNull LayoutInflater inflater,
+ ViewGroup container, Bundle savedInstanceState) {
+ View root = inflater.inflate(R.layout.fragment_home, container, false);
+
+ recyclerView = root.findViewById(R.id.homeList);
+
+ // use this setting to improve performance if you know that changes
+ // in content do not change the layout size of the RecyclerView
+ recyclerView.setHasFixedSize(true);
+
+ // use a linear layout manager
+ layoutManager = new LinearLayoutManager(this.getContext());
+ recyclerView.setLayoutManager(layoutManager);
+
+ mAdapter = new HomeListAdapter(getResources().getStringArray(R.array.titles),
+ getResources().getStringArray(R.array.subtitles),
+ getResources().getStringArray(R.array.imgurls),
+ this.getContext());
+
+ recyclerView.setAdapter(mAdapter);
+
+ return root;
+ }
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeListAdapter.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeListAdapter.java
new file mode 100644
index 0000000..c307b1e
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeListAdapter.java
@@ -0,0 +1,78 @@
+package ca.mappedin.mimall.ui.home;
+
+import android.content.Context;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import androidx.recyclerview.widget.RecyclerView;
+
+import com.bumptech.glide.Glide;
+
+import ca.mappedin.mimall.R;
+
+public class HomeListAdapter extends RecyclerView.Adapter {
+ // private List dataset;
+ private String[] title, subtitle, imgurls;
+ Context context;
+
+ // Provide a reference to the views for each data item
+ // Complex data items may need more than one view per item, and
+ // you provide access to all the views for a data item in a view holder
+ public static class LocationViewHolder extends RecyclerView.ViewHolder {
+ // each data item is just a string in this case
+ public TextView titleView;
+ public TextView subtitleView;
+ public ImageView imageView;
+
+ public LocationViewHolder(View v) {
+ super(v);
+ titleView = v.findViewById(R.id.titleView);
+ subtitleView = v.findViewById(R.id.subtitleView);
+ imageView = v.findViewById(R.id.imageView);
+ }
+ }
+
+ // Provide a suitable constructor (depends on the kind of dataset)
+ public HomeListAdapter(String[] title, String[] subtitle, String[] imgurls, Context context) {
+// this.dataset = dataset;
+ this.title = title;
+ this.subtitle = subtitle;
+ this.imgurls = imgurls;
+ this.context = context;
+ }
+
+ // Create new views (invoked by the layout manager)
+ @Override
+ public HomeListAdapter.LocationViewHolder onCreateViewHolder(ViewGroup parent,
+ int viewType) {
+ // create a new view
+ View v = LayoutInflater.from(parent.getContext())
+ .inflate(R.layout.layout_home_list_item, parent, false);
+ LocationViewHolder vh = new LocationViewHolder(v);
+ return vh;
+ }
+
+ // Replace the contents of a view (invoked by the layout manager)
+ @Override
+ public void onBindViewHolder(LocationViewHolder holder, int position) {
+ // - get element from your dataset at this position
+ // - replace the contents of the view with that element
+ holder.titleView.setText(this.title[position]);
+ holder.subtitleView.setText(this.subtitle[position]);
+ Glide.with(context)
+ .load(imgurls[position])
+ .placeholder(R.drawable.placeholder)
+ .error(R.drawable.img_load_fail)
+ .into(holder.imageView);
+ }
+
+ // Return the size of your dataset (invoked by the layout manager)
+ @Override
+ public int getItemCount() {
+ return this.title.length;
+ }
+
+}
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeViewModel.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeViewModel.java
new file mode 100644
index 0000000..0f709eb
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/home/HomeViewModel.java
@@ -0,0 +1,19 @@
+package ca.mappedin.mimall.ui.home;
+
+import androidx.lifecycle.LiveData;
+import androidx.lifecycle.MutableLiveData;
+import androidx.lifecycle.ViewModel;
+
+public class HomeViewModel extends ViewModel {
+
+ private MutableLiveData mText;
+
+ public HomeViewModel() {
+ mText = new MutableLiveData<>();
+ mText.setValue("This is home fragment");
+ }
+
+ public LiveData getText() {
+ return mText;
+ }
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/map/MapFragment.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/map/MapFragment.java
new file mode 100644
index 0000000..8f7c0e3
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/map/MapFragment.java
@@ -0,0 +1,134 @@
+package ca.mappedin.mimall.ui.map;
+
+import android.os.Bundle;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ArrayAdapter;
+import android.widget.AutoCompleteTextView;
+import android.widget.ImageView;
+import android.widget.ProgressBar;
+import android.widget.TextView;
+
+import androidx.annotation.NonNull;
+import androidx.fragment.app.Fragment;
+
+import com.mapbox.mapboxsdk.geometry.LatLng;
+import com.mappedin.Mappedin;
+import com.mappedin.MiGestureType;
+import com.mappedin.MiMapView;
+import com.mappedin.MiMapViewListener;
+import com.mappedin.enums.MiMapStatus;
+import com.mappedin.interfaces.MiMapViewCallback;
+import com.mappedin.interfaces.VenueCallback;
+import com.mappedin.models.MiLevel;
+import com.mappedin.models.MiOverlay;
+import com.mappedin.models.MiSpace;
+import com.mappedin.models.MiVenue;
+
+import org.jetbrains.annotations.NotNull;
+
+import ca.mappedin.mimall.R;
+import ca.mappedin.mimall.shared.Repository;
+
+public class MapFragment extends Fragment {
+
+ private ImageView locationLogo;
+ private TextView locationName;
+ private TextView locationLevel;
+
+ public View onCreateView(@NonNull LayoutInflater inflater,
+ ViewGroup container, Bundle savedInstanceState) {
+
+ View root = inflater.inflate(R.layout.fragment_map, container, false);
+
+ locationLogo = root.findViewById(R.id.locationLogo);
+ locationName = root.findViewById(R.id.locationName);
+ locationLevel = root.findViewById(R.id.locationLevel);
+
+ final ProgressBar progressBar = root.findViewById(R.id.loadingProgressBar);
+ progressBar.setVisibility(View.VISIBLE);
+
+ final MiMapView mapView = root.findViewById(R.id.mapView);
+ final AutoCompleteTextView searchBar = root.findViewById(R.id.searchBar);
+
+ ImageView searchButton = root.findViewById(R.id.searchButton);
+ searchButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ String searchKeyword = searchBar.getText().toString().trim();
+ if (searchKeyword.length() > 0) {
+ mapView.focusOn(Repository.getInstance().searchLocations(searchKeyword), 300);
+// locationName.setText();
+ }
+ }
+ });
+
+ Mappedin.getVenue("mappedin-demo-mall", new VenueCallback() {
+ @Override
+ public void onVenueLoaded(final MiVenue miVenue) {
+ mapView.loadMap(miVenue, new MiMapViewCallback() {
+ @Override
+ public void onMapLoaded(MiMapStatus miMapStatus) {
+ if (miMapStatus == MiMapStatus.LOADED) {
+ progressBar.setVisibility(View.GONE);
+
+ Log.i("MiMapView", "Map has loaded. Levels: " + miVenue.getLevels().size());
+
+ mapView.displayLocationLabels();
+// mapView.setLabelProperties(PropertyFactory.textColor(Color.RED));
+ Repository.getInstance().setLocations(miVenue.getLocations());
+
+ ArrayAdapter searchAdapter = new ArrayAdapter(MapFragment.this.getContext(),
+ android.R.layout.simple_dropdown_item_1line, Repository.getInstance().getLocationsArray());
+ searchBar.setAdapter(searchAdapter);
+
+ } else {
+ Log.e("MiMapView", "Map failed to load");
+ }
+ }
+ });
+ }
+ });
+
+ //Set an MiMapViewListener to run custom code on certain map events
+ mapView.setListener(new MiMapViewListener() {
+ @Override
+ public void onTapNothing() {
+ //Called when a point on the map is tapped that isn't a MiSpace or MiOverlay
+ }
+
+ @Override
+ public boolean didTapSpace(MiSpace miSpace) {
+ //Called when an MiSpace is tapped, return false to be called again if multiple MiSpaces were tapped
+ Log.d("LOG", miSpace.getLocations().get(0).getName());
+ return false;
+ }
+
+ @Override
+ public void onTapCoordinates(@NotNull LatLng latLng) {
+ //Called when any point is tapped on the map with the LatLng coordinates
+ }
+
+ @Override
+ public boolean didTapOverlay(@NotNull MiOverlay miOverlay) {
+ //Called when an MiOverlay is tapped, return false to be called again if multiple MiOverlays were tapped
+ return false;
+ }
+
+ @Override
+ public void onLevelChange(@NotNull MiLevel miLevel) {
+ //Called when the level changes
+ }
+
+ @Override
+ public void onManipulateCamera(@NotNull MiGestureType miGestureType) {
+ //Called when the user pinches or pans the map
+ }
+ });
+
+
+ return root;
+ }
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/java/ca/mappedin/mimall/ui/map/MapViewModel.java b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/map/MapViewModel.java
new file mode 100644
index 0000000..121b557
--- /dev/null
+++ b/MiMall/app/src/main/java/ca/mappedin/mimall/ui/map/MapViewModel.java
@@ -0,0 +1,19 @@
+package ca.mappedin.mimall.ui.map;
+
+import androidx.lifecycle.LiveData;
+import androidx.lifecycle.MutableLiveData;
+import androidx.lifecycle.ViewModel;
+
+public class MapViewModel extends ViewModel {
+
+ private MutableLiveData mText;
+
+ public MapViewModel() {
+ mText = new MutableLiveData<>();
+ mText.setValue("This is Map fragment");
+ }
+
+ public LiveData getText() {
+ return mText;
+ }
+}
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/MiMall/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/MiMall/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/drawable/ic_dashboard_black_24dp.xml b/MiMall/app/src/main/res/drawable/ic_dashboard_black_24dp.xml
new file mode 100644
index 0000000..46fc8de
--- /dev/null
+++ b/MiMall/app/src/main/res/drawable/ic_dashboard_black_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/MiMall/app/src/main/res/drawable/ic_home_black_24dp.xml b/MiMall/app/src/main/res/drawable/ic_home_black_24dp.xml
new file mode 100644
index 0000000..f8bb0b5
--- /dev/null
+++ b/MiMall/app/src/main/res/drawable/ic_home_black_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/MiMall/app/src/main/res/drawable/ic_launcher_background.xml b/MiMall/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/MiMall/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MiMall/app/src/main/res/drawable/ic_notifications_black_24dp.xml b/MiMall/app/src/main/res/drawable/ic_notifications_black_24dp.xml
new file mode 100644
index 0000000..78b75c3
--- /dev/null
+++ b/MiMall/app/src/main/res/drawable/ic_notifications_black_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/MiMall/app/src/main/res/drawable/img_load_fail.png b/MiMall/app/src/main/res/drawable/img_load_fail.png
new file mode 100644
index 0000000..2aba7fd
Binary files /dev/null and b/MiMall/app/src/main/res/drawable/img_load_fail.png differ
diff --git a/MiMall/app/src/main/res/drawable/placeholder.png b/MiMall/app/src/main/res/drawable/placeholder.png
new file mode 100644
index 0000000..839a138
Binary files /dev/null and b/MiMall/app/src/main/res/drawable/placeholder.png differ
diff --git a/MiMall/app/src/main/res/layout/activity_main.xml b/MiMall/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..455a6d8
--- /dev/null
+++ b/MiMall/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/layout/fragment_browse.xml b/MiMall/app/src/main/res/layout/fragment_browse.xml
new file mode 100644
index 0000000..d6cd1fb
--- /dev/null
+++ b/MiMall/app/src/main/res/layout/fragment_browse.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/layout/fragment_home.xml b/MiMall/app/src/main/res/layout/fragment_home.xml
new file mode 100644
index 0000000..a779b0d
--- /dev/null
+++ b/MiMall/app/src/main/res/layout/fragment_home.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/layout/fragment_map.xml b/MiMall/app/src/main/res/layout/fragment_map.xml
new file mode 100644
index 0000000..512183d
--- /dev/null
+++ b/MiMall/app/src/main/res/layout/fragment_map.xml
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/layout/layout_browse_list_item.xml b/MiMall/app/src/main/res/layout/layout_browse_list_item.xml
new file mode 100644
index 0000000..2c13921
--- /dev/null
+++ b/MiMall/app/src/main/res/layout/layout_browse_list_item.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/layout/layout_home_list_item.xml b/MiMall/app/src/main/res/layout/layout_home_list_item.xml
new file mode 100644
index 0000000..a382564
--- /dev/null
+++ b/MiMall/app/src/main/res/layout/layout_home_list_item.xml
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/menu/bottom_nav_menu.xml b/MiMall/app/src/main/res/menu/bottom_nav_menu.xml
new file mode 100644
index 0000000..fdeb0ee
--- /dev/null
+++ b/MiMall/app/src/main/res/menu/bottom_nav_menu.xml
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/MiMall/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/MiMall/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/MiMall/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/MiMall/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/mipmap-hdpi/ic_launcher.png b/MiMall/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..a571e60
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/MiMall/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/MiMall/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..61da551
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/MiMall/app/src/main/res/mipmap-mdpi/ic_launcher.png b/MiMall/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c41dd28
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/MiMall/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/MiMall/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..db5080a
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/MiMall/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/MiMall/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..6dba46d
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/MiMall/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/MiMall/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..da31a87
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/MiMall/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/MiMall/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..15ac681
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/MiMall/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/MiMall/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..b216f2d
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/MiMall/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/MiMall/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..f25a419
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/MiMall/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/MiMall/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..e96783c
Binary files /dev/null and b/MiMall/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/MiMall/app/src/main/res/navigation/mobile_navigation.xml b/MiMall/app/src/main/res/navigation/mobile_navigation.xml
new file mode 100644
index 0000000..4928a1a
--- /dev/null
+++ b/MiMall/app/src/main/res/navigation/mobile_navigation.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/values/colors.xml b/MiMall/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..4faecfa
--- /dev/null
+++ b/MiMall/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #6200EE
+ #3700B3
+ #03DAC5
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/values/dimens.xml b/MiMall/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..e00c2dd
--- /dev/null
+++ b/MiMall/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/values/strings.xml b/MiMall/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..9b9c810
--- /dev/null
+++ b/MiMall/app/src/main/res/values/strings.xml
@@ -0,0 +1,45 @@
+
+ Mi Mall
+ Home
+ Map
+ Browse
+
+
+ Shopping on your mind?
+ Get some fruits
+ Time for Eggs
+ Apparels
+ Toys
+ Attractive deals
+ Eat what you like
+ Cosmetics you like
+ Great shopping deals
+ Spacious Parking
+
+
+
+ Find all your favorite stores here
+ Freshest fruits available
+ Eggs make a great breakfast
+ Shop season\'s fresh
+ Treat your kids
+ Across different products
+ Great options for all choices
+ All leading brands available
+ Season-end sales going on across various stores
+ You won\'t have to worry about parking
+
+
+
+ https://unsplash.com/photos/wQ9VuP_Njr4/download?force=true&w=640
+ https://unsplash.com/photos/9Jl9Wk9juuE/download?force=true&w=640
+ https://unsplash.com/photos/eIzzzwtkBjU/download?force=true&w=640
+ https://unsplash.com/photos/dlxLGIy-2VU/download?force=true&w=640
+ https://unsplash.com/photos/WwdrJ2eQp58/download?force=true&w=640
+ https://unsplash.com/photos/F52I5BtDuhY/download?force=true&w=640
+ https://unsplash.com/photos/Orz90t6o0e4/download?force=true&w=640
+ https://unsplash.com/photos/mfvTtNPjoPY/download?force=true&w=640
+ https://unsplash.com/photos/49mCO5ZRQDk/download?force=true&w=640
+ https://unsplash.com/photos/U-oPiCxTDwc/download?force=true&w=640
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/main/res/values/styles.xml b/MiMall/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..fac9291
--- /dev/null
+++ b/MiMall/app/src/main/res/values/styles.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/MiMall/app/src/test/java/ca/mappedin/mimall/ExampleUnitTest.java b/MiMall/app/src/test/java/ca/mappedin/mimall/ExampleUnitTest.java
new file mode 100644
index 0000000..c6b17b1
--- /dev/null
+++ b/MiMall/app/src/test/java/ca/mappedin/mimall/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package ca.mappedin.mimall;
+
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/MiMall/build.gradle b/MiMall/build.gradle
new file mode 100644
index 0000000..0f98ea1
--- /dev/null
+++ b/MiMall/build.gradle
@@ -0,0 +1,24 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+buildscript {
+ repositories {
+ google()
+ jcenter()
+ }
+ dependencies {
+ classpath "com.android.tools.build:gradle:4.0.2"
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
\ No newline at end of file
diff --git a/MiMall/gradle.properties b/MiMall/gradle.properties
new file mode 100644
index 0000000..c52ac9b
--- /dev/null
+++ b/MiMall/gradle.properties
@@ -0,0 +1,19 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app"s APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Automatically convert third-party libraries to use AndroidX
+android.enableJetifier=true
\ No newline at end of file
diff --git a/MiMall/gradle/wrapper/gradle-wrapper.jar b/MiMall/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..f6b961f
Binary files /dev/null and b/MiMall/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/MiMall/gradle/wrapper/gradle-wrapper.properties b/MiMall/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..66ecb4c
--- /dev/null
+++ b/MiMall/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Thu Oct 15 17:56:20 EDT 2020
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
diff --git a/MiMall/gradlew b/MiMall/gradlew
new file mode 100755
index 0000000..cccdd3d
--- /dev/null
+++ b/MiMall/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/MiMall/gradlew.bat b/MiMall/gradlew.bat
new file mode 100644
index 0000000..e95643d
--- /dev/null
+++ b/MiMall/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/MiMall/settings.gradle b/MiMall/settings.gradle
new file mode 100644
index 0000000..6787b10
--- /dev/null
+++ b/MiMall/settings.gradle
@@ -0,0 +1,2 @@
+include ':app'
+rootProject.name = "Mi Mall"
\ No newline at end of file
diff --git a/SDKv2 Examples/build.gradle b/SDKv2 Examples/build.gradle
index 1175e2c..82c1d89 100644
--- a/SDKv2 Examples/build.gradle
+++ b/SDKv2 Examples/build.gradle
@@ -11,7 +11,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.6.2'
+ classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
diff --git a/SDKv2 Examples/gradle/wrapper/gradle-wrapper.properties b/SDKv2 Examples/gradle/wrapper/gradle-wrapper.properties
index 13a26c6..958bf5e 100644
--- a/SDKv2 Examples/gradle/wrapper/gradle-wrapper.properties
+++ b/SDKv2 Examples/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Tue Sep 08 13:12:49 EDT 2020
+#Wed Oct 14 20:05:27 EDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip