Skip to content

Commit c0faed6

Browse files
Android X support
1 parent 3efbeb7 commit c0faed6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

README.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ AndroidManifest.xml is automatically updated to use the new MainActivity.
2121
Based on cordova-android-fragments (https://github.com/rajivnarayana/CordovaFragments)
2222

2323
# History
24+
## 1.0.0
25+
- Migrate to androidx
26+
2427
## 0.0.9
2528
- Fix missing import
2629

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-android-fragmentactivity",
3-
"version": "0.0.9",
3+
"version": "1.0.0",
44
"description": "An android plugin that provides a replacement activity to the default activity to start a cordova application with MainActivity as a Fragment Activity. Useful when you want to add native views on top of cordova webview.",
55
"cordova": {
66
"id": "cordova-plugin-android-fragmentactivity",

plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-android-fragmentactivity" version="0.0.9">
2+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-android-fragmentactivity" version="1.0.0">
33

44
<name>Cordova Android FragmentActivity Plugin</name>
55
<description>An android plugin that provides a replacement activity to the default activity to start a cordova application with MainActivity as a Fragment Activity. Useful when you want to add native views on top of cordova webview.</description>
66
<keywords>cordova, fragment, fragments</keywords>
77
<platform name="android">
88

9-
<framework src="com.android.support:appcompat-v7:18.0.+"/>
9+
<framework src="androidx.appcompat:appcompat:1.1.0"/>
1010
<config-file target="res/xml/config.xml" parent="/*">
1111
<feature name="CordovaFragments">
1212
<param name="android-package" value="uk.co.reallysmall.cordova.plugin.fragment"/>

src/android/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Licensed to the Apache Software Foundation (ASF) under one
2424
import android.app.FragmentTransaction;
2525
import android.content.Intent;
2626
import android.os.Bundle;
27-
import android.support.v4.app.FragmentActivity;
27+
import androidx.fragment.app.FragmentActivity;
28+
// import android.support.v4.app.FragmentActivity;
2829

2930
public class MainActivity extends FragmentActivity
3031
{

0 commit comments

Comments
 (0)