Skip to content

Commit

Permalink
Changed package name for Play Store
Browse files Browse the repository at this point in the history
  • Loading branch information
cunnj committed May 17, 2019
1 parent 0c0064e commit b248f09
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 72 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ A simple tool for launching hidden activities within an Android app and creating

Forked from Adam Szalkowski's Activity Launcher.

[<img src="https://developer.android.com/images/brand/en_generic_rgb_wo_60.png">](https://play.google.com/store/apps/details?id=com.cunnj.activities)
[<img src="https://developer.android.com/images/brand/en_generic_rgb_wo_60.png">](https://play.google.com/store/apps/details?id=activitylauncher)
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.cunnj.activities"
applicationId "com.cunnj.activitylauncher"
minSdkVersion 21
targetSdkVersion 28
versionCode 5
versionName "1.4"
versionCode 6
versionName "1.5"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cunnj.activities"
android:versionCode="5"
android:versionName="1.4">
package="com.cunnj.activitylauncher"
android:versionCode="6"
android:versionName="1.5">

<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />

Expand All @@ -12,7 +12,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name="com.cunnj.activitylauncher.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.content.Context;
import android.content.pm.PackageInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.content.Context;

public class AllTasksListAsyncProvider extends AsyncProvider<AllTasksListAdapter> {
public AllTasksListAsyncProvider(
Context context,
com.cunnj.activities.AsyncProvider.Listener<AllTasksListAdapter> listener) {
com.cunnj.activitylauncher.AsyncProvider.Listener<AllTasksListAdapter> listener) {
super(context, listener, true);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.os.Bundle;
import androidx.fragment.app.DialogFragment;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.app.ProgressDialog;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
package com.cunnj.activities;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;

import com.mikepenz.aboutlibraries.Libs;
import com.mikepenz.aboutlibraries.LibsBuilder;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

getSupportFragmentManager().beginTransaction()
.replace(R.id.container, new AllTasksListFragment()).commit();
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_about:
new LibsBuilder()
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
.withActivityTitle(getResources().getString(R.string.action_about))
.withAboutIconShown(true)
.withAboutDescription(getResources().getString(R.string.app_description))
.withAboutVersionShown(true)
.withAboutAppName(getResources().getString(R.string.app_name))
.withAutoDetect(true)
.withLicenseShown(true)
.start(this);
return true;

default:
return super.onOptionsItemSelected(item);

}
}
}
package com.cunnj.activitylauncher;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;

import com.mikepenz.aboutlibraries.Libs;
import com.mikepenz.aboutlibraries.LibsBuilder;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

getSupportFragmentManager().beginTransaction()
.replace(R.id.container, new AllTasksListFragment()).commit();
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_about:
new LibsBuilder()
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
.withActivityTitle(getResources().getString(R.string.action_about))
.withAboutIconShown(true)
.withAboutDescription(getResources().getString(R.string.app_description))
.withAboutVersionShown(true)
.withAboutAppName(getResources().getString(R.string.app_name))
.withAutoDetect(true)
.withLicenseShown(true)
.start(this);
return true;

default:
return super.onOptionsItemSelected(item);

}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.content.ComponentName;
import android.content.pm.ActivityInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.content.ComponentName;
import android.content.pm.ActivityInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.content.ComponentName;
import android.content.pm.PackageInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cunnj.activities;
package com.cunnj.activitylauncher;

import android.app.Dialog;
import android.content.ComponentName;
Expand Down
5 changes: 2 additions & 3 deletions app/src/main/java/org/thirdparty/LauncherIconCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@

import java.util.Objects;

import com.cunnj.activities.MyActivityInfo;
import com.cunnj.activities.R;
import com.cunnj.activitylauncher.MyActivityInfo;
import com.cunnj.activitylauncher.R;

public class LauncherIconCreator {

private static Intent getActivityIntent(ComponentName activity) {
Intent intent = new Intent();
intent.setComponent(activity);
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/fragment_all_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fastScrollAlwaysVisible="true"
android:fastScrollEnabled="true"></ExpandableListView>
android:fastScrollEnabled="true">

</ExpandableListView>

</LinearLayout>

0 comments on commit b248f09

Please sign in to comment.