mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
3cbb5e2067
* Updated DartCallbackCache to write callback cache to disk which is restored on engine startup * Ensure cache isn't moved off disk in iOS
22 lines
693 B
Java
22 lines
693 B
Java
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
package io.flutter.util;
|
|
|
|
import android.content.Context;
|
|
|
|
public final class PathUtils {
|
|
public static String getFilesDir(Context applicationContext) {
|
|
return applicationContext.getFilesDir().getPath();
|
|
}
|
|
|
|
public static String getDataDirectory(Context applicationContext) {
|
|
return applicationContext.getDir("flutter", Context.MODE_PRIVATE).getPath();
|
|
}
|
|
|
|
public static String getCacheDirectory(Context applicationContext) {
|
|
return applicationContext.getCacheDir().getPath();
|
|
}
|
|
}
|