Change package name

This commit is contained in:
Victor Shcherb 2018-06-05 23:08:46 +02:00
parent 507462b4a9
commit 5fc334568c
9 changed files with 14 additions and 12 deletions

View file

@ -12,11 +12,13 @@ android {
} }
defaultConfig { defaultConfig {
applicationId "net.osmand.telegramtest" applicationId "net.osmand.telegram"
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 27 targetSdkVersion 27
versionCode 1 versionCode 1
versionCode System.getenv("APK_NUMBER_VERSION") ? System.getenv("APK_NUMBER_VERSION").toInteger() : versionCode
versionName "1.0" versionName "1.0"
versionName System.getenv("APK_VERSION")? System.getenv("APK_VERSION").toString(): versionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }

View file

@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() { fun useAppContext() {
// Context of the app under test. // Context of the app under test.
val appContext = InstrumentationRegistry.getTargetContext() val appContext = InstrumentationRegistry.getTargetContext()
assertEquals("net.osmand.telegramtest", appContext.packageName) assertEquals("net.osmand.telegram", appContext.packageName)
} }
} }

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.osmand.telegramtest"> package="net.osmand.telegram">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

View file

@ -1,4 +1,4 @@
package net.osmand.telegramtest package net.osmand.telegram
import android.app.Activity import android.app.Activity
import android.content.Context import android.content.Context

View file

@ -1,4 +1,4 @@
package net.osmand.telegramtest package net.osmand.telegram
import android.os.Bundle import android.os.Bundle
import android.support.v4.app.DialogFragment import android.support.v4.app.DialogFragment

View file

@ -1,4 +1,4 @@
package net.osmand.telegramtest package net.osmand.telegram
import android.os.Bundle import android.os.Bundle
import android.support.v4.app.Fragment import android.support.v4.app.Fragment
@ -6,8 +6,8 @@ import android.support.v7.app.AppCompatActivity
import android.view.Menu import android.view.Menu
import android.view.MenuItem import android.view.MenuItem
import android.widget.Toast import android.widget.Toast
import net.osmand.telegramtest.LoginDialogFragment.LoginDialogType import net.osmand.telegram.LoginDialogFragment.LoginDialogType
import net.osmand.telegramtest.TelegramHelper.* import net.osmand.telegram.TelegramHelper.*
class MainActivity : AppCompatActivity(), TelegramListener { class MainActivity : AppCompatActivity(), TelegramListener {

View file

@ -1,4 +1,4 @@
package net.osmand.telegramtest; package net.osmand.telegram;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;

View file

@ -1,7 +1,7 @@
package net.osmand.telegramtest package net.osmand.telegram
import android.text.TextUtils import android.text.TextUtils
import net.osmand.telegramtest.TelegramHelper.AuthParamType.* import net.osmand.telegram.TelegramHelper.AuthParamType.*
import org.drinkless.td.libcore.telegram.Client import org.drinkless.td.libcore.telegram.Client
import org.drinkless.td.libcore.telegram.Client.ResultHandler import org.drinkless.td.libcore.telegram.Client.ResultHandler

View file

@ -1,4 +1,4 @@
package net.osmand.telegramtest package net.osmand.telegram
import org.junit.Test import org.junit.Test