Skip to content

Commit

Permalink
Read storage permission moved to module
Browse files Browse the repository at this point in the history
Added copyright profile
Package renamed
  • Loading branch information
4eRTuk committed Jul 14, 2015
1 parent a2a3018 commit 420d945
Show file tree
Hide file tree
Showing 18 changed files with 156 additions and 31 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/sfcdialog.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Changelog
***
## version 0.1.1 (14.07.2015)
* Moved to separate aar module
* Added to maven (jCenter and Maven Central)

## version 0.1 (04.01.2015)
* Initial
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ There are 3 callbacks:
* onDirectoryChosen(File directory): user clicks OK and file is not chosen. directory = current directory
* onCancel(): user clicks Cancel. void

####Manifest:
```xml
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
```

####Usage:
Now available at jcenter! As soon as Maven Central will approve my account I'll add it there too.
Now available at jCenter and Maven Central! Just add line to build.gradle:
```
compile 'com.4ert.sfcdialog:sfcdialog:0.1'
dependencies {
...
compile 'com.4ert:sfcdialog:0.1.1'
}
```

Like any other DialogFragment:
```java
```
SimpleFileChooser sfcDialog = new SimpleFileChooser();
sfcDialog.setOnChosenListener(new SimpleFileChooser.SimpleFileChooserListener() {
Expand Down
4 changes: 2 additions & 2 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.4ert.sfcdialog/sfcdialog/0.1/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.4ert/sfcdialog/0.1.1/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/22.2.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
Expand All @@ -89,9 +89,9 @@
</content>
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="sfcdialog-0.1.1" level="project" />
<orderEntry type="library" exported="" name="support-v4-22.2.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.2.0" level="project" />
<orderEntry type="library" exported="" name="sfcdialog-0.1" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-22.2.0" level="project" />
</component>
</module>
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.4ert.sfcdialog:sfcdialog:0.1'
compile 'com.4ert:sfcdialog:0.1.1'
// compile project(':sfcdialog')
}
17 changes: 11 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.keenfin.sfcdialog_demo">
<!--
~ Copyright © 2015 Stanislav Petriakov
~ Distributed under the Boost Software License, Version 1.0.
~ (See accompanying file LICENSE_1_0.txt or copy at
~ http://www.boost.org/LICENSE_1_0.txt)
-->

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<manifest
package="com.keenfin.sfcdialog_demo"
xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand All @@ -13,11 +19,10 @@
android:name="com.keenfin.sfcdialog_demo.MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import android.view.View;
import android.widget.TextView;

import com.nextgis.sfcdialog.SimpleFileChooser;
import com.keenfin.sfcdialog.SimpleFileChooser;

import java.io.File;

Expand Down Expand Up @@ -46,7 +46,6 @@ public void onCancel() {
});

sfcDialog.setShowHidden(false);
sfcDialog.setRootPath("/");
sfcDialog.show(getFragmentManager(), "SimpleFileChooserDialog");
}
});
Expand Down
15 changes: 11 additions & 4 deletions sfcdialog/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
/*
* Copyright © 2015 Stanislav Petriakov
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/

apply plugin: 'com.android.library'

ext {
bintrayRepo = 'maven'
bintrayName = 'sfc-dialog'

publishedGroupId = 'com.4ert.sfcdialog'
publishedGroupId = 'com.4ert'
libraryName = 'SFC Dialog'
artifact = 'sfcdialog'

Expand All @@ -13,7 +20,7 @@ ext {
siteUrl = 'https://github.com/4eRTuk/sfcdialog'
gitUrl = 'https://github.com/4eRTuk/sfcdialog.git'

libraryVersion = '0.1'
libraryVersion = '0.1.1'

developerId = '4ert'
developerName = 'Stanislav Petriakov'
Expand All @@ -31,8 +38,8 @@ android {
defaultConfig {
minSdkVersion 11
targetSdkVersion 22
versionCode 1
versionName "1.0"
versionCode 2
versionName "0.1.1"
}
buildTypes {
release {
Expand Down
2 changes: 1 addition & 1 deletion sfcdialog/sfcdialog-sfcdialog.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":sfcdialog" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.4ert.sfcdialog" external.system.module.version="0.1" type="JAVA_MODULE" version="4">
<module external.linked.project.id=":sfcdialog" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.4ert" external.system.module.version="0.1.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down
20 changes: 14 additions & 6 deletions sfcdialog/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nextgis.sfcdialog">
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © 2015 Stanislav Petriakov
~ Distributed under the Boost Software License, Version 1.0.
~ (See accompanying file LICENSE_1_0.txt or copy at
~ http://www.boost.org/LICENSE_1_0.txt)
-->

<application android:allowBackup="true"
android:label="@string/app_name"
>
<manifest
package="com.keenfin.sfcdialog"
xmlns:android="http://schemas.android.com/apk/res/android">

</application>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

<application
android:allowBackup="true"
android:label="@string/app_name"/>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
*/
package com.nextgis.sfcdialog;
package com.keenfin.sfcdialog;

import android.app.AlertDialog;
import android.app.Dialog;
Expand Down

0 comments on commit 420d945

Please sign in to comment.