-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
App-wide improvements and refactoring (#19)
- Loading branch information
Showing
111 changed files
with
5,136 additions
and
4,052 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby File.read(File.join(__dir__, '.ruby-version')).strip | ||
gem 'cocoapods', '~> 1.11', '>= 1.11.3' | ||
ruby '>= 2.6.10' | ||
|
||
gem 'cocoapods', '>= 1.11.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
android/app/src/main/java/com/razinj/context_launcher/AppDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.razinj.context_launcher; | ||
|
||
import android.util.Log; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
public class AppDetails { | ||
String packageName; | ||
String name; | ||
String icon; | ||
|
||
AppDetails(String packageName, String name, String icon) { | ||
this.packageName = packageName; | ||
this.name = name; | ||
this.icon = icon; | ||
} | ||
|
||
@NonNull | ||
public String toString() { | ||
try { | ||
JSONObject appDetails = new JSONObject(); | ||
|
||
appDetails.put("packageName", this.packageName); | ||
appDetails.put("name", this.name); | ||
appDetails.put("icon", this.icon); | ||
|
||
return appDetails.toString(); | ||
} catch (JSONException e) { | ||
Log.e("AppsModule", "Couldn't construct app details JSON: " + e.getMessage()); | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
android/app/src/main/java/com/razinj/context_launcher/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.razinj.context_launcher; | ||
|
||
public class Constants { | ||
|
||
private Constants() { | ||
super(); | ||
} | ||
|
||
// Package change intent action | ||
public static final String PACKAGE_UPDATE_ACTION = "packageUpdateAction"; | ||
// Package change event | ||
public static final String PACKAGE_CHANGE_EVENT = "packageChange"; | ||
public static final String PACKAGE_CHANGE_NAME = "packageName"; | ||
public static final String PACKAGE_CHANGE_IS_REMOVED = "isRemoved"; | ||
// Misc | ||
public static final String SHORT_NOT_AVAILABLE = "N/A"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.