コード例 #1
0
 private void Init()
 {
     if (FullFileName != null)
     {
         Ext = FullFileName.Substring(FullFileName.LastIndexOf('.'));
     }
 }
コード例 #2
0
 public AndroidLibInfo(string fullPath)
 {
     FullPath     = fullPath;
     FullFileName = Path.GetFileName(fullPath);
     // TODO: find a better way to extract base file name
     // Mapbox telemetry lib uses different naming that other android libs
     // <name>-<major>.<minor>.<patch> vs. <name>-<major>-<minor>-<patch>
     // okio-1.13.0, support-v4-25.1.0 vs. mapbox-android-telemetry-2-1-0
     BaseFileName = FullFileName.Substring(0, FullFileName.LastIndexOf("-"));
     AssetPath    = fullPath.Replace(Application.dataPath.Replace("Assets", ""), "");
 }