From a688889a1e54cee8439f8a61c3162f7913530b37 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 17 May 2023 15:32:34 +0200 Subject: Allow to build a UI variant with OpenVPN 2.x only --- main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'main/src/ui/java/de/blinkt/openvpn') diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java b/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java index 182c1a56..de6c83d8 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java @@ -31,6 +31,7 @@ import androidx.fragment.app.Fragment; import com.android.vending.billing.IInAppBillingService; +import de.blinkt.openvpn.BuildConfig; import de.blinkt.openvpn.core.NativeUtils; import org.json.JSONException; import org.json.JSONObject; @@ -86,7 +87,12 @@ public class AboutFragment extends Fragment implements View.OnClickListener { TextView osslVer = v.findViewById(R.id.openssl_version); verO2.setText(String.format(Locale.US, "OpenVPN version: %s", NativeUtils.getOpenVPN2GitVersion())); - verO3.setText(String.format(Locale.US, "OpenVPN3 core version: %s", NativeUtils.getOpenVPN3GitVersion())); + if (BuildConfig.openvpn3) + verO3.setText(String.format(Locale.US, "OpenVPN3 core version: %s", NativeUtils.getOpenVPN3GitVersion())); + else + verO3.setText("(OpenVPN 2.x only build. No OpenVPN 3.x core in this app)"); + + osslVer.setText(String.format(Locale.US, "OpenSSL version: %s", NativeUtils.getOpenSSLVersion())); -- cgit v1.2.3