From 955d3780d2dfa6949a54763905ec05ab59995684 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 15 Jun 2021 11:45:06 +0200 Subject: [PATCH] separate ut clients --- .gitignore | 11 --- app/app/build.gradle | 31 -------- app/app/proguard-rules.pro | 21 ------ app/app/src/main/AndroidManifest.xml | 19 ----- app/app/src/main/ic_launcher-playstore.png | Bin 12235 -> 0 bytes .../java/it/purser/stream/ShareActivity.java | 69 ------------------ app/app/src/main/res/drawable/ic_launcher.xml | 15 ---- app/app/src/main/res/values-night/themes.xml | 4 - app/app/src/main/res/values/colors.xml | 10 --- app/app/src/main/res/values/strings.xml | 3 - app/app/src/main/res/values/themes.xml | 4 - .../it/purser/stream/ExampleUnitTest.java | 17 ----- app/build.gradle | 24 ------ app/local.properties | 10 --- app/settings.gradle | 2 - chrome-icons.sh | 9 --- chrome/manifest.json | 17 ----- chrome/popup.html | 9 --- chrome/script.js | 33 --------- 19 files changed, 308 deletions(-) delete mode 100644 app/app/build.gradle delete mode 100644 app/app/proguard-rules.pro delete mode 100644 app/app/src/main/AndroidManifest.xml delete mode 100644 app/app/src/main/ic_launcher-playstore.png delete mode 100644 app/app/src/main/java/it/purser/stream/ShareActivity.java delete mode 100644 app/app/src/main/res/drawable/ic_launcher.xml delete mode 100644 app/app/src/main/res/values-night/themes.xml delete mode 100644 app/app/src/main/res/values/colors.xml delete mode 100644 app/app/src/main/res/values/strings.xml delete mode 100644 app/app/src/main/res/values/themes.xml delete mode 100644 app/app/src/test/java/it/purser/stream/ExampleUnitTest.java delete mode 100644 app/build.gradle delete mode 100644 app/local.properties delete mode 100644 app/settings.gradle delete mode 100755 chrome-icons.sh delete mode 100644 chrome/manifest.json delete mode 100644 chrome/popup.html delete mode 100644 chrome/script.js diff --git a/.gitignore b/.gitignore index d633be4..5c896ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,2 @@ *.pyc -app/gradle/wrapper/* -app/gradlew -app/gradlew.bat -app/gradle.properties -app/build/* -app/app/build/* -app/app/release/* -app/.idea/* -app/.gradle/* -app/gradle/* -chrome/*.png sources.json diff --git a/app/app/build.gradle b/app/app/build.gradle deleted file mode 100644 index 3e1564b..0000000 --- a/app/app/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -plugins { - id 'com.android.application' -} - -android { - compileSdkVersion 29 - buildToolsVersion "30.0.3" - - defaultConfig { - applicationId "it.purser.stream" - minSdkVersion 25 - targetSdkVersion 29 - versionCode 109 - versionName "109.0" - } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } -} - -dependencies { - testImplementation 'junit:junit:4.+' -} diff --git a/app/app/proguard-rules.pro b/app/app/proguard-rules.pro deleted file mode 100644 index 481bb43..0000000 --- a/app/app/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/app/app/src/main/AndroidManifest.xml b/app/app/src/main/AndroidManifest.xml deleted file mode 100644 index d43e9db..0000000 --- a/app/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/app/app/src/main/ic_launcher-playstore.png b/app/app/src/main/ic_launcher-playstore.png deleted file mode 100644 index a61a702341039aa04830bdd2bf3a10f7a6444e93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV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zQqqq9)GQ&aLfo8!`J_z|BwHVfeESJI+slsmSf<7 z`r&l2dVSU8bZ{=i_2c&ryn)+IK2VNk6M92Q+f-4ClRhlgKZ()fk<-5?uC4(XOP;Sg zwx$ZUk{afB;E<+U&hL9w5un~drS}+`e?7kKYQ|(%u-IZv-N6D6+F`2XwZpmG9+zW0R&Uu{ccdhn z4~)Wa4}J<_VZ+hDz6ITM`lUex2ziWb=Gomh_j%mk)uK{*;KQa0;4%Rn53ce-E1X6f%s#E}73m)Qo0>D*B$hO|ZVe%;`;!=-V6R+v)DI9Wpm;$i!8e7MnXa}+`Zd*eVHN2+(-`hk!NHMmEDODS zRPT51y#~rvo0fr0ILk7lYz8zM4C)yloQv*a=g75$%0daaHVW$)pdi0r!ofOLxQxuZ zXI8SuHdP=`s*op8pNLV5>M zM#zelBjv&Y#N&kIp}Ie_&}~|$&=uI3$T41%>z4C4k}A}7?pmskWz(X@h!V!SBMZy6 z03bbKQ64)TCQrD>hYSmD(kR-lvO0f!+rCgZnBnM2pGGL)4wb;A%31oDA5@y&Ah0ovsGDI(`0IJwRCtNcU`wZ84=Ckpj*$t|_ zO^`YqbfV6WunS@Sb%S7Xr83}d2Hg0DK>Hv54hf?C9_V*t4~eBp!y-T5`1k`V!u5>L s;{b;iWZ7xV domains = new TreeMap<>(); - domains.put("youtu.be", "youtube"); - domains.put("youtube.com", "youtube"); - domains.put("www.youtube.com", "youtube"); - domains.put("tv.nrk.no", "nrk"); - domains.put("nx12210.your-storageshare.de", "nextcloud"); - - Intent intent = getIntent(); - Bundle bundle = intent.getExtras(); - for(String key: bundle.keySet()) { - try { - String txt = (String) bundle.get(key); - Uri uri = Uri.parse(txt); - String host = uri.getHost().toLowerCase(Locale.ROOT); - if(domains.containsKey(host)) { - if(host.contains("youtube.com")) { - Uri.Builder builder = new Uri.Builder(); - builder.authority(host); - builder.scheme("https"); - String path = uri.getQueryParameter("v"); - if(path != null) { - builder.path(path); - return new Upstream(builder.build(), domains.get(host)); - } - } - return new Upstream(uri, domains.get(host)); - } - } catch(Exception e) {} - } - return null; - } - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - Upstream upstream = getSharedLink(); - if(upstream != null) { - Uri.Builder builder = new Uri.Builder(); - builder.authority("stream.purser.it"); - builder.scheme("https"); - builder.path(upstream.uri.getPath()); - builder.appendQueryParameter("provider", upstream.provider); - Intent launch = new Intent(Intent.ACTION_VIEW, builder.build()); - launch.setPackage("com.android.chrome"); - launch.putExtra("android.support.customtabs.extra.SESSION", "Proxy Stream"); - launch.putExtra("android.support.customtabs.extra.TOOLBAR_COLOR", 0xff0000); - startActivity(launch); - } - finish(); - } -} diff --git a/app/app/src/main/res/drawable/ic_launcher.xml b/app/app/src/main/res/drawable/ic_launcher.xml deleted file mode 100644 index cb8b054..0000000 --- a/app/app/src/main/res/drawable/ic_launcher.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - diff --git a/app/app/src/main/res/values-night/themes.xml b/app/app/src/main/res/values-night/themes.xml deleted file mode 100644 index 3d57a7d..0000000 --- a/app/app/src/main/res/values-night/themes.xml +++ /dev/null @@ -1,4 +0,0 @@ - - -