Skip to content

Commit

Permalink
Android X support
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallySmallSoftware committed May 23, 2020
1 parent 3efbeb7 commit c0faed6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ AndroidManifest.xml is automatically updated to use the new MainActivity.
Based on cordova-android-fragments (https://github.com/rajivnarayana/CordovaFragments)

# History
## 1.0.0
- Migrate to androidx

## 0.0.9
- Fix missing import

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-android-fragmentactivity",
"version": "0.0.9",
"version": "1.0.0",
"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.",
"cordova": {
"id": "cordova-plugin-android-fragmentactivity",
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-android-fragmentactivity" version="0.0.9">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-android-fragmentactivity" version="1.0.0">

<name>Cordova Android FragmentActivity Plugin</name>
<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>
<keywords>cordova, fragment, fragments</keywords>
<platform name="android">

<framework src="com.android.support:appcompat-v7:18.0.+"/>
<framework src="androidx.appcompat:appcompat:1.1.0"/>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CordovaFragments">
<param name="android-package" value="uk.co.reallysmall.cordova.plugin.fragment"/>
Expand Down
3 changes: 2 additions & 1 deletion src/android/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Licensed to the Apache Software Foundation (ASF) under one
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import androidx.fragment.app.FragmentActivity;
// import android.support.v4.app.FragmentActivity;

public class MainActivity extends FragmentActivity
{
Expand Down

0 comments on commit c0faed6

Please sign in to comment.