Skip to content

Commit

Permalink
Rename licensing package
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Mar 12, 2017
1 parent 250c5bd commit 297f180
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

import com.google.android.vending.licensing.util.Base64;
import com.google.android.vending.licensing.util.Base64DecoderException;
import com.github.javiersantos.licensing.util.Base64;
import com.github.javiersantos.licensing.util.Base64DecoderException;

import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
Expand All @@ -41,7 +41,7 @@ public class AESObfuscator implements Obfuscator {
private static final String CIPHER_ALGORITHM = "AES/CBC/PKCS5Padding";
private static final byte[] IV =
{16, 74, 71, -80, 32, 101, -47, 72, 117, -14, 0, -29, 70, 65, -12, 74};
private static final String header = "com.google.android.vending.licensing.AESObfuscator-1|";
private static final String header = "com.github.javiersantos.licensing.AESObfuscator-1|";

private Cipher mEncryptor;
private Cipher mDecryptor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/*
* Copyright (C) 2012 The Android Open Source Project
Expand All @@ -16,7 +16,7 @@
* limitations under the License.
*/

import com.google.android.vending.licensing.util.URIQueryDecoder;
import com.github.javiersantos.licensing.util.URIQueryDecoder;

import android.content.Context;
import android.content.SharedPreferences;
Expand Down Expand Up @@ -112,7 +112,7 @@ public void resetPolicy() {
* @param rawData the raw server response data
*/
public void processServerResponse(int response,
com.google.android.vending.licensing.ResponseData rawData) {
ResponseData rawData) {

// Update retry counter
if (response != Policy.RETRY) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/**
* Allows the developer to limit the number of devices using a single license. <p> The LICENSED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

import com.google.android.vending.licensing.util.Base64;
import com.google.android.vending.licensing.util.Base64DecoderException;
import com.github.javiersantos.licensing.util.Base64;
import com.github.javiersantos.licensing.util.Base64DecoderException;

import android.annotation.SuppressLint;
import android.content.ComponentName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/**
* Callback for the license checker library. <p> Upon checking with the Market server and conferring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

import com.google.android.vending.licensing.util.Base64;
import com.google.android.vending.licensing.util.Base64DecoderException;
import com.github.javiersantos.licensing.util.Base64;
import com.github.javiersantos.licensing.util.Base64DecoderException;

import android.text.TextUtils;
import android.util.Log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/**
* A DeviceLimiter that doesn't limit the number of devices that can use a given user's license. <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/**
* Interface used as part of a {@link Policy} to allow application authors to obfuscate licensing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/**
* Policy used by {@link LicenseChecker} to determine whether a user should have access to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

import android.annotation.SuppressLint;
import android.content.SharedPreferences;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

import android.text.TextUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

import com.google.android.vending.licensing.util.URIQueryDecoder;
import com.github.javiersantos.licensing.util.URIQueryDecoder;

import android.content.Context;
import android.content.SharedPreferences;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/**
* Non-caching policy. All requests will be sent to the licensing service, and no local caching is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing;
package com.github.javiersantos.licensing;

/**
* Indicates that an error occurred while validating the integrity of data managed by an {@link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.android.vending.licensing.util;
package com.github.javiersantos.licensing.util;

// This code was converted from code at http://iharder.sourceforge.net/base64/
// Lots of extraneous features were removed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.android.vending.licensing.util;
package com.github.javiersantos.licensing.util;

/**
* Exception thrown when encountering an invalid Base64 input character.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.android.vending.licensing.util;
package com.github.javiersantos.licensing.util;

import android.util.Log;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.github.javiersantos.piracychecker;

import com.google.android.vending.licensing.AESObfuscator;
import com.google.android.vending.licensing.LicenseChecker;
import com.google.android.vending.licensing.LicenseCheckerCallback;
import com.google.android.vending.licensing.ServerManagedPolicy;
import com.github.javiersantos.licensing.AESObfuscator;
import com.github.javiersantos.licensing.LicenseChecker;
import com.github.javiersantos.licensing.LicenseCheckerCallback;
import com.github.javiersantos.licensing.ServerManagedPolicy;

import android.annotation.SuppressLint;
import android.content.Context;
Expand Down

1 comment on commit 297f180

@javiersantos
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ref #13

Please sign in to comment.