diff options
author | Arne Schwabe <arne@rfc2549.org> | 2023-05-17 15:32:34 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2023-05-17 15:32:34 +0200 |
commit | a688889a1e54cee8439f8a61c3162f7913530b37 (patch) | |
tree | d57fed7f806d0e925f7edb22eb1ca6c7c60be308 /main/src/ui/java/de | |
parent | d551053d55d1b9745e9c1d2503dc15fc9b6c7d21 (diff) |
Allow to build a UI variant with OpenVPN 2.x only
Diffstat (limited to 'main/src/ui/java/de')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/AboutFragment.java | 8 |
1 files changed, 7 insertions, 1 deletions
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())); |