mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	remove beta build
This commit is contained in:
		| @@ -26,13 +26,6 @@ android { | ||||
|             debuggable true | ||||
|             applicationIdSuffix ".debug" | ||||
|         } | ||||
|         beta { | ||||
|             minifyEnabled true | ||||
|             shrinkResources true | ||||
|             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||||
|  | ||||
|             applicationIdSuffix ".beta" | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     lintOptions { | ||||
| @@ -98,7 +91,6 @@ dependencies { | ||||
|     annotationProcessor "frankiesardo:icepick-processor:$icepickLibVersion" | ||||
|  | ||||
|     debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryLibVersion" | ||||
|     betaImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryLibVersion" | ||||
|     releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryLibVersion" | ||||
|  | ||||
|     implementation 'com.squareup.okhttp3:okhttp:3.9.1' | ||||
|   | ||||
| @@ -1,10 +0,0 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools"> | ||||
|  | ||||
|     <application | ||||
|         android:label="NewPipe Beta" | ||||
|         tools:replace="android:label"> | ||||
|     </application> | ||||
|  | ||||
| </manifest> | ||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 5.8 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 3.0 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 8.1 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 13 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 19 KiB | 
| @@ -97,7 +97,6 @@ public class MainActivity extends AppCompatActivity { | ||||
|         //drawerItems.setItemIconTintList(null); // Set null to use the original icon | ||||
|         drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this)).setChecked(true); | ||||
|  | ||||
|         if (!BuildConfig.BUILD_TYPE.equals("release")) { | ||||
|         toggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.drawer_open, R.string.drawer_close); | ||||
|         toggle.syncState(); | ||||
|         drawer.addDrawerListener(toggle); | ||||
| @@ -121,11 +120,9 @@ public class MainActivity extends AppCompatActivity { | ||||
|  | ||||
|         setupDrawerFooter(); | ||||
|         setupDrawerHeader(); | ||||
|         } else { | ||||
|             drawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|  | ||||
|     private boolean changeService(MenuItem item) { | ||||
|         if (item.getGroupId() == R.id.menu_services_group) { | ||||
|             drawerItems.getMenu().getItem(ServiceHelper.getSelectedServiceId(this)).setChecked(false); | ||||
| @@ -176,11 +173,9 @@ public class MainActivity extends AppCompatActivity { | ||||
|         // when the user returns to MainActivity | ||||
|         drawer.closeDrawer(Gravity.START, false); | ||||
|         try { | ||||
|             if(BuildConfig.BUILD_TYPE != "release" ) { | ||||
|             String selectedServiceName = NewPipe.getService( | ||||
|                     ServiceHelper.getSelectedServiceId(this)).getServiceInfo().getName(); | ||||
|             headerServiceView.setText(selectedServiceName); | ||||
|             } | ||||
|         } catch (Exception e) { | ||||
|             ErrorActivity.reportUiError(this, e); | ||||
|         } | ||||
|   | ||||
| @@ -65,7 +65,6 @@ public class ServiceHelper { | ||||
|     } | ||||
|  | ||||
|     public static int getSelectedServiceId(Context context) { | ||||
|         if (BuildConfig.BUILD_TYPE.equals("release")) return DEFAULT_FALLBACK_SERVICE.getServiceId(); | ||||
|  | ||||
|         final String serviceName = PreferenceManager.getDefaultSharedPreferences(context) | ||||
|                 .getString(context.getString(R.string.current_service_key), context.getString(R.string.default_service_value)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christian Schabesberger
					Christian Schabesberger