mirror of
https://github.com/schwabe/ics-openvpn.git
synced 2024-09-19 19:42:29 +02:00
Update tlsextprovider example with modern API target
This commit is contained in:
parent
a674474bea
commit
98bfed6bf5
@ -10,13 +10,13 @@ ext {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
compileSdkVersion 34
|
||||
|
||||
|
||||
defaultConfig {
|
||||
applicationId "de.blinkt.externalcertprovider"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 27
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 34
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
|
||||
|
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2018 Arne Schwabe
|
||||
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
|
||||
*/
|
||||
|
||||
package de.blinkt.externalcertprovider;
|
||||
|
||||
import android.content.Context;
|
||||
import android.support.test.InstrumentationRegistry;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getTargetContext();
|
||||
|
||||
assertEquals("de.blinkt.externalcertprovider", appContext.getPackageName());
|
||||
}
|
||||
}
|
@ -32,8 +32,7 @@
|
||||
</activity>
|
||||
|
||||
|
||||
<service android:name=".ExternalCertService"
|
||||
tools:ignore="ExportedService">
|
||||
<service android:name=".ExternalCertService" android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="de.blinkt.openvpn.api.ExternalCertificateProvider"/>
|
||||
</intent-filter>
|
||||
|
Loading…
Reference in New Issue
Block a user