summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/LibraryLoader.java
blob: d1db94f53adeb1b3ad31ef76d2d2cfcc126c9d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.mapbox.mapboxsdk;


public interface LibraryLoader {

  void load();

}




//
///**


//
//public abstract class LibraryLoader {
//
//  private static final String TAG = "Mbgl-LibraryLoader";
//
//  private static final LibraryLoader DEFAULT = new LibraryLoader() {
//    @Override
//    public void load(String name) {
//      System.loadLibrary(name);
//    }
//  };
//
//  private static volatile LibraryLoader loader = DEFAULT;
//
//  /**
//   * Set the library loader that loads the shared library.
//   *
//   * @param libraryLoader the library loader
//   */
//  public static void setLibraryLoader(LibraryLoader libraryLoader) {
//    loader = libraryLoader;
//  }
//
//  /**
//   * Loads "libmapbox-gl.so" native shared library.
//   * <p>
//   * Catches UnsatisfiedLinkErrors and prints a warning to logcat.
//   * </p>
//   */
//  public static void load() {
//    try {
//      loader.load("mapbox-gl");
//    } catch (UnsatisfiedLinkError error) {
//      String message = "Failed to load native shared library.";
//      Logger.e(TAG, message, error);
//      MapStrictMode.strictModeViolation(message, error);
//    }
//  }
//
//  public abstract void load(String name);
//}
//