Skip to content

Commit 92c2adc

Browse files
committed
Refactor package name and prepare to publish
1 parent 38c01e1 commit 92c2adc

File tree

82 files changed

+289
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+289
-305
lines changed

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: android
2+
3+
branches:
4+
only:
5+
- master
6+
- /^v\d+\.\d+\.\d+$/
7+
8+
sudo: false
9+
10+
jdk:
11+
- oraclejdk8
12+
13+
android:
14+
components:
15+
- tools
16+
- platform-tools
17+
- build-tools-28.0.3
18+
- android-28
19+
- doc-28
20+
21+
cache:
22+
directories:
23+
- $HOME/.gradle
24+
- $HOME/.m2/repository
25+
26+
deploy:
27+
provider: script
28+
script: ./gradlew bintrayUpload
29+
skip_cleanup: true
30+
on:
31+
branch: master
32+
tags: true

CHANGELOG.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If your app targets older Android, you should add below line to AndroidManifest.
2424

2525
```xml
2626
<!-- Only supports API >= 18 -->
27-
<uses-sdk tools:overrideLibrary="net.ypresto.androidtranscoder" />
27+
<uses-sdk tools:overrideLibrary="com.otaliastudios.transcoder" />
2828
```
2929

3030
Please ensure checking Build.VERSION by your self.

build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31
buildscript {
2+
43
repositories {
54
google()
65
jcenter()
76
}
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.2.1'
107

11-
// NOTE: Do not place your application dependencies here; they belong
12-
// in the individual module build.gradle files
8+
dependencies {
9+
classpath 'com.android.tools.build:gradle:3.3.1'
10+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
11+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
1312
}
1413
}
1514

@@ -22,7 +21,10 @@ allprojects {
2221

2322
ext {
2423
compileSdkVersion = 28
25-
supportLibVersion = '28.0.0'
2624
minSdkVersion = 18
2725
targetSdkVersion = 28
26+
}
27+
28+
task clean(type: Delete) {
29+
delete rootProject.buildDir
2830
}
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ android {
44
compileSdkVersion rootProject.ext.compileSdkVersion
55

66
defaultConfig {
7-
applicationId "net.ypresto.androidtranscoder.example"
7+
applicationId "com.otaliastudios.transcoder.demo"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
1010
versionCode 1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
4-
package="net.ypresto.androidtranscoder.example">
4+
package="com.otaliastudios.transcoder.demo">
55

66
<uses-permission
77
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
@@ -25,7 +25,7 @@
2525

2626
<provider
2727
android:name="androidx.core.content.FileProvider"
28-
android:authorities="net.ypresto.androidtranscoder.example.fileprovider"
28+
android:authorities="com.otaliastudios.transcoder.demo.fileprovider"
2929
android:exported="false"
3030
android:grantUriPermissions="true">
3131
<meta-data

example/src/main/java/net/ypresto/androidtranscoder/example/TranscoderActivity.java renamed to demo/src/main/java/com/otaliastudios/transcoder/demo/TranscoderActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.ypresto.androidtranscoder.example;
1+
package com.otaliastudios.transcoder.demo;
22

33
import android.app.Activity;
44
import android.content.Intent;
@@ -11,8 +11,8 @@
1111
import android.widget.ProgressBar;
1212
import android.widget.Toast;
1313

14-
import net.ypresto.androidtranscoder.MediaTranscoder;
15-
import net.ypresto.androidtranscoder.utils.Logger;
14+
import com.otaliastudios.transcoder.MediaTranscoder;
15+
import com.otaliastudios.transcoder.utils.Logger;
1616

1717
import java.io.File;
1818
import java.io.IOException;
@@ -26,7 +26,7 @@ public class TranscoderActivity extends Activity {
2626
private static final String TAG = "TranscoderActivity";
2727
private static final Logger LOG = new Logger(TAG);
2828

29-
private static final String FILE_PROVIDER_AUTHORITY = "net.ypresto.androidtranscoder.example.fileprovider";
29+
private static final String FILE_PROVIDER_AUTHORITY = "com.otaliastudios.transcoder.demo.fileprovider";
3030
private static final int REQUEST_CODE_PICK = 1;
3131
private static final int PROGRESS_BAR_MAX = 1000;
3232
private Future<Void> mFuture;
File renamed without changes.

0 commit comments

Comments
 (0)