mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-09 20:14:04 +08:00
Changed!: Move to package-by-feature hierarchy for classes not using it since termux-shared is growing too big and layers are getting out of hand
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.termux.shared.net.uri;
|
||||
|
||||
import android.net.Uri;
|
||||
|
||||
/**
|
||||
* The {@link Uri} schemes.
|
||||
*
|
||||
* https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
|
||||
* https://en.wikipedia.org/wiki/List_of_URI_schemes
|
||||
*/
|
||||
public class UriScheme {
|
||||
|
||||
/** Android app resource. */
|
||||
public static final String SCHEME_ANDROID_RESOURCE = "android.resource";
|
||||
|
||||
/** Android content provider. https://www.iana.org/assignments/uri-schemes/prov/content. */
|
||||
public static final String SCHEME_CONTENT = "content";
|
||||
|
||||
/** Filesystem or android app asset. https://www.rfc-editor.org/rfc/rfc8089.html. */
|
||||
public static final String SCHEME_FILE = "file";
|
||||
|
||||
/* Hypertext Transfer Protocol. */
|
||||
public static final String SCHEME_HTTP = "http";
|
||||
|
||||
/* Hypertext Transfer Protocol Secure. */
|
||||
public static final String SCHEME_HTTPS = "https";
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package com.termux.shared.net;
|
||||
package com.termux.shared.net.uri;
|
||||
|
||||
import android.net.Uri;
|
||||
|
||||
@@ -6,7 +6,6 @@ import androidx.annotation.NonNull;
|
||||
|
||||
import com.termux.shared.data.DataUtils;
|
||||
import com.termux.shared.file.FileUtils;
|
||||
import com.termux.shared.models.net.UriScheme;
|
||||
|
||||
public class UriUtils {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
package com.termux.shared.net;
|
||||
package com.termux.shared.net.url;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
Reference in New Issue
Block a user