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:
agnostic-apollo
2021-10-26 07:04:08 +05:00
parent 549a772d45
commit 361bfb3961
47 changed files with 105 additions and 174 deletions

View File

@@ -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";
}

View File

@@ -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 {

View File

@@ -1,4 +1,4 @@
package com.termux.shared.net;
package com.termux.shared.net.url;
import androidx.annotation.Nullable;